r/learnjavascript • • Aug 14 '21

Shortest Path Finder using React

686 Upvotes

34 comments sorted by

View all comments

3

u/yoitsericc Aug 14 '21

Dijkstra's algorithm?

1

u/pai-cube Aug 14 '21 edited Aug 14 '21

Simple BFS algorithm

2

u/BlueLensFlares Aug 14 '21

Isn't Djikstra just BFS but with edges of length 1 (unweighted)?

1

u/pai-cube Aug 15 '21

yes. should result in same