Definitioncore
Slicing floorplan
Also called slicing structure, guillotine floorplan.
A floorplan obtained by cutting the chip rectangle again and again by horizontal or vertical lines, represented by a slicing tree.
A slicing floorplan is a division of the chip rectangle into rectangular rooms that can be made by straight cuts alone: cut the rectangle from one side to the opposite side by a vertical or a horizontal line, then cut each part in the same way, until each part holds one block. It is the guillotine structure of cutting stock, used for floorplanning in chip design, and it is stored as a slicing tree, a binary tree whose inner nodes are the cuts and whose leaves are the blocks. Its value is that the tree can be optimized bottom up: shape functions and Stockmeyer's algorithm find the best shapes of all blocks in polynomial time, while for general floorplans the same problem is NP-complete. The cost is that some packings, such as the pinwheel of five blocks, are not slicing.
Definition
Dissection. Let be an axis-parallel rectangle. A dissection of into rooms is a set of axis-parallel rectangles with disjoint interiors whose union is .
Slicing floorplan. A dissection of is slicing if , or if some vertical or horizontal line segment from one side of to the opposite side, a cut, crosses no room and splits into two rectangles and such that the rooms inside and the rooms inside are both slicing. In a floorplan, each room holds one block, and the block fits in its room.
Slicing tree. A slicing tree is a full binary tree: each inner node has two children. The leaves are the rooms. Each inner node is labeled or . A node labeled stands for a vertical cut, with the left child for the part to the left of the cut and the right child for the part to the right. A node labeled stands for a horizontal cut, with the left child for the part below and the right child for the part above. This is the convention of the normalized Polish expression page, whose words are the postorders of these trees. The tree of a slicing floorplan follows the cuts in the definition, and conversely a tree with given block sizes gives a floorplan by the bottom-up rule: a node has width and height , and an node has width and height .
Same floorplan, several trees. Three side-by-side rooms , , have two trees, and , because the order of two parallel cuts is not fixed. A slicing tree is skewed if no node has a right child with the same label. Take slicing floorplans up to sliding of segments and with no point where four rooms meet. Then each slicing floorplan has exactly one skewed tree, and each skewed tree gives exactly one such floorplan (Wong and Liu 1986). Collapse each maximal chain of equal labels into one node: the result is an ordered tree in which each inner node has at least two children, and the labels alternate between and from a node to its children. So the label of the root fixes all the others.
Counting. Let be the number of ordered trees with leaves in which no node has exactly one child. A leaf gives , and a tree with leaves is a root with an ordered list of subtrees whose leaf counts add up to . So is the sum, over all ordered ways with and all , of . This gives for . By the collapse above, the number of slicing floorplans with unlabeled rooms is for and for , the factor for the label of the root:
| rooms | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| slicing floorplans | 1 | 2 | 6 | 22 | 90 | 394 | 1806 |
| full binary trees with labels, | 1 | 2 | 8 | 40 | 224 | 1344 | 8448 |
The first row is the sequence of large Schröder numbers , as Yao, Chen, Cheng and Graham (2003) state. The second row counts all slicing trees, with the Catalan number of full binary trees with leaves; the gap between the rows is the redundancy that normalization removes. With different blocks in the rooms, each count is multiplied by : there are normalized Polish expressions of three blocks and of four.
Recognition. A dissection is slicing exactly when the recursive search for a cut succeeds. A cut of a part is a maximal segment of the dissection that runs from one side of the part to the other, so a search over the segments of each part decides the question in polynomial time.
Examples and non-examples
Three rooms. The six slicing floorplans of three rooms are three columns, three rows, a vertical cut with the left or the right part cut once more horizontally, and a horizontal cut with the lower or the upper part cut once more vertically. Their skewed trees are , , , , and . The trees and are not skewed: they are the columns and the rows again.
A cross junction is allowed. Cut a square in half vertically, then cut both halves horizontally at the same height. The two horizontal cuts meet the vertical one at one point, where four rooms touch. The dissection is slicing, and it has two skewed trees, and , with and on the left and and at the bottom. A mosaic floorplan does not allow such a point. Move the two horizontal pieces apart and the vertical segment stays whole, which gives the first tree. Move the two vertical pieces apart and the horizontal segment stays whole, which gives the second tree. The count for four rooms counts these two floorplans once each.
Non-example: the pinwheel. Dissect a square into the rooms , , , and the center . A cut must be a straight segment from one side of the square to the opposite side. The dissection has four inner segments, and each of them ends at the boundary at one end and on another segment at the other end, so none of them is a cut. So the pinwheel is not slicing. Its mirror image is the other non-slicing floorplan with five rooms: there are 92 mosaic floorplans with five rooms (the Baxter number) and 90 slicing ones.
The price of slicing. Take the five blocks of the pinwheel with fixed orientation: two tall blocks , two wide blocks and one square . The pinwheel packs them into the square with no empty space. No slicing floorplan does. The width and the height of a slicing floorplan of these blocks are integers, since they are sums and maxima of block sides, so area means a , or rectangle with no empty space. The wide blocks do not fit in width and the tall blocks do not fit in height . In the square the first cut makes a strip and a part, or the same turned by a quarter turn, which swaps the tall and the wide blocks, so one case is enough. The strip holds only blocks of height , so it holds a wide block and the square. The part must then hold both tall blocks and one wide block. A horizontal cut of it makes strips of height , too low for a tall block, and a vertical cut makes a part and a part that must hold a tall block and a wide block, which no cut of the part allows. The best slicing floorplan has area : a tall block at each end of a rectangle, and between them a part with a wide block at the bottom and the square and the other wide block above it.
Non-example: a packing with a gap. Blocks placed freely in the chip, with empty space between them, do not form a dissection at all. A floorplan of a B*-tree or a sequence pair is such a packing. It is slicing in the sense of this page only when its blocks can be put into the rooms of a slicing dissection with the same relations.
Related definitions
- Normalized Polish expression. The postorder word of the skewed slicing tree, the usual way to store a slicing floorplan in a search.
- Shape function and Stockmeyer floorplan sizing. The bottom-up computation of the best width and height pairs of a slicing tree, polynomial because each node needs only the lists of its two children.
- Wong-Liu floorplanning. Simulated annealing over normalized Polish expressions.
- Mosaic floorplan. The wider class of dissections without cross junctions, counted up to sliding of segments, which includes the pinwheel; the Baxter number theorem counts it.
- Guillotine cut technique. The same recursive cuts in cutting stock and in approximation schemes for packing.
- Floorplan constraint graphs. For a slicing floorplan, the left-of order is a series-parallel order built from the tree.
- Expression tree. A slicing tree is an expression tree with the two operators and .
References
- Ralph H. J. M. Otten, Automatic floorplan design, Proceedings of the 19th Design Automation Conference, 261 to 267, 1982, slicing structures, the recursive cuts and their trees
- D. F. Wong and C. L. Liu, A new algorithm for floorplan design, Proceedings of the 23rd ACM/IEEE Design Automation Conference, 101 to 107, 1986, slicing trees, skewed slicing trees and their one to one correspondence with slicing floorplans and normalized Polish expressions
- Larry Stockmeyer, Optimal orientations of cells in slicing floorplan designs, Information and Control 57(2-3), 91 to 101, 1983, the polynomial orientation algorithm for slicing floorplans, and NP-completeness for general floorplans
- Bo Yao, Hongyu Chen, Chung-Kuan Cheng and Ronald L. Graham, Floorplan representations: complexity and connections, ACM Transactions on Design Automation of Electronic Systems 8(1), 55 to 80, 2003, the exact number of slicing floorplans with n rooms
- Andrew B. Kahng, Jens Lienig, Igor L. Markov and Jin Hu, VLSI Physical Design, From Graph Partitioning to Timing Closure, second edition, Springer, 2022, Chapter 3, Chip Planning (slicing and non-slicing floorplans, slicing trees; 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 CD0S40 Edit this page History Report an error Markdown