Shortest Path - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Shortest Path

Description:

What is the quickest route from St Austell to Launceston? Dijkstra's Algorithm ... Step 2 Give temporary labels to each vertex that is connected directly to the ... – PowerPoint PPT presentation

Number of Views:47
Avg rating:3.0/5.0
Slides: 5
Provided by: Haig5
Category:

less

Transcript and Presenter's Notes

Title: Shortest Path


1
Quickest Route
What is the quickest route from St Austell to
Launceston?
2
Dijkstras Algorithm
Step 1 Give the permanent label 0 to the starting
vertex.
Step 2 Give temporary labels to each vertex that
is connected directly to the starting vertex.
Step 3 Find the vertex with the smallest
temporary label, number it and make it permanent.
Step 4 Give temporary labels to each vertex that
is connected directly to the previous
vertex.Then find the vertex with the smallest
temporary label, number it and make it permanent.
Step 5 Repeat Step 4 until you have given a
permanent label to the finishing vertex.
Step 6 Use the permanent labels to trace back
through the network to find the shortest path.
3
Using Dijkstras Algorithm
to find the quickest route from St Austell to
Launceston
5
37
37
53
45
22
14
2
15
32
15
16
10
4
31
15
31
3
21
21
31
21
The quickest route isSt Austell to Bodmin then
Launceston
1
0
0
4
Shortest Path
What is the shortest route from St Austell to
Launceston?
Write a Comment
User Comments (0)
About PowerShow.com