Moderator: Andres Valverde
Ross Boyd wrote:Just recently it occurred to me that a source of search instability can be due to the piece list getting 'shuffled' during searches when removing/appending captured pieces. This may have subtle side-effects when there are transpositions in the search and the piece list is not in exactly the same order for the same position... of course, this only applies when two or more of the generated moves have the same move ordering score.
Charles Roberson wrote:If you can't turn them off then turn them down. You probably have alpha, beta and exact returns from a hash probe. Why not limit yourself the the exacts. This should slow things down some but my narrow things.
Just recently it occurred to me that a source of search instability can be due to the piece list getting 'shuffled' during searches when removing/appending captured pieces. This may have subtle side-effects when there are transpositions in the search and the piece list is not in exactly the same order for the same position... of course, this only applies when two or more of the generated moves have the same move ordering score.
Ross Boyd wrote:Hi Alessandro,
Whether this harms or destabilises the search in any way, I don't know. I suspect that it would reduce the effectiveness of the hash table very slightly, or worse, add a little search instability.
What do you think?
Ross
Ross Boyd wrote:You can test all this for yourself by doing a fixed depth search and then do the same search again with the piece list ordered differently. You will get different node counts.
It can harm the search, and it can improve the search. I've seen a position where due to different order of generating moves, my program needs two more plies(!) to see a tactical sequence as compared to the older one. Of course this could be due to some bug somehere.
Sometimes this will improve the search, if the move made with the new piece is the best one. On average I think this would even out.
Pallav
I don't think, it will hurt the search much, however. With not too much effort, one could try. Just remember the old piece list somewhere and copy it back in unmake_move instead of just appending that captured piece.
Pallav Nawani wrote:It can harm the search, and it can improve the search. I've seen a position where due to different order of generating moves, my program needs two more plies(!) to see a tactical sequence as compared to the older one. Of course this could be due to some bug somehere.
Ross Boyd wrote:Yes, I'm going to fix this so that the ordering is preserved... it may not do anything... except give peace of mind.
Vadim Bykov wrote:Hi! I have such problems when using quick sort alhoritm. Why? I don't know, may be it was bug in realisation. With simple bubble sort, i have same best move and same count of generated nodes.
Return to Programming and Technical Discussions
Users browsing this forum: No registered users and 34 guests