Algorithm Search⌘K

Definitionadvanced

Mosaic floorplan

Also called rectangular dissection floorplan.

A dissection of the chip into rectangles with no empty rooms and no crossing segments, counted up to sliding of segments.

A mosaic floorplan is a division of the chip rectangle into rectangular rooms, one room for each block, in which no four rooms meet at a point, and in which only the topology counts: two divisions are the same mosaic floorplan when one becomes the other by sliding segments without changing which room is next to which segment. It is the wider class that contains all slicing floorplans and also the pinwheel, which no sequence of cuts can make. Its value is that it is a finite, combinatorial object: with nn rooms there are exactly n−1n - 1 inner segments, the number of floorplans is the Baxter number, and a floorplanner can search over them with representations such as the corner block list or twin binary trees and then compute the sizes with longest paths.

Definition

Dissection. Let RR be an axis-parallel rectangle. A dissection of RR into nn rooms is a set of nn axis-parallel rectangles with disjoint interiors whose union is RR. A segment of the dissection is a maximal straight piece of the union of the room boundaries that lies inside RR and is not part of the boundary of RR.

Mosaic floorplan. A dissection is a mosaic floorplan if no point of RR is a corner of four rooms. Then each end of a segment is a T-junction: it lies inside another segment or on a side of RR, which goes on past it on both sides. Two mosaic floorplans are equivalent if there is a one to one map of the rooms and a one to one map of the segments that keeps the direction of each segment and the relations "room rr touches segment ss from the left", "from the right", "from below" and "from above". A mosaic floorplan is an equivalence class. In each class the rooms can be drawn with any sizes that the relations allow, so the class stores only the topology, and the sizes are found later.

Number of segments. A mosaic floorplan with nn rooms has exactly n−1n - 1 segments. Take it as a plane graph: the vertices are the four corners of RR and the ends of the segments, and the edges are the pieces between consecutive vertices on the segments and on the sides of RR. Let ss be the number of segments.

  • Two ends of segments never meet at one point. Two ends from opposite sides of a line make four rooms meet. If a vertical segment ends at the end point pp of a horizontal segment, then the horizontal line goes on past pp on both sides, so the horizontal segment does not end at pp. So there are 2s+42 s + 4 vertices.
  • There are s+4s + 4 lines, the segments and the four sides. A line with tt T-junctions inside it has t+1t + 1 edges, and each of the 2s2 s ends lies inside exactly one line. So there are (s+4)+2s=3s+4(s + 4) + 2 s = 3 s + 4 edges.
  • The faces are the nn rooms and the outer face.

The Euler formula V−E+F=2V - E + F = 2 gives (2s+4)−(3s+4)+(n+1)=2(2 s + 4) - (3 s + 4) + (n + 1) = 2, so s=n−1s = n - 1. The same count also bounds the pairs of rooms that touch along a piece of an edge: each inner edge has one room on each side, and there are at most 3s+4−4=3n−33 s + 4 - 4 = 3 n - 3 inner edges, so fewer than 3n3 n pairs of rooms are neighbors.

Counting. The numbers of mosaic floorplans with nn rooms, and of the slicing ones among them, are:

rooms nn 1 2 3 4 5 6 7
mosaic floorplans 1 2 6 22 92 422 2074
slicing floorplans 1 2 6 22 90 394 1806

The first row is the sequence of Baxter numbers, which is the Baxter number theorem, and the second row is the sequence of large Schröder numbers. The ratios of consecutive terms tend to 88 and to 3+22≈5.833 + 2 \sqrt{2} \approx 5.83, so for large nn almost all mosaic floorplans are not slicing.

Sizes from the topology. Give each room a block of width wrw_r and height hrh_r. The relations of a mosaic floorplan give two constraint graphs: an edge a→ba \to b in the horizontal graph when aa touches a vertical segment from the left and bb touches the same segment from the right, and in the same way for the vertical graph and the horizontal segments. In every drawing of the floorplan in which each room holds its block, an edge a→ba \to b of the horizontal graph forces xb≥xa+wax_b \ge x_a + w_a. So the longest path to bb in the horizontal graph is a lower bound on xbx_b, and the longest paths in the two graphs are lower bounds on the width and the height of the chip.

Examples and non-examples

Few rooms. With two rooms there are two mosaic floorplans, one vertical segment or one horizontal segment. With three rooms there are six, the same as the six slicing floorplans: three columns, three rows, and a full segment with a second segment that ends on it from one of its two sides.

Four rooms in a grid. The 2×22 \times 2 grid of four equal squares has a point where four rooms meet, so it is not a mosaic floorplan. It stands for two mosaic floorplans. Move the two horizontal pieces apart: the vertical segment becomes whole, and the horizontal pieces are two segments that end on it from the left and from the right. Move the two vertical pieces apart instead: the horizontal segment becomes whole. These two are not equivalent, since in the first one the four rooms touch one vertical segment and in the second one they touch one horizontal segment.

Sliding gives the same floorplan. Take a vertical segment from the bottom to the top of RR and, on its left, a horizontal segment from the left side of RR to it. Moving the horizontal segment up or down, or the vertical segment left or right, changes the sizes of the three rooms but not the relations, so all these drawings are one mosaic floorplan.

The pinwheel. The 3×33 \times 3 square with the rooms [0,1]×[0,2][0, 1] \times [0, 2], [1,3]×[0,1][1, 3] \times [0, 1], [2,3]×[1,3][2, 3] \times [1, 3], [0,2]×[2,3][0, 2] \times [2, 3] and [1,2]×[1,2][1, 2] \times [1, 2] is a mosaic floorplan with 55 rooms and 4=5−14 = 5 - 1 segments. Each segment ends on a side of RR at one end and on the next segment at the other end, so none runs from side to side, and the floorplan is not slicing. Its mirror image turns the other way. These two are the 92−90=292 - 90 = 2 mosaic floorplans with five rooms that are not slicing.

Non-example: a packing with empty space. A placement of blocks found from a sequence pair, a B*-tree or an O-tree usually leaves empty space between the blocks, so it is not a dissection. These representations describe packings, a different class of objects, and different packings can give the same mosaic floorplan after the empty space is given to the rooms.

Non-example: an L-shaped room. A division of RR in which one part is an L shape is not a dissection into rooms, since each room must be a rectangle.

  • Slicing floorplan. The mosaic floorplans that can be made by cuts from side to side, counted by the large Schröder numbers.
  • Baxter number theorem. The count of mosaic floorplans by the Baxter numbers, with the bijection to twin binary trees.
  • Corner block list. The representation of Hong and others (2000): it removes the room at one corner again and again and records the direction of the removal and the number of T-junctions, so it describes each mosaic floorplan by a word of length O(n)O(n).
  • Floorplan constraint graphs. The horizontal and vertical graphs that turn the relations into coordinates.
  • Sequence pair, B*-tree and O-tree. Representations of packings with empty space, a larger set of objects than the mosaic floorplans.
  • Planar graph. A mosaic floorplan is a plane graph whose inner faces are rectangles, and the count of its segments comes from the Euler formula.

References

  1. 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 definition of mosaic floorplans and their equivalence by sliding of segments, the number of inner segments, and the counts of mosaic and slicing floorplans
  2. Xianlong Hong, Gang Huang, Yici Cai, Jiangchun Gu, Sheqin Dong, Chung-Kuan Cheng and Jun Gu, Corner block list, an effective and efficient topological representation of non-slicing floorplan, Proceedings of the IEEE/ACM International Conference on Computer-Aided Design, 8 to 12, 2000, mosaic floorplans without empty rooms and their corner block list
  3. 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; 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.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/MWJ26C/text.yaml