dijkstras_ex

dijkstras_ex - Dijkstras Algorithm Priority Queue: Dequeued...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: Dijkstras Algorithm Priority Queue: Dequeued Paths: Start: C Find: E Use Dijkstras algorithm to find the shortest path from C to E in terms of optimal cost. Show your queue and dequeued paths to the right. Dijkstras Algorithm Priority Queue: 0 - C Dequeued Paths: Start: C Find: E Step: Enqueue start node with cost 0. Dijkstras Algorithm Priority Queue: 0 - C 0 - C Dequeued Paths: 0 - C Start: C Find: E Step: Dequeue min path. Dijkstras Algorithm Priority Queue: 0 - C 4 - A,C 2 - F,C Dequeued Paths: 0 - C Start: C Find: E Step: Enqueue paths to all adjacent nodes that have not already been visited. Dijkstras Algorithm Priority Queue: 0 - C 4 - A,C 2 - F,C Dequeued Paths: 0 - C 2 - F,C Start: C Find: E Step: Dequeue min path. Dijkstras Algorithm Priority Queue: 0 - C 4 - A,C 2 - F,C 3 - A,F,C 10 - G,F,C 7 - J,F,C Dequeued Paths: 0 - C 2 - F,C Start: C Find: E Step: Enqueue paths to all adjacent nodes that have not already been visited. Dijkstras Algorithm Priority Queue: 0 - C 4 - A,C 2 - F,C 3 - A,F,C 10 - G,F,C 7 - J,F,C Dequeued Paths: 0 - C 2 - F,C 3 - A,F,C Start: C Find: E Step: Dequeue min path. Dijkstras Algorithm Priority Queue:...
View Full Document

Page1 / 19

dijkstras_ex - Dijkstras Algorithm Priority Queue: Dequeued...

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

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