Any distributed parallel tree search algorithm suggestions?
Asked Answered
M

3

9

I'm writing a distributed Go/Gomoku bot.

Basically the point is to distribute tree search onto many computers. With basic tree search algorithms like DFS this would be very simple, as I could just partition search space into subtrees. Though I'd rather have something more efficient, like mini-max with alpha-beta pruning - but from my understanding it's quite pointless without any kind of shared memory. So I'm kind of stuck.

Any ideas what algorithm could I use that's efficient and distributed easily? And more importantly, where can I find some (pseudo) code for it or maybe implementation?

Thanks,

Maestoso answered 7/2, 2010 at 23:2 Comment(0)
M
6

You need to read up about Monte Carlo Tree Search, not because it's inherently easier to distribute (it is neither easier nor harder than another tree search), but because it's the state of the art and that people working on the problem are working on distributed version of that algorithm.

If you are going to the trouble of making a distributed algorithm, there's no reason to start with a lesser one. Unless you are making a distributed algorithm for educational reasons, in which case, go ahead, there will be something deeply educational in the experiment of distributing a basic algorithm and seeing it perform worse than the non-distributed state-of-the-art algorithm :)

Some slides

The MoGo homepage

See the "recent developments" section in the Wikipedia page on computer go.

Mirepoix answered 7/2, 2010 at 23:8 Comment(1)
Well this looks promising, will look into it. Thanks.Maestoso
O
2

Try Map Reduce approach. For example, see

Breadth-First Search (BFS) & MapReduce

Oxford answered 7/2, 2010 at 23:9 Comment(2)
I can't really understand how it could be in any way superior to DFS.Maestoso
I don't mean BFS is superior to DFS in any way. It's just an example of applying Map Reduce to a search problem.Oxford
L
1

DDS* and ABDADA are 2 distributed/parallel minimax algorithms. Some communication is necessary, but this could be done by relaying certain results back to the controller.

The easier approach as you mentioned would be something like map reduce with different search tree roots.

As @Pascal Cuoq rightly mentions, Monte Carlo Tree Search is the state-of-the-art in Go.

Here you can find a good explanation of MoGo's search algorithm and how its parallelized:

http://www.lri.fr/~gelly/paper/nips_exploration_exploitation_mogo.pdf

nodes which are playing out with better outcomes based on random play are more deeply explored. At each step a leaf node is selected for a one-ply expansion. This could be distributed by having each machine choose a different leaf to expand.

a good overview of the monte carlo tree search is here:

http://sander.landofsand.com/publications/Monte-Carlo_Tree_Search_-_A_New_Framework_for_Game_AI.pdf

Lodicule answered 7/2, 2010 at 23:2 Comment(1)
Thanks, ABDADA on the first glance also looks fine.Maestoso

© 2022 - 2024 — McMap. All rights reserved.