| Hi,
I made this little app to better understand how A* works. I decided to continue developing it for educational purposes. Computation is done on worker so main thread should be safe all the time. I plan to add textual information on each step, to show how algorithm is "thinking". Also, heuristics is fixed for now, I plan to add heuristics choice. So, Roadmap:
- different heuristics
- 8 way support
- Detailed explanation of each step Let me know what you think! |
Yep after playing around with it for a bit it didn't give a minimum path. I believe something is wrong with the heuristic you are using.
Edit: You can prove A* will give a min path as long as: heuristic(x to y) <= min_cost(x to y). Problem seems to be here https://github.com/ssaric/algoviz/blob/master/src/util/GridN... I think it should be a matter of removing "times 100"