JOIN
Get Time
forums   
Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings
View: Flat  | Threaded  | Tree
Previous Thread  |  Next Thread
Queues | Reply
Is it okay that we are considering only 3 directions in the Queue algo to solve for path from A to B. What if the path is like(we need to consider all 4 directions):

A----------****----------
**********|**|**********|
**********|***---*******|
**********|******|******|
***********------*******|
************************B

Also, if we take all the 4 directions, it might end up in loop.
P.S: Hope the question is clear :)
Subject Author Date
Queues anujkrmodi Jul 12, 2012 at 12:54 PM EDT
Re: Queues maniek Jul 31, 2012 at 4:20 AM EDT
RSS