HN Theater @HNTheaterMonth

The best talks and videos of Hacker News.

Hacker News Comments on
16. Dijkstra

MIT OpenCourseWare · Youtube · 51 HN points · 0 HN comments
HN Theater has aggregated all Hacker News stories and comments that mention MIT OpenCourseWare's video "16. Dijkstra".
Youtube Summary
MIT 6.006 Introduction to Algorithms, Fall 2011
View the complete course: http://ocw.mit.edu/6-006F11
Instructor: Srini Devadas

License: Creative Commons BY-NC-SA
More information at http://ocw.mit.edu/terms
More courses at http://ocw.mit.edu
HN Theater Rankings

Hacker News Stories and Comments

All the comments and stories posted to Hacker News that reference this video.
Dec 14, 2015 · 51 points, 2 comments · submitted by ayberkt
maweki
The unanswered question is, whether this always works with any metric that works with Dijkstra.

And the answer, I guess, is no. Dijkstra works with negative edge weights (although no negative loops). This doesn't translate to string. Also there are some other restrictions like that any edge is always symmetric where with Dijkstra it needn't be. A>B (3) and A<B (5) would be the lower for both with regards of the physics.

Edit: But it seems like for undirected graphs, the edge weights are always positive and by definition symmetric which is sufficient that string-dijkstra works.

adrianN
Textbook Dijkstra doesn't work with negative edges. See for example

http://stackoverflow.com/questions/6799172/negative-weights-...

HN Theater is an independent project and is not operated by Y Combinator or any of the video hosting platforms linked to on this site.
~ yaj@
;laksdfhjdhksalkfj more things
yahnd.com ~ Privacy Policy ~
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.