Top Banner
Graph Primitives Dijkstra’s Algorithm: The Basics Design and Analysis of Algorithms I
7

Dijkstra’s Algorithm: The Basics

Mar 15, 2016

Download

Documents

Bruno Johnston

Graph Primitives. Dijkstra’s Algorithm: The Basics. Design and Analysis of Algorithms I. Single-Source Shortest Paths. One of the following is the list of shortest-path distances for the nodes , respectively. Which is it?. 0,1,2,3. 0,1,4,7. 0,1,3,6. Why Another Shortest-Path Algorithm?. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Dijkstra’s  Algorithm: The Basics

Graph Primitives

Dijkstra’s Algorithm: The Basics

Design and Analysis of Algorithms I

Page 2: Dijkstra’s  Algorithm: The Basics

Tim Roughgarden

Single-Source Shortest Paths

Page 3: Dijkstra’s  Algorithm: The Basics

0,1,2,3

0,1,4,7

0,1,4,60,1,3,6

One of the following is the list of shortest-path distances for the nodes , respectively. Which is it?

Page 4: Dijkstra’s  Algorithm: The Basics

Tim Roughgarden

Why Another Shortest-Path Algorithm?

Page 5: Dijkstra’s  Algorithm: The Basics

Tim Roughgarden

Dijkstra’s Algorithm

Page 6: Dijkstra’s  Algorithm: The Basics

Tim Roughgarden

Example

Page 7: Dijkstra’s  Algorithm: The Basics

Tim Roughgarden

Non-Example