Moderator: Andres Valverde
Pallav Nawani wrote:But when the opponent's move was not as predicted, the depth replace policy prevented the new best move from making it to the hash table, thus causing full re-searches every ply :(
R?mi Coulom wrote:The trick here consists in using a few bits (even one single bit may be enough) in the hash entry to indicate if this hash entry comes from the current search, or from a previous search. If you need a slot, and none is free, you can overwrite entries of the previous search.
There is no need to update the whole table after every move. You simply keep a counter that indicates the "signature" of the current search, and increment it after every move.
R?mi
R?mi Coulom wrote:
The trick here consists in using a few bits (even one single bit may be enough) in the hash entry to indicate if this hash entry comes from the current search, or from a previous search. If you need a slot, and none is free, you can overwrite entries of the previous search.
There is no need to update the whole table after every move. You simply keep a counter that indicates the "signature" of the current search, and increment it after every move.
R?mi
Jos? Carlos wrote:When I have to decide whether replace or not, I first check if the material at the roor is less than the stored material.
Pallav Nawani wrote:Now I have a dual Hash table, with a 4 bit counter which indicates whether this hash entry came from this search, or an older one.
Dan Honeycutt wrote:Jos? Carlos wrote:When I have to decide whether replace or not, I first check if the material at the roor is less than the stored material.
Hi Jos?:
Interesting idea. Do you worry about promotions?
Best
Dan H.
Jaime Benito de Valle wrote:Thank you all for your input
Just one more question: If your "second" iterative search finds a "better move" than the one in the hash table, but the hash's one has a higher remaining depth than the present one, then you should ignore it and follow the hash's, right?
Dan Honeycutt wrote:Pallav Nawani wrote:Now I have a dual Hash table, with a 4 bit counter which indicates whether this hash entry came from this search, or an older one.
Hi Pallav:
You only need one bit for "this search, or an older one." Do you age the entrys and then replace the oldest one of the two?
Best
Dan H.
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 17 guests