Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc
Moderator: Andres Valverde
by Pradu » 12 Nov 2005, 01:03
I'm having troubles find a way to efficiently do a 3-move repetetion detection in a parallel tree-splitting search. Anyone here have any ideas on how to do this efficiently. Assume the search will split at shallow depths as well.
Efficient - not using extensive loops or large amounts of memory copying.
-
Pradu
-
- Posts: 343
- Joined: 12 Jan 2005, 19:17
- Location: Chandler, Arizona, USA
-
by Daniel Shawul » 12 Nov 2005, 05:34
Hi Pradu
you shouldn't worry much about memory copying much.
splitting is done in very few places like (say 1% of of total nodes searched).
I just copy the repetition detection table when i split.
compared to board copying (piece list in my case) this is nothing at all.
At the tip of the tree splitting is not done usually because the cost of spliiting outweighs its gain, so there is really no need for you to split there.
In scorpio i copy the whole of repetion stack. It also includes moves that have already been played. Small optimization for me is to copy only those in the tree . position that are already been played can be copied at search startup and left untouched as they do not change during search.
regards
daniel
-
Daniel Shawul
-
- Posts: 366
- Joined: 28 Sep 2004, 09:33
- Location: Ethiopia
-
Return to Programming and Technical Discussions
Who is online
Users browsing this forum: No registered users and 36 guests