15.082J & 6.855J & ESD.78J Visualizations

Slides:



Advertisements
Similar presentations
and 6.855J Dijkstras Algorithm with simple buckets (also known as Dials algorithm)
Advertisements

15.082J & 6.855J & ESD.78J Shortest Paths 2: Bucket implementations of Dijkstra’s Algorithm R-Heaps.
Lecture 6 Shortest Path Problem. s t Dynamic Programming.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
1 Dijkstra's Shortest Path Algorithm Find shortest path from s to t. s 3 t
1 Dijkstra's Shortest Path Algorithm Find shortest path from s to t. s 3 t
1 Routing Algorithms. 2 Outline zBellaman-Ford Algorithm zDijkstra Algorithm.
Quickest Route B St Li C La time matrix (minutes) Liskeard Launceston Callington St Austell Bodmin 32 What is the quickest route from.
& 6.855J & ESD.78J Algorithm visualizations Modified Label Correcting Algorithm.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Shortest Path. Dijkstra’s Algorithm finds the shortest path from the start vertex to every other vertex in the network. We will find the shortest path.
& 6.855J & ESD.78J Algorithm Visualization The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem.
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem.
E E Module 5 © Wayne D. Grover 2002, (for non-negative edge weights only) Key concepts: “labelling”, “scanning” Label = {distance, predecessor}.
15.082J & 6.855J & ESD.78J September 30, 2010 The Label Correcting Algorithm.
Decision Maths 1 Shortest path algorithm Dijkstra’s Algorithm A V Ali :
15.082J and 6.855J and ESD.78J Network Simplex Animations.
Cycle Canceling Algorithm
Network Flow Problems – Shortest Path Problem
Network Simplex Animations
EMIS 8374 Dijkstra’s Algorithm Updated 18 February 2008
Dijkstra’s Algorithm with two levels of buckets
Party-by-Night Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Introduction to Maximum Flows
15.082J & 6.855J & ESD.78J Visualizations
Dijkstra’s Algorithm for the Shortest Path Problem
15.082J & 6.855J & ESD.78J Visualizations
Lecture 6 Shortest Path Problem.
Shortest Path.
Shortest Path.
Dijkstra’s Algorithm for the Shortest Path Problem
Breadth first search animation
Lecture 4 Graph Search.
Introduction to Minimum Cost Flows
Spanning Tree Algorithms
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Successive Shortest Path Algorithm
Successive Shortest Path Algorithm
Shortest Path.
15.082J & 6.855J & ESD.78J Radix Heap Animation
Network Optimization Depth First Search
Introduction to Algorithms
Min Global Cut Animation
Network Optimization Flow Decomposition.
Dijkstra’s Algorithm for Shortest Paths
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Reading before Lecture 13
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Network Optimization Topological Ordering
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
and 6.855J Dijkstra’s Algorithm
Lecture 6 Shortest Path Problem.
Visualizations Dijkstra’s Algorithm
Introduction to Maximum Flows
Network Simplex Animations
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
Eulerian Cycles in directed graphs
and 6.855J Topological Ordering
15.082J & 6.855J & ESD.78J Visualizations
Implementation of Dijkstra’s Algorithm
The Minimum Cost Spanning Tree Problem
and 6.855J Depth First Search
Dijkstra Algorithm examples
Breadth first search animation
Prim’s algorithm for minimum spanning trees
Introduction to Maximum Flows
Max Flows 3 Preflow-Push Algorithms
Class 11 Max Flows Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow.
Presentation transcript:

15.082J & 6.855J & ESD.78J Visualizations Dijkstra’s Algorithm Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow problem, the minimum cost flow problem, and the multicommodity flow problem. This will be a very efficient way of introducing the four problems. (Perhaps under 10 minutes of class time.)

An Example ∞ ∞ ∞ ∞ ∞ Initialize 4 2 4 2 2 1 2 3 1 ∞ 1 6 4 2 3 3 5 ∞ ∞ Initialize Select the node with the minimum temporary distance label.

An Example ∞ ∞ ∞ ∞ ∞ Initialize 4 2 4 2 2 1 2 3 1 ∞ 1 6 4 2 3 3 5 ∞ ∞ Initialize Select the node with the minimum temporary distance label.

Update Step 2 ∞ ∞ 4 2 4 2 2 1 2 3 ∞ 1 6 4 2 3 3 5 ∞ ∞ 4

Choose Minimum Temporary Label 2 ∞ 4 2 4 2 2 1 2 3 ∞ 1 6 4 2 3 3 5 ∞ 4

Update Step 6 2 ∞ ∞ ∞ 4 4 3 The predecessor of node 3 is now node 2 4 1 2 3 ∞ 1 6 4 2 3 3 5 ∞ 4 4 3 The predecessor of node 3 is now node 2

Choose Minimum Temporary Label 2 6 4 2 4 2 2 1 2 3 ∞ 1 6 4 2 3 3 5 3 4

Update 2 6 4 2 4 2 2 1 2 3 ∞ 1 6 4 2 3 3 5 3 4 d(5) is not changed.

Choose Minimum Temporary Label 2 6 4 2 4 2 2 1 2 3 ∞ 1 6 4 2 3 3 5 3 4

Update 2 6 4 2 4 2 2 6 1 2 3 ∞ 1 6 4 2 3 3 5 3 4 d(4) is not changed

Choose Minimum Temporary Label 2 6 4 2 4 2 2 1 2 3 6 1 6 4 2 3 3 5 3 4

Update 2 6 4 2 4 2 2 1 2 3 6 1 6 4 2 3 3 5 3 4 d(6) is not updated

Choose Minimum Temporary Label 2 6 4 2 4 2 2 1 2 3 6 1 6 4 2 3 3 5 3 4 There is nothing to update

End of Algorithm 2 6 6 3 4 All nodes are now permanent 1 2 3 6 1 6 4 2 3 3 5 3 4 All nodes are now permanent The predecessors form a tree The shortest path from node 1 to node 6 can be found by tracing back predecessors

15.082J / 6.855J / ESD.78J Network Optimization MITOpenCourseWare http://ocw.mit.edu 15.082J / 6.855J / ESD.78J Network Optimization Fall 2010 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.