A little problem.

Dec 03, 2008 13:23

You are trapped in a directed graph. At every vertex you can choose to go either left or right. You know nothing about the graph except that it is strongly connected and one of the vertices is an exit. You have no pencil or other means to mark vertices you have visited ( Read more... )

Leave a comment

Comments 8

stagknight December 3 2008, 12:51:36 UTC
I would have thought that with no way of marking or identifying vertices, your only solution (or at least the only one I can think of) is to random-walk. At least with it being strongly connected you'll never get stuck in a cycle.

Reply

the_exiled_one December 3 2008, 12:54:01 UTC
Random walk will allow you to exit with probability one, yes, but there are deterministic solutions as well.

Reply

djw December 3 2008, 13:30:30 UTC
Also, how can you do a random walk without a coin?

Reply

stagknight December 3 2008, 13:38:40 UTC
That wasn't there when I replied. :P

Reply


(The comment has been removed)

djw December 4 2008, 00:49:33 UTC
Izzy xyzzy, let's get busy.

Reply


Leave a comment

Up