Breadth first search animation

Slides:



Advertisements
Similar presentations
Outline LP formulation of minimal cost flow problem
Advertisements

DIJKSTRA’s Algorithm. Definition fwd search Find the shortest paths from a given SOURCE node to ALL other nodes, by developing the paths in order of increasing.
15.082J & 6.855J & ESD.78J Shortest Paths 2: Bucket implementations of Dijkstra’s Algorithm R-Heaps.
Chapter 5 Shortest Paths: Label-Correcting Algorithms
15.082J, 6.855J, and ESD.78J Sept 16, 2010 Lecture 3. Graph Search Breadth First Search Depth First Search Intro to program verification Topological Sort.
Breadth First Search
15.082J/6.855J/ESD.78J September 14, 2010 Data Structures.
& 6.855J & ESD.78J Algorithm visualizations Modified Label Correcting Algorithm.
15.082J, 6.855J, and ESD.78J September 21, 2010 Eulerian Walks Flow Decomposition and Transformations.
and 6.855J The Capacity Scaling Algorithm.
15.082J & 6.855J & ESD.78J September 23, 2010 Dijkstra’s Algorithm for the Shortest Path Problem.
& 6.855J & ESD.78J Algorithm Visualization The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem.
The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem Thanks to Jim Orlin & MIT OCW.
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem.
Network Simplex Animations Network Simplex Animations.
15.082J & 6.855J & ESD.78J September 30, 2010 The Label Correcting Algorithm.
15.082J and 6.855J and ESD.78J Network Simplex Animations.
Cycle Canceling Algorithm
Network Optimization J.B. Orlin
Network Simplex Animations
Unweighted Shortest Path Neil Tang 3/11/2010
Party-by-Night Problem
Dijkstra’s Algorithm with two levels of buckets
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Introduction to Maximum Flows
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.
Dijkstra’s Algorithm for the Shortest Path Problem
Lecture 4 Graph Search.
Lecture 19-Problem Solving 4 Incremental Method
Introduction to Minimum Cost Flows
Spanning Tree Algorithms
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Successive Shortest Path Algorithm
Successive Shortest Path Algorithm
and 6.855J March 6, 2003 Maximum Flows 2
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
EMIS 8374 Search Algorithms Updated 9 February 2004
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
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
The Minimum Cost Spanning Tree Problem
and 6.855J Depth First Search
The travelling salesman problem
Breadth first search animation
OPIM 915 Fall 2010 Data Structures 23-38,
Introduction to Maximum Flows
EMIS 8374 Search Algorithms Updated 12 February 2008
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.
15.082J & 6.855J & ESD.78J Visualizations
Presentation transcript:

Breadth first search animation Network Optimization Breadth First Search Get ahold of a network, and use the same network to illustrate the shortest path problem for communication newtorks, 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.) Breadth first search animation

Breadth first search animation Initialize 1 2 4 5 3 6 9 7 8 1 2 4 5 3 6 9 7 8 1 1 Unmark all nodes in N; Mark node 1 and add it to LIST. LIST 1 Breadth first search animation

Breadth first search animation Select node 1 1 2 4 5 3 6 9 7 8 1 2 1 1 1 3 Select the first node in LIST. Arc numbers for arcs in A(i) refer to the order in which arcs of A(i) are scanned. LIST 1 Breadth first search animation

Breadth first search animation Scan arcs (1,2) 2 4 2 2 8 1 2 1 1 1 1 5 7 Find an admissible arc 3 9 3 6 LIST 1 2 Breadth first search animation

Breadth first search animation Scan arc (1,5) 2 4 2 2 8 1 2 1 1 1 1 5 5 7 3 Select node 1 and find an admissible arc. 3 9 3 6 LIST 1 2 5 Breadth first search animation

Breadth first search animation Scan arc (1,3) 2 4 2 2 8 1 2 1 1 1 1 5 5 7 3 Select node 1 and find an admissible arc. 3 9 3 3 6 4 LIST 1 2 5 3 Breadth first search animation

Breadth first search animation Delete Node 1 from LIST 2 4 2 2 8 1 1 1 1 1 5 5 7 3 Delete node 1 from LIST 9 3 3 6 4 LIST 1 2 5 3 Breadth first search animation

Breadth first search animation Select Node 2 1 2 4 2 2 2 8 2 1 1 1 1 1 5 5 7 3 Select first node on LIST 9 3 3 6 4 LIST 1 2 5 3 Breadth first search animation

Breadth first search animation Scan arc (2, 4) 5 1 2 4 4 2 2 2 8 2 1 1 1 5 5 7 3 Select an admissible arc 9 3 3 6 4 LIST 1 2 5 3 4 Breadth first search animation

Breadth first search animation Scan arc (2, 5) 5 1 2 4 4 2 2 2 8 2 1 1 1 5 5 7 3 Ignore any scanned arcs out of node 2 that are not admissible. 9 3 3 6 4 LIST 1 2 5 3 4 Breadth first search animation

Breadth first search animation Delete node 2 5 2 4 4 2 2 2 2 8 1 1 1 5 5 7 3 Delete node 2 from LIST 1 9 3 3 6 4 LIST 2 5 3 4 Breadth first search animation

Breadth first search animation Select node 5 5 2 4 4 2 2 2 8 1 1 1 5 5 5 7 3 1 Select the first node on LIST 9 3 3 6 4 LIST 5 3 4 Breadth first search animation

Breadth first search animation Scan arc (5,6) 5 2 4 4 2 2 2 8 1 1 1 5 5 5 7 3 Find an admissible arc 1 9 3 3 6 6 4 6 LIST 5 3 4 6 Breadth first search animation

Breadth first search animation Delete node 5 5 2 4 4 2 2 2 8 1 1 1 5 5 5 5 7 3 1 Delete node 5 from LIST 2 9 3 3 6 6 4 6 LIST 5 3 4 6 Breadth first search animation

Breadth first search animation Select node 3 5 2 4 4 2 2 2 8 1 1 1 5 5 5 5 7 3 1 Select first node on LIST 2 9 3 3 3 6 6 4 6 LIST 3 4 6 Breadth first search animation

Breadth first search animation Scan arcs out of node 3 5 2 4 4 2 2 2 8 1 1 1 5 5 5 5 7 3 1 Ignore any scanned arc that is not admissible. 2 9 3 3 3 6 6 4 6 LIST 3 4 6 Breadth first search animation

Breadth first search animation Delete node 3 5 2 4 4 2 2 2 8 1 1 1 5 5 5 5 7 3 Delete node 3 from LIST 9 3 3 3 3 6 6 4 6 LIST 3 4 6 Breadth first search animation

Breadth first search animation Select node 4 5 1 2 4 4 4 2 2 8 2 1 1 1 5 5 7 3 Select the first node on LIST 9 3 3 6 6 4 6 LIST 4 6 Breadth first search animation

Breadth first search animation Scan arc (4, 8) 5 1 2 4 4 4 7 2 2 8 8 2 1 1 1 5 5 7 3 Look for an admissible arc. 9 3 3 6 6 4 6 LIST 1 2 5 3 4 6 8 Breadth first search animation

Breadth first search animation Scan arc (4, 5) 5 1 2 4 4 4 7 2 2 8 8 2 1 1 1 5 5 7 3 Look for an admissible arc 9 3 3 6 6 4 6 LIST 4 6 8 Breadth first search animation

Breadth first search animation Delete Node 4 5 2 4 4 4 4 7 2 2 8 8 1 1 1 5 5 7 3 Delete node 4 from LIST 9 3 3 6 6 4 6 LIST 4 6 8 Breadth first search animation

Breadth first search animation Select node 6 5 2 4 4 7 2 2 8 8 1 1 1 5 5 7 3 1 Select the first node on LIST 2 9 3 3 6 6 6 4 6 LIST 6 8 Breadth first search animation

Breadth first search animation Scan arc (6,7) 5 2 4 4 7 2 2 8 8 1 8 1 1 5 5 7 7 3 1 Scan arcs out of node 6 one at a time. 2 9 3 3 6 6 6 4 6 LIST 1 2 5 3 4 6 8 7 Breadth first search animation

Breadth first search animation Scan arc (6,9) 5 2 4 4 7 2 2 8 8 1 8 1 1 5 5 7 7 3 1 Scan arcs out of node 6 one at a time. 2 9 9 3 3 6 6 6 4 9 6 LIST 6 8 7 9 Breadth first search animation

Breadth first search animation Delete node 6 5 2 4 4 7 2 2 8 8 1 8 1 1 5 5 7 7 3 Delete node 6 from LIST 9 9 3 3 6 6 6 6 4 9 6 LIST 6 8 7 9 Breadth first search animation

Breadth first search animation Select node 8 5 2 4 4 7 2 2 8 8 8 1 8 1 1 5 5 7 7 3 Select first node on LIST 9 9 3 3 6 6 6 6 4 9 6 LIST 8 7 9 Breadth first search animation

Breadth first search animation Delete node 8 5 2 4 4 7 2 2 8 8 8 8 1 8 1 1 5 5 7 7 3 Delete node 8 9 9 3 3 6 6 6 6 4 9 6 LIST 8 7 9 Breadth first search animation

Breadth first search animation Select node 7 5 2 4 4 7 2 2 8 8 2 3 1 1 8 1 1 5 5 7 7 7 3 Select first node on LIST 9 9 3 3 6 6 6 6 4 9 6 LIST 7 9 Breadth first search animation

Breadth first search animation Scan arcs out of node 7 5 2 4 4 7 2 2 8 8 2 3 1 1 8 1 1 5 5 7 7 7 3 Scan arcs out of node 7 one at a time. 9 9 3 3 6 6 6 6 4 9 6 LIST 7 9 Breadth first search animation

Breadth first search animation Delete node 7 5 2 4 4 7 2 2 8 8 1 8 1 1 5 5 7 7 7 7 3 Delete node 7 from LIST 9 9 3 3 6 6 6 6 4 9 6 LIST 7 9 Breadth first search animation

Breadth first search animation Select node 9 5 2 4 4 7 2 2 8 8 2 1 8 1 1 5 5 7 7 3 Select the first node on LIST 1 9 9 9 3 3 6 6 6 6 4 9 6 LIST 9 Breadth first search animation

Breadth first search animation Scan arcs out of node 9 5 2 4 4 7 2 2 8 8 2 1 8 1 1 5 5 7 7 3 Scan arcs out of node 9, one at a time 1 9 9 9 3 3 6 6 6 6 4 9 6 LIST 9 Breadth first search animation

Breadth first search animation Delete node 9 5 2 4 4 7 2 2 8 8 1 8 1 1 5 5 7 7 3 Delete node 9 from LIST 9 9 9 9 3 3 6 6 6 6 4 9 6 LIST 9 Breadth first search animation

Breadth first search animation THE END Breadth first search animation

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.