Algorithm Search⌘K

Routing

Problems

  • Channel routing problem

    Connect the pins on the top and bottom edges of a rectangular channel with trunks on one layer and branches on the other, in the fewest tracks.

    core
  • Detailed routing

    Give each net exact tracks, layers and vias inside the regions chosen by global routing, so that all design rules hold.

    core
  • Global routing

    Assign each net a route through a coarse grid of tiles so that the number of nets across each tile edge stays within its capacity.

    core
  • Layer assignment

    Assign the segments of 2D routes to metal layers so that capacities hold and the number of vias is small.

    core
  • Escape routing

    Route a wire from each pin of a dense pin array on a package or board to the array's boundary, without crossings, often solved by network flow.

    advanced
  • Rectilinear Steiner arborescence

    Find a shortest rectilinear tree from a source to sinks in which every path from the source is monotone, so each sink is reached by a shortest path.

    advanced
  • River routing

    Connect two rows of terminals in order by non-crossing wires on one layer. Leiserson and Pinter and others give exact tests of separation in linear time.

    advanced
  • Switchbox routing

    Route nets in a rectangle with pins fixed on all four sides, which unlike a channel cannot grow, so a router may fail.

    advanced

Algorithms

  • Lee's maze routing algorithm

    Lee's router expands a wave of grid cells from the source by breadth-first search until it reaches the target, then traces back a shortest path.

    Θ(M N) worst1 languagesintro
  • Dogleg channel routing

    Deutsch's router that splits each multi-pin net at its pins into pieces that may take different tracks, which breaks some constraint cycles and can use fewer tracks.

    O(n + P log P + T (P + n)) worst1 languagescore
  • Greedy channel router

    Rivest and Fiduccia's router that scans the channel column by column and greedily joins, splits and jogs nets, and always completes by extending past the end.

    O((n + E) T^2) worst1 languagescore
  • Hadlock's algorithm

    A maze router that orders the search by detour number, the steps away from the target. It finds shortest paths and usually expands fewer cells than Lee's router.

    Θ(M N) worst1 languagescore
  • Iterated 1-Steiner heuristic

    Kahng and Robins's heuristic that repeatedly adds the Hanan grid point that shortens the rectilinear MST most, and stops when no point makes it shorter.

    O(R n^3 log n) total1 languagescore
  • Left-edge algorithm

    Hashimoto and Stevens's channel router that sorts intervals by left end and fills each track greedily, which meets the density bound without vertical constraints.

    O(n + N log N + T (N + n)) worst1 languagescore
  • Line-probe routing

    Routers that grow free horizontal and vertical line segments from both pins until two segments meet. Mikami-Tabuchi always finds a path if one exists; Hightower's faster form may not.

    Θ(M N) worst1 languagescore
  • Negotiated congestion routing

    McMurchie and Ebeling's router that reroutes all nets each round with costs raised on resources by present and past overuse, until no resource is shared.

    O(I (P E log V + m E)) worst1 languagescore
  • Rectilinear minimum spanning tree

    Builds the minimum spanning tree of points under the L1 metric in O(n log n) time, from a sparse graph that joins each point to a nearest point in each octant.

    Θ(n log n) worst1 languagescore
  • Soukup's algorithm

    A maze router that goes depth first toward the target and falls back to a breadth-first wave when blocked. It finds a path if one exists, but not always a shortest one.

    Θ(M N) worst1 languagescore
  • Bounded-radius bounded-cost tree

    Cong and coauthors' routing tree that walks the MST and adds shortcuts to the source, so the radius is within 1 + eps of optimal and the cost within 1 + 2/eps of the MST.

    Θ(n^2) worst1 languagesadvanced
  • FLUTE

    Chu and Wong's rectilinear Steiner tree method that looks up optimal trees for nets of up to nine pins in precomputed tables and splits larger nets into smaller ones.

    O(n^2) worst1 languagesadvanced
  • Multicommodity flow global routing

    Global routing as fractional multicommodity flow, solved approximately by multiplicative length updates over shortest paths, then rounded to one route per net.

    O(T k E log V) worst1 languagesadvanced
  • Prim-Dijkstra tradeoff

    Alpert and coauthors' tree builder with a parameter c in [0, 1] that blends Prim's minimum spanning tree and Dijkstra's shortest path tree to trade wire length for radius.

    Θ(n^2) worst1 languagesadvanced
  • Yoshimura-Kuh algorithm

    Channel routing that merges nets onto common tracks zone by zone, choosing merges that keep the longest path of the vertical constraint graph short, then runs left-edge.

    O(n N^2 (N + n)) worst1 languagesadvanced

Techniques

  • Pattern routing

    Routes each two-pin connection only by L-shaped or Z-shaped patterns with one or two bends, which is fast and leaves maze routing for hard nets.

    core
  • Rip-up and reroute

    Removes the routes of nets that cause overflow or violations and routes them again in a new order or with new costs, until the routing is legal.

    core

Definitions

  • Channel density

    The largest number of nets that cross one column of a channel. Every routing with trunks on one layer needs at least this many tracks.

    intro
  • Vertical constraint graph

    A directed graph on the nets of a channel, with an edge when one net must take a higher track than another at some column. A cycle in it forces a dogleg.

    core

Theorems

  • Hanan's theorem

    Some rectilinear Steiner minimal tree of a finite point set has all its Steiner points at crossings of the horizontal and vertical lines drawn through the points.

    core
  • Hwang's rectilinear Steiner ratio

    The rectilinear minimum spanning tree of a point set is at most 3/2 times the length of its rectilinear Steiner minimal tree, and the bound is tight.

    advanced
  • NP-completeness of channel routing

    Deciding whether a channel routes in k tracks is NP-complete without doglegs (LaPaugh 1980) and with doglegs (Szymanski 1985), though left-edge is optimal without vertical constraints.

    advanced