×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
3

How Dijkstra's Algorithm Works

submitted by happytoes to mathematics 1.2 yearsFeb 14, 2023 13:23:28 ago (+3/-0)     (www.youtube.com)

https://www.youtube.com/watch?v=EFg3u_E6eHU

Dijksta's algorithm for finding the shortest path in a weighted graph. Even if you don't care about graph theory, you should still watch the video to enjoy the quality of the explanation. Sure it is pretty, but the merits go well beyond that. Notice how the example is small, but just big enough to include the tricky cases of the algorithm. Even the asides are beautifully done; when the narrator talks about using a priority queue, the little animation does the right heap percolation thing :-)


3 comments block


[ - ] AugustineOfHippo2 2 points 1.2 yearsFeb 14, 2023 14:29:02 ago (+2/-0)

here is a good site for all sorts of algorithms:

https://www.cs.usfca.edu/~galles/visualization/Algorithms.html

[ - ] happytoes [op] 0 points 1.2 yearsFeb 14, 2023 17:06:40 ago (+0/-0)*

That is a big collection. I looked at Dijkstra's Shortest Path

https://www.cs.usfca.edu/~galles/visualization/Dijkstra.html

I would have had no idea what was going on if I hadn't watched the video first!

The 8-Queens animation is cool https://www.cs.usfca.edu/~galles/visualization/RecQueens.html

[ - ] SkullFuckerSupreme -2 points 1.2 yearsFeb 14, 2023 13:37:56 ago (+0/-2)

Announcer has a dick in his mouth and ass.