Shortest Path algorithm of a different kind

Posted by Ram Bhat on Stack Overflow See other posts from Stack Overflow or by Ram Bhat
Published on 2010-05-20T16:49:17Z Indexed on 2010/05/20 16:50 UTC
Read the original article Hit count: 395

Filed under:
|

Hey guys,

Lets say you have a grid like this (made randomly)

alt text

Now lets say you have a car starting randomly from one of the while boxes, what would be the shortest path to go through each one of the white boxes? you can visit each white box as many times as you want and cant Jump over the black boxes. The black boxes are like walls. In simple words you can move from white box to white box only..

You can move in any direction, even diagonally.

© Stack Overflow or respective owner

Related posts about algorithm-design

Related posts about algorithm