• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Dijkstra's Algorithm

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.
Originally posted by: IcemanJer
Oh wait, you just have to explain how Dijkstra works, and not actually prove it?

yea... the assignment is to explain how it works (not why it works, i assume). i wanted to see if there was a simple direct proof, just for my own curiosity.
 
Edsger Wybe Dijkstra: 1930-2002

here's hoping that he found the shortest path to a better place from here.


I especially enjoy this tidbit:
"He and his wife had a fondness for exploring state and national parks in their Volkswagen bus, dubbed the Touring Machine"

ahh, a geek with a sense of humor is a scary thing. 😉

R.I.P. Mr. Dijkstra
 
Originally posted by: gopunk
yea... the assignment is to explain how it works (not why it works, i assume). i wanted to see if there was a simple direct proof, just for my own curiosity.
Ah, gotcha.. yeah, as far as I know it's always been proved using contradiction. I mean, it's easy and straight-forward to prove it by contradiction.. and to prove Dijkstra's by direct proof, you'd have to prove the "for all..." thing instead of just proving one false case.
 
Originally posted by: gopunk
Originally posted by: BatmanNate
Proof

*cough* that's a proof by contradiction.... 😛

also it doesn't really explain why it works... just that it is impossible for it not to.

Well, I don't think what you said there makes any sense.

Why does it work? Because if it didn't, that would mean our system of math didn't work. If we were to assume that our system of math does work, then the algo works.

Happy fun times.

But didn't he play for the Mets and the Phillies? And like, he always was spitting tobacco?

Anyways, yeah.


<=== monkey dance

LOL your face!
 
Originally posted by: IcemanJer
Originally posted by: gopunk
bump for v2.0

what do you guys think of my explanation? any suggestions?
mm... it's kinda weak IMHO... you might want to mention the optimal substructure property of shortest paths.

Dijkstra's algorithm is most easily proved by contradiction, and if you want to do a direct proof it's gonna be long and ugly. And the running time o Dijkstra is actually more like Theta(v lg v + e), where v = number of nodes, e = number of edges.

um..what he said
 
Back
Top