News for hackers. Stuff that matters.
Re:Understanding Dijkstra's Algorithm by tomelders on Sunday February 25, 2018 @08:10AM (#16458743)
I can highly reccomend the book “mazes for programmers” which introduces a lot of graph related alorithms in a clear, accessible way.

Dijkstra’s algorithm is on page 36 and explained in 8 paragrpahs.

https://media.pragprog.com/titles/jbmaze/first.pdf

Re:Understanding Dijkstra's Algorithm by johnsonjo on Sunday February 25, 2018 @09:31AM (#16459099)
Yeah, it’s a good book with great visuals. The author, Jamis Buck, actually lives in my town. He visited my University and gave a lecture on generating a Zelda like over-world by using maze algorithms. It was an interesting application. Jamis writes in Ruby and helped with Ruby on Rails. He has a good blog too [1].

[1]: http://weblog.jamisbuck.org

Re:Understanding Dijkstra's Algorithm by CraneWorm on Saturday March 03, 2018 @12:19PM (#16510287)
bad taste, you give a link to 10 page version and tell people to look at p. 36
Re:Understanding Dijkstra's Algorithm by tomelders on Sunday March 04, 2018 @06:54PM (#16517603)
Ah, ah ha. Hah. My bad.
Re:Understanding Dijkstra's Algorithm by superflyguy on Sunday February 25, 2018 @09:49AM (#16459179)
"At its heart, Dijkstra’s algorithm is really only a modified bread-first search."

First finish your bread, and only then attempt the search.

Re:Understanding Dijkstra's Algorithm by gbtw on Sunday February 25, 2018 @09:17AM (#16459049)
The computerphile episode on this makes it quite clear as well. https://www.youtube.com/watch?v=GazC3A4OQTE
Re:Understanding Dijkstra's Algorithm by fjfaase on Sunday February 25, 2018 @09:45AM (#16459163)
I find Floyd–Warshall algorithm much more facinating. It took me almost 25 years to realize that it was different from the algorithm that I had deviced myself for solving the problem.

Dijkstra's algorithm seems rather obvious to me, as I discovered it myself after I head the problem description. A note in my diary seems to imply that I implemented it in LISP.

Re:Understanding Dijkstra's Algorithm by 1mike12 on Sunday February 25, 2018 @11:11PM (#16463056)
Wow
Re:Understanding Dijkstra's Algorithm by eximius on Sunday February 25, 2018 @11:38AM (#16459701)
I felt similar to the first paragraph, that Dijkstra's algorithm was elevated in so.e way.

Then I found out that Dijkstra's algorithm is 'just' A* where the heuristic function is zero. :| Which is both incredibly simple and intuitive.

Re:Understanding Dijkstra's Algorithm by abhishekjha on Sunday February 25, 2018 @03:12PM (#16460915)
This is a pretty good explanation. Putting nodes in a priority queue at each stage is the trick here. I wish I had this explained in such a simple manner earlier.