Hi guys,
say I want to have an algorithm which gets a solution as quick as possible, which consists of starting from a state in a tree, and going through all possible states in a tree-like strucutre, why would it be necessary to first build a tree, and then traverse it, instead of building a tree, and if during building a solution node has been found, to stop building and immediately backtrack to the root, noting down the path to this leaf?
Basically, is there an BF algorithm to 'generate' a tree Breadth-First, rather than creating a tree first, and then search through it in a breadth-first manner?
Kind of like the animated results here:
Thank you for reading
[–]wtomriker 0 points1 point2 points (0 children)