L o g o Jieyi Long, Hai Zhou, and Seda Ogrenci Memik Dept. of EECS, Northwestern Univ. An O(nlogn) Edge-Based Algorithm for Obstacle- Avoiding Rectilinear Steiner Tree Construction
L o g o Company Logo Outline Introduction 1 Problem Formulation 2 Edge-Based OARST Algorithm 3 Experimental Results 4 Conclusions 5
L o g o Company Logo Outline Introduction 1 Problem Formulation 2 Edge-Based OARST Algorithm 3 Experimental Results 4 Conclusions 5
L o g o Company Logo Introduction Steiner Routing Existing Work: Mostly assumes obstacle-free routing plane Modern VLSI Chip Obstacles: IP cores, macro blocks, pre- route nets
L o g o Company Logo Contents Introduction 1 Problem Formulation 2 Edge-Based OARST Algorithm 3 Experimental Results 4 Conclusions 5
L o g o Company Logo Steiner points Problem Formulation OARSMT Obstacle-Avoiding Rectilinear Steiner Minimal Tree m terminals k rectilinear obstacles rectilinear tree minimum length connects all tmls GIVEN GOAL avoids obstacles NP- Hard
L o g o Company Logo Contents Introduction 1 Problem Formulation 2 Edge-Based OARST Algorithm 3 Experimental Results 4 Conclusions 5
L o g o Company Logo Algorithm Overview OASG MTSTOARST Tmls, Obsts
L o g o Company Logo Algorithm Overview OASG MTSTOARST Tmls, Obsts
L o g o Company Logo Algorithm Overview OASG MTSTOARST Tmls, Obsts
L o g o Company Logo Algorithm Overview OASG MTSTOARST Tmls, Obsts
L o g o Company Logo Step 1: OASG Generation Spanning Graph Octal partition Minimum Spanning Tree (MST) embedded Obstacle-Avoiding Spanning Graph (OASG) On a obstacle-free routing plane [ Zhou et al.] Obstacle- Avoiding Spanning Graph How to define SG when there are obstacles? How to construct OASG efficiently? Is MST still embedded? What if there are obstacles…
L o g o Company Logo Step 1: OASG Generation Obstacle-Avoiding Spanning Graph (OASG) Q1: How to Define SG when there are obstacles? A: 1. Connect the terminals and corners - Intuition: when blocked, shortest paths going through corners 2. Quadrant partition only - easier to handle, does not degrade the solution quality much
L o g o Company Logo Step 1: OASG Generation Obstacle-Avoiding Spanning Graph (OASG) Q2: How to construct OASG efficiently? A: Sweeping Line Algorithm (Quad1) + order the vertices by x+y; + sweep from the first vertex in the order; + Active Set (vertices in red circles): contain all the swept vertices whose closest vertex is to be discovered; + blockage checking…
L o g o Company Logo Step 1: OASG Generation Obstacle-Avoiding Spanning Graph (OASG) Blockage Checking Lemma 1 : (u, v) intersects with a horizontal edge if and only if: 1)The edge is intersecting with the sweeping line 2)The y-coordinate of the edge is between those of u and v u v Use balanced BST to store y-coordinate of the edges, ensuring O(logn) query time
L o g o Company Logo Step 1: OASG Generation Obstacle-Avoiding Spanning Graph (OASG) Data Structure for the Active Set Balanced BST (x as the keys) No Obstacle x y O(logn) query, insertion, deletion time Hierarchical Balanced Binary Search Tree
L o g o Company Logo Step 1: OASG Generation Obstacle-Avoiding Spanning Graph (OASG) Q3: Does the OASG contain the MST connecting all the terminals? A: Unfortunately no, but we can extract a structure called MTST from OASG as the starting point for refinement
L o g o Company Logo Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Map an OASG to a Complete Graph CG + a vertex for each terminal + edge length equals the shortest path length between the two end vertices on the OASG MTSTMTSTMTSTMTST MTSTMTSTMTSTMTST p1p1 p2p2 p3p p1p1 p2p2 p3p
L o g o Company Logo Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Generate MST(CG) Map MST(CG) to MTST(OASG) MTSTMTSTMTSTMTST MTSTMTSTMTSTMTST p1p1 p2p2 p3p p1p1 p2p2 p3p The definition gives a trivial algorithm to generate MTST. However, its complexity is at least O(n 2 logn)
L o g o Company Logo Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? Extreme Cases All vertices are terminals: MTST degenerated to MST, which can be found using Kruskal’s algorithm in O(nlogn) time Only two terminals: MTST degenerated to shortest path between these two terminals, which can be found by Dijkstra’s algorithm in O(nlogn) time It is reasonable to assume that certain combination of Dijkstra’s and Kruskal’s alg. can generate MTST in O(nlogn) time
L o g o Company Logo 1.Add a dummy node and zero-weighted edges Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 p4p4 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c
L o g o Company Logo 1 p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Add a dummy node and zero-weighted edges 2.Construct shortest path tree using Dijkstra’s Alg.
L o g o Company Logo 1 p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Add a dummy node and zero-weighted edges 2.Construct shortest path tree using Dijkstra’s Alg. 3.Remove the dummy node and edges
L o g o Company Logo 1 p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Add a dummy node and zero-weighted edges 2.Construct shortest path tree using Dijkstra’s Alg. 3.Remove the dummy node and edges 4. Treat each tree as a super node and apply Kruskal’s Alg.
L o g o Company Logo 1 p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Add a dummy node and zero-weighted edges 2.Construct shortest path tree using Dijkstra’s Alg. 3.Remove the dummy node and edges 4. Treat each tree as a super node and apply Kruskal’s Alg.
L o g o Company Logo 1 p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Add a dummy node and zero-weighted edges 2.Construct shortest path tree using Dijkstra’s Alg. 3.Remove the dummy node and edges 4. Treat each tree as a super node and apply Kruskal’s Alg.
L o g o Company Logo 1 p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? 1 p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Add a dummy node and zero-weighted edges 2.Construct shortest path tree using Dijkstra’s Alg. 3.Remove the dummy node and edges 4. Treat each tree as a super node and apply Kruskal’s Alg.
L o g o Company Logo p4p4 Step 2: MTST Construction Minimum Terminal Spanning Tree (MTST) Can we do better than O(n 2 logn)? p1p1 p2p2 p3p3 c1c1 c2c2 c3c3 c4c4 c5c5 c6c6 c7c7 c8c8 c9c9 c Time Complexity: O(nlogn) Dijkstra’s and Kruskal’s Alg. on a sparse graph 8
L o g o Company Logo Step 3: Edge-Based Refinement Obstacle-Avoiding Rectilinear Steiner Tree (OARST) From MTST to OARST Obstacle-Free: - consider vertex-edge pairs for tree length reduction (O(n 2 ) pairs) [Borah et al.]
L o g o Company Logo Step 3: Edge-Based Refinement Obstacle-Avoiding Rectilinear Steiner Tree (OARST) Handling Obstacles u v path longest path MTST path’ MTST Consider each neighboring vertex-edge pair (u, e) where e is on the MTST e Find out v, the closest on-MTST vertex to u (Extended-Dijkstra in Step 2 can be reused here to identify all such pairs) Add Steiner points, connect path Remove e and path longest (path longest for all (u, e) pair can be identified by Tarjan’s offline least common ancestor alg. )
L o g o Company Logo Step 3: Edge-Based Refinement Obstacle-Avoiding Rectilinear Steiner Tree (OARST) Handling Obstacles Q: Do the newly added edges intersect with the obstacles? No. Because there should not be any vertex within the yellow area u p q e = (p, q)
L o g o Company Logo Obstacle-Avoiding Rectilinear Steiner Tree (OARST) Complexity of the Algorithm MTST Construction: Dijkstra’s and Kruskal’s Alg. on sparse graphs (O(nlogn)) OASG Generation: Sweeping line alg. with efficient active set implementation (O(nlogn)) Edge-Based Refinement: Consider only O(n) vertex- edge pairs (O(nlogn)) Time Complexity Analysis Step 1: O(nlogn) Step 2: O(nlogn) Step 3: O(nlogn) Entire Alg.: O(nlogn)
L o g o Company Logo Contents Introduction 1 Problem Formulation 2 Edge-Based OARST Algorithm 3 Experimental Results 4 Conclusions 5
L o g o Company Logo Experimental Results
L o g o Company Logo Experimental Results
L o g o Company Logo Experimental Results
L o g o Company Logo Experimental Results
L o g o Company Logo Experimental Results Tree Length mkFeng’sLin’sOursImpr% IND % IND % IND % RC % RC % RC % Running Time (sec) Feng’sLin’sOurs Speedup X X X X X X Commonly Used Test Cases
L o g o Company Logo Experimental Results Tree Length mk Feng’sLin’sOursImpr% RL % RL % RL % RL % RL % Running Time (sec) Feng’sLin’sOurs Speedup X X X X X Large Test Cases Across a larger set of test cases, compared to Lin et al.’s heuristic, our algorithm achieves 25.8X speedup on average, while the length of the resulting OARSTs is only 1.58% larger on average
L o g o Company Logo Conclusions Problem Formulation Problem Formulation Three-Step O(nlogn) OARST Algorithm Three-Step O(nlogn) OARST Algorithm OASG Generation O(nlogn) MTST Construction O(nlogn) Edge-Based Refinement O(nlogn) Experimental Results Illustrate the Effectiveness and Efficiency of Our Approach Experimental Results Illustrate the Effectiveness and Efficiency of Our Approach
L o g o