i have no idea where i should ask this question but here is as good as anywhere i guess...
If someone writes down a random number (natural number) what s the best strategy for searching a tree of the following type in order to guess the number:
/ | | \ .....etc
0 1 3 4 .....etc
/ | \ /\ /\ /\ ....etc
00 01 02.........etc
if that makes any sense?
basically its to do with depthfirst/breadthfirst strategies
and id like to know the best strategy for this search without going into an infinite loop...