Diverse Routing Algorithms

Slides:



Advertisements
Similar presentations
Maximum flow Main goals of the lecture:
Advertisements

* Bellman-Ford: single-source shortest distance * O(VE) for graphs with negative edges * Detects negative weight cycles * Floyd-Warshall: All pairs shortest.
Chapter 5 Shortest Paths: Label-Correcting Algorithms
Design and Analysis of Algorithms Single-source shortest paths, all-pairs shortest paths Haidong Xue Summer 2012, at GSU.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
Applied Discrete Mathematics Week 12: Trees
Chapter 5 Routing Algorithm in Networks. How are message routed from origin to destination? 1) Circuit-Switching → telephone net. Dedicated bandwidth.
Chapter 9 Graph algorithms. Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
CSE 421 Algorithms Richard Anderson Dijkstra’s algorithm.
Spring 2010CS 2251 Graphs Chapter 10. Spring 2010CS 2252 Chapter Objectives To become familiar with graph terminology and the different types of graphs.
Shortest Path Problems Directed weighted graph. Path length is sum of weights of edges on path. The vertex at which the path begins is the source vertex.
Chapter 9 Graph algorithms Lec 21 Dec 1, Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
TCOM 501: Networking Theory & Fundamentals
1 Shortest Path Algorithms. 2 Routing Algorithms Shortest path routing What is a shortest path? –Minimum number of hops? –Minimum distance? There is a.
The Shortest Path Problem
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
Computational Methods for Management and Economics Carla Gomes
Time-Constrained Flooding A.Mehta and E. Wagner. Time-Constrained Flooding: Problem Definition ●Devise an algorithm that provides a subgraph containing.
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
Chapter 4: Finding the Shortest Path Lesson 1: Dijkstra’s Algorithm
Chapter 4 Shortest Path Label-Setting Algorithms Introduction & Assumptions Applications Dijkstra’s Algorithm.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
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.
1 Network Optimization Chapter 3 Shortest Path Problems.
COSC 2007 Data Structures II Chapter 14 Graphs III.
Introduction to Graphs. Introduction Graphs are a generalization of trees –Nodes or verticies –Edges or arcs Two kinds of graphs –Directed –Undirected.
TCP Traffic and Congestion Control in ATM Networks
A Framework for Reliable Routing in Mobile Ad Hoc Networks Zhenqiang Ye Srikanth V. Krishnamurthy Satish K. Tripathi.
Graph Algorithms Why graph algorithms ? It is not a “graph theory” course! Many problems in networks can be modeled as graph problems. Note that -The topology.
Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘length’ c ij (cost, time, distance, …). Determine a path of shortest.
Spring Routing: Part I Section 4.2 Outline Algorithms Scalability.
Graphs Definition: a graph is an abstract representation of a set of objects where some pairs of the objects are connected by links. The interconnected.
Survivability in IP over WDM networks YINGHUA YE and SUDHIR DIXIT Nokia Research Center, Burlington, Massachusetts.
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
Shortest Path from G to C Using Dijkstra’s Algorithm
The minimum cost flow problem
Discrete Optimization Lecture 1
Rudra Dutta CSC Fall 2011, Section 001
Shortest Path Problems
EMIS 8374 Dijkstra’s Algorithm Updated 18 February 2008
Disjoint Path Routing Algorithms
Routing in Packet Networks Shortest Path Routing
Spanning Trees.
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Autumn 2015 Lecture 11 Minimum Spanning Trees (Part II)
Graphs Chapter 11 Objectives Upon completion you will be able to:
Shortest Path.
Shortest Path.
Dijkstra’s Algorithm for the Shortest Path Problem
Autumn 2015 Lecture 10 Minimum Spanning Trees
Shortest Path Problems
Graphs.
Shortest-Path Property 4.1
Chapter 4: Finding the Shortest Path Lesson 1: Dijkstra’s Algorithm
Chapter 6 Network Flow Models.
Shortest Path.
Autumn 2016 Lecture 10 Minimum Spanning Trees
Dijkstra’s Algorithm for Shortest Paths
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
and 6.855J Dijkstra’s Algorithm
CSE 417: Algorithms and Computational Complexity
15.082J & 6.855J & ESD.78J Visualizations
Graphs.
Graphs.
Graphs.
Winter 2019 Lecture 10 Minimum Spanning Trees
GRAPHS.
EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
Presentation transcript:

Diverse Routing Algorithms CSC/ECE 772: Survivable Networks Spring, 2009, Rudra Dutta

Disjoint Paths Algorithms Simple approach (two-step) fails with trap topologies Remedy - “remember” first path found by link reversal As in flow problems Must be able to find shortest paths in presence of negative-cost arcs Remedy - modify Dijkstra’s algorithm Can also use general purpose shortest path algorithm for negative-cost arcs Can also use graph transformation to eliminate negative-cost arcs Copyright Rudra Dutta, NCSU, Spring, 2009

Dijkstra’s Algorithm Given: Use: Undirected graph G with vertices V, Source node A, Destination node Z Edge costs l(ij) Use: N(i) = set of neighbors of i, d(i) = distance from A to i, S = set of nodes to which shortest distance has NOT been found, P(i) = predecessor of i in path from A Copyright Rudra Dutta, NCSU, Spring, 2009

Dijkstra’s Algorithm Initialize Select new vertex to label permanently l(ij) cost of edge ij N(i) = neighbors of i d(i) = distance A to i S = nodes not found P(i) = predecessor of i Dijkstra’s Algorithm Initialize d(A) = 0; d(i) = l(Ai) for all i in N(A),  for all other i S = all vertices except A P(i) = A for all i in S Select new vertex to label permanently Choose j from S such that d(j) = min d(i), for i in S Remove j from S If j = Z, then stop; otherwise go to Step 3 Update distances For all i in N(j) such that i is also in S If d(j) + l(ij) < d(i), update d(i) to d(j) + l(ij) and set P(i) to j Back to Step 2 Copyright Rudra Dutta, NCSU, Spring, 2009

Dijkstra’s Algorithm - Example Copyright Rudra Dutta, NCSU, Spring, 2009

Negative Cost Arcs Many reasonable cost metrics are positive-only However, sometimes negatives costs can turn up Sometimes introduced by specific desired transformations of graphs Graph may have cycles Cycles with negative total costs exist Concept of shortest path? If negative cost arcs, but not cycles? Specific family of such graphs generated by useful diverse routing algorithms Dijkstra’s algorithm fails with negative arc costs Copyright Rudra Dutta, NCSU, Spring, 2009

Failure of Dijkstra - Example Copyright Rudra Dutta, NCSU, Spring, 2009

Dijkstra’s Algorithm - Modified l(ij) cost of edge ij N(i) = neighbors of i d(i) = distance A to i S = nodes not found P(i) = predecessor of i Dijkstra’s Algorithm - Modified Initialize d(A) = 0; d(i) = l(Ai) for all i in N(A),  for all other i S = all vertices except A P(i) = A for all i in S Select new vertex to label permanently Choose j from S such that d(j) = min d(i), for i in S Remove j from S If j = Z, then stop; otherwise go to Step 3 Update distances For all i in N(j) such that i is also in S If d(j) + l(ij) < d(i), update d(i) to d(j) + l(ij) and set P(i) to j Back to Step 2 S =  ----------------------------- Also add i back to S Copyright Rudra Dutta, NCSU, Spring, 2009

Modified Dijkstra - Example Copyright Rudra Dutta, NCSU, Spring, 2009

Shortest Disjoint Path Pair Objective: find a pair of paths between a source a destination that are: Edge-disjoint, or Vertex-disjoint Sum of their lengths is minimum Observations: Vertex-disjointness implies edge-disjointedness For graph of vertices with degrees 3 or less: Edge-disjointedness implies Vertex-disjointedness Length of vertex-disjoint pair ≥ length of edge-disjoint pair Copyright Rudra Dutta, NCSU, Spring, 2009

Simple Two-step Approach Fails Obvious approach - find one, then other May not find shortest pair May not find pair at all even when one exists Trap topology A B D Z E C 1 2 Copyright Rudra Dutta, NCSU, Spring, 2009

Shortest Disjoint Path Algorithms Various types Most based on flow canceling approaches (like flow maximization) One early approach by Bhandari Other early approach by Suurballe (and with Tarjan) Bhandari’s algorithm Simpler to state on undirected graphs Assumes original graph has non-negative edge costs Creates intermediate mixed graphs with negative directed arc costs Only specific family of such graphs - arcs form s-d path Modified Dijkstra’s algorithm works correctly on such graphs Can be used in lieu of more complicated negative cost algorithms Copyright Rudra Dutta, NCSU, Spring, 2009

Bhandari’s Algorithm Find the shortest path from A to Z with the modified Dijkstra algorithm Replace each edge of the shortest path by a single arc directed towards the source vertex Make the length of each of the above arcs negative Find the shortest path from A to Z in the modified graph with the modified Dijkstra algorithm Transform to the original graph, and erase any interlacing edges of the two paths found Group the remaining edges to obtain the shortest pair of edge-disjoint paths Copyright Rudra Dutta, NCSU, Spring, 2009

Bhandari’s Algorithm - Example Copyright Rudra Dutta, NCSU, Spring, 2009

k Disjoint Paths Can be generalized to obtain more disjoint paths Edge-disjoint shortest triplet algorithm: Find the shortest edge-disjoint pair of paths between A and Z Replace the edges of the disjoint paths by arcs directed towards the source Make the length of the arcs negative Find the shortest path from A to Z in the modified graph using the modified Dijkstra algorithm Transform to the original graph, and erase any edges of this shortest path interlacing with the shortest edge-disjoint pair of paths Straightforward generalization to k > 3 Copyright Rudra Dutta, NCSU, Spring, 2009

Edge Disjoint Triple - Example Copyright Rudra Dutta, NCSU, Spring, 2009

Vertex Disjoint Paths Builds on the edge disjoint path algorithm Simple graph transformation Separate “source” nature of “destination” nature of each vertex into two fictitious vertices Directed arc from “destination” to “source” for each, zero cost Path, flow etc. preserved in magnitude and cost Use of fictitious vertices/arcs can be limited to “as needed” basis Edge disjoint paths in transformed graph are clearly vertex disjoint in original Can be generalized to k > 2 as before Copyright Rudra Dutta, NCSU, Spring, 2009

Vertex Disjoint Pair Algorithm Find the shortest path from A to Z with the modified Dijkstra algorithm Replace each edge on the shortest path by an arc directed towards the destination vertex Split each vertex on the shortest path into two co-located subvertices joined by an arc of length zero direct the arc of length zero towards the destination replace each external edge connected to a vertex on the shortest path by its two component arcs (of the same length) let one arc terminate on one subvertex, the other emanate from the other subvertex - forming cycle along zero-length arc Reverse the direction of the arcs on the shortest path, and make their length negative Find the shortest path from A to Z in the modified graph with the modified Dijkstra algorithm Remove zero-length arcs; coalesce subvertices into parent vertices; replace arcs on first shortest path with original edges of positive length; remove interlacing edges of the two paths Copyright Rudra Dutta, NCSU, Spring, 2009

Vertex Disjoint Pair - Example Copyright Rudra Dutta, NCSU, Spring, 2009

Use for Multiple Source/Destinations Z1 Z2 Z A Z1 Z2 A1 A2 Z A Z1 Z2 A1 A2 Z A Z1 Z2 Copyright Rudra Dutta, NCSU, Spring, 2009