Theoremcore
Hanan's theorem
Also called Hanan grid.
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.
Hanan's theorem says that a shortest network of horizontal and vertical wires that joins a finite set of points can always be found on the grid of lines through the points. For a set of points, draw a vertical line through every point and a horizontal line through every point. The crossings of these lines form the Hanan grid, which has at most points for points of . M. Hanan proved in 1966 that some rectilinear Steiner minimal tree of has all its Steiner points, and in fact all its bends, at these crossings, and runs only along these lines. This turns the rectilinear Steiner tree problem, which allows Steiner points anywhere in the plane, into a Steiner tree problem on a finite graph. In electronic design automation (EDA) it is the reason why Steiner tree methods such as iterated 1-Steiner and FLUTE only consider grid points.
Statement
Let be a finite set of points in the plane, with the set of their coordinates and the set of their coordinates. A rectilinear Steiner tree of is a finite union of horizontal and vertical segments that is connected and contains . Its length is the total length of the segments. The grid graph has the vertex set , and an edge between two vertices that are next to each other on a horizontal or a vertical line, with its L1 length.
Theorem (Hanan 1966). For every rectilinear Steiner tree of there is a tree in that contains and is no longer than . Hence a rectilinear Steiner minimal tree of exists, and some rectilinear Steiner minimal tree is a subtree of : all its Steiner points and bends are in and all its segments lie on the lines for and for .
The theorem says "some", not "every". Other optimal trees off the grid can exist, as the section on tightness shows.
In plain words
You must join some pins with wire that runs only left, right, up and down. You may add branch points anywhere. Where should they go?
Hanan's answer: draw a vertical line and a horizontal line through every pin. You never need a branch point or a bend that is not on a crossing of these lines.
The reason is a sliding argument. Take a vertical piece of wire that is not on one of the lines. Push it a little to the left or to the right. The horizontal wires that end on it get longer on one side and shorter on the other. Push it toward the side with more of them, and the total does not grow. Keep pushing until it lands on another vertical piece, which brings it closer to the lines. Do the same for the horizontal pieces.
Proof
Step 0: a tree as a graph. Split the segments of at every endpoint, bend, crossing and point of . This gives a finite connected graph drawn in the plane, whose edges are horizontal or vertical segments, and whose total edge length is the length of . A spanning tree of still connects and is no longer. From now on we work with an abstract tree and a position for each vertex , with three invariants:
- every edge joins two vertices with the same or the same , so it is horizontal or vertical;
- the vertices that are points of keep their positions;
- the length over the edges never grows.
Edges may overlap in the plane. The drawn union of the edges is connected, contains and has length at most .
Step 1: one slide. Let be the coordinate of some vertex. Let be the set of vertices with . None of them is a point of . Let be the number of horizontal edges with one end in and the other end at , and the number with the other end at . Every other edge at a vertex of has both ends in , since it joins two points with , and a move of all of keeps its length. Because is connected and contains a point of , which is not in , we have .
Move every vertex of to and keep its . The edges inside keep their length, the edges to the left change by and the edges to the right change by , as long as no vertex is passed. So changes by . If , then , and we take up to the nearest coordinate of a vertex outside , which exists because the edges have their other ends there. If , we take up to the nearest of a vertex outside , which exists because . In both cases , and no edge reaches negative length on the way, since no vertex outside has its strictly between and . All three invariants hold. After the move, the set of coordinates of the vertices has lost and gained nothing.
Step 2: all slides. Repeat Step 1 while some vertex has an coordinate not in . Each slide removes one value from the finite set of coordinates of vertices and adds none, so after finitely many slides every vertex has . Now do the same with the roles of and exchanged. A vertical slide changes only coordinates, so the coordinates stay in . At the end every vertex is in .
Step 3: back to the grid. Each edge now joins two points of on the same horizontal or vertical line, so it is a path of grid edges of with the same length. The union of these grid paths is a connected subgraph of that contains , and its length is at most , with equality when no two paths share a grid edge. A spanning tree of is a tree in that contains and is no longer than .
Step 4: existence and the conclusion. is finite, so among its trees that contain there is a shortest one, . Every grid tree is a rectilinear Steiner tree, and by Step 3 every rectilinear Steiner tree is at least as long as some grid tree, so at least as long as . Hence is a rectilinear Steiner minimal tree, and all its vertices, Steiner points and bends included, are in .
Example. Take and the tree with a trunk on from to and the arms to , to and to . Its length is , and . On the line there are arms to the left and to the right, so the slide goes left with change for . At the trunk meets the pins, and the length is . This is the half perimeter of the bounding box, which no tree can beat, so the grid tree is optimal.
Consequences
- A finite problem. The rectilinear Steiner tree problem is the Steiner tree problem in the graph with at most vertices. Exact methods search this graph, and the brute force of trying every set of at most grid points with a rectilinear minimum spanning tree on each is correct.
- In NP. The decision form, "is there a tree of length at most ", has a certificate of polynomial size: a subtree of . Garey and Johnson (1977) showed that it is NP-complete.
- Candidate points. Heuristics need only try the at most grid points as Steiner points, as in iterated 1-Steiner.
- Lengths are linear in the gaps. The length of a grid tree is a sum of gaps between neighboring values and neighboring values, with integer coefficients. For a fixed order of the points in and in , the optimum is the least of finitely many such linear forms. FLUTE stores these forms in tables.
- Three points. For the optimum is the half-perimeter wirelength of the bounding box, reached by a star from the grid point with the median and the median .
Tightness
- Not every optimal tree is on the grid. For the four corners , , and of a 3 by 4 rectangle, the two horizontal sides and one vertical bridge between them give length , which is optimal. The bridge can be at any in , for example at , where its two Steiner points and are not on the grid. Here on the line of the bridge, and the slide keeps the length the same.
- Steiner points that are not pins are needed. For the plus shape , , , , the optimum 4 uses the grid point , which is not one of the points. Every tree with no Steiner points has length at least 6.
- The grid does not shrink in general. The theorem gives a set of candidates, and a minimal tree uses at most of them, but which ones depends on the gaps between the coordinates, as the example on the FLUTE page shows for one order of four points.
- Other metrics. In the Euclidean plane the Steiner points of a minimal tree are at 120 degree junctions and are not on any fixed finite grid, so the theorem has no direct Euclidean form.
History
M. Hanan studied the Steiner problem with rectilinear distance in 1966 and proved that a minimal tree can be found on the grid of lines through the given points. He also gave exact solutions for small numbers of points. F. K. Hwang studied the shape of full rectilinear Steiner trees in 1976 and proved the bound 3/2 on the ratio of the minimum spanning tree to the minimal tree, see Hwang's theorem. Garey and Johnson showed in 1977 that the problem is NP-complete, and the grid shows that its decision form is in NP. The grid is now the standard search space of rectilinear Steiner tree methods in VLSI routing.
References
- M. Hanan, On Steiner's problem with rectilinear distance, SIAM Journal on Applied Mathematics 14(2), 255 to 265, 1966, the theorem that a minimal tree can be found on the grid of lines through the given points, and the exact solutions for small numbers of points
- M. R. Garey and D. S. Johnson, The rectilinear Steiner tree problem is NP-complete, SIAM Journal on Applied Mathematics 32(4), 1977, the NP-completeness of the decision problem
- Frank K. Hwang, Dana S. Richards and Pawel Winter, The Steiner Tree Problem, Annals of Discrete Mathematics 53, North-Holland, 1992, Part III, the rectilinear Steiner problem (general locator)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 1GZ7DZ Edit this page History Report an error Markdown