demo-dijkstra - Di jkstr a's Shor test Path Al gor i thm Fi...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Dijkstra's Shortest Path Algorithm Find shortest path from s to t. s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Dijkstra's Shortest Path Algorithm s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6 0 distance label S = { } PQ = { s, 2, 3, 4, 5, 6, 7, t }
Background image of page 2
3 Dijkstra's Shortest Path Algorithm s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6 0 distance label S = { } PQ = { s, 2, 3, 4, 5, 6, 7, t } delmin
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Dijkstra's Shortest Path Algorithm s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6 15 9 14 0 distance label S = { s } PQ = { 2, 3, 4, 5, 6, 7, t } decrease key X X X
Background image of page 4
5 Dijkstra's Shortest Path Algorithm s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6 15 9 14 0 distance label S = { s } PQ = { 2, 3, 4, 5, 6, 7, t } X X X delmin
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Dijkstra's Shortest Path Algorithm s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6 15 9 14 0 S = { s, 2 } PQ = { 3, 4, 5, 6, 7, t } X X X
Background image of page 6
7 Dijkstra's Shortest Path Algorithm s 3 t 2 6 7 5 24 18 2 9 14 15 5 30 20 44 16 11 6 19 6 15 9 14 0 S = { s, 2 } PQ = { 3, 4, 5, 6, 7, t } X X X decrease key X 33
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/25/2009 for the course MATH MAT 400 taught by Professor Jamespotvein during the Fall '08 term at University of Toronto- Toronto.

Page1 / 19

demo-dijkstra - Di jkstr a's Shor test Path Al gor i thm Fi...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online