This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Find the shortest path
  1. Tom is chasing jerry in a maze. He needs to eat all Cheeses in the maze, then only then he will be able to reach Jerry. You have to find smallest path that TOM should take to eat all Cheeses and reach Jerry.

TOM can only run straight - left, right, top and down.

Input :

Tom Position (0,0)
Jerry Position (7,7)
Position of all Cheeses - (2,2), (1,5), (5,5), (6,1)
dynamic-programming algorithm

Hello nandlalkumar1986!

We believe that this post does not fit the main topic of this site.

funny...but off topic, not a real question, exam, etc.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

0 answers

No answers yet.

Log in to answer this question.