namansharma18899 / algo-visualizer

An Interactive Web App that let's one see different Algo's in action
MIT License
2 stars 1 forks source link

Create a node for each grid box #9

Open namansharma18899 opened 1 year ago

namansharma18899 commented 1 year ago

We should seperte the path finding logic with the animations, recurrsion with our current crappy state updates is very buggy and they are not in sync...

We should find the path seperately and we should updte the state once and for all. The flow should be

Dijkstra neighours -> Queue up the further neighours -> flush the current state for UI updates -> Dijkstra on the Queue