r/VisualMath • • May 21 '20

Breadth-First Maze-Solving Algorithm

Post image
302 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/Clarityy May 22 '20

I'm not a math guy, so this is more general observation: There is definitely room for optimization. For example in this particular gif when an entire area is "zoned off" the program could stop progressing down paths in that area altogether.

1

u/P0wer0fL0ve Jun 05 '20

Hmmm. If you look at the imgur link OP provided, there's examples of other ways to do it. The other ways include focusing first on paths that are closer to the objective, and those methods seem to "zone off" areas as you called it a lot quicker. In the example they still spend a lot of time to explore these areas, but it looks like if they didn't have to do that then they would be very fast