Theoremresearch
Mosaic floorplans and Baxter numbers
Also called Baxter number count of floorplans.
The number of mosaic floorplans with n rooms is the nth Baxter number, as Yao, Chen, Cheng and Graham showed by a bijection with twin binary trees.
The Baxter number theorem counts the mosaic floorplans: with rooms there are exactly of them, where is the th Baxter number . Yao, Chen, Cheng and Graham proved it in 2001 with a bijection between mosaic floorplans and twin binary trees, pairs of binary trees that Dulucq and Guibert had already put in bijection with Baxter permutations. The theorem fixes the size of the search space of every floorplanner that works with mosaic floorplans: it grows like , against about for slicing floorplans, and any code for a mosaic floorplan needs about bits.
Statement
A mosaic floorplan with rooms is a division of a rectangle into rectangular rooms in which no four rooms meet at a point, taken up to sliding of its segments (see mosaic floorplan). The Baxter numbers are
For a binary tree with nodes, list its nodes in inorder , and let its canopy be the word with if has a right child and if it does not. A twin binary tree pair is a pair of binary trees on the same nodes with the same inorder and complementary canopies: is with each bit flipped. As unlabeled objects, a twin pair is a pair of tree shapes with nodes each whose canopies are complementary.
Theorem (Yao, Chen, Cheng and Graham). There is a bijection between the mosaic floorplans with rooms and the twin binary tree pairs with nodes. So the number of mosaic floorplans with rooms is .
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 6 | 22 | 92 | 422 | 2074 | 10754 | 58202 | 326240 |
In plain words
Count the ways to cut a chip into a given number of rectangular rooms, where only the pattern matters and not the exact sizes. The answer is a known sequence, the Baxter numbers. The proof turns each pattern into two binary trees. The first tree hangs each room on the room below it or on the room to its left, as seen from the lower left corner of the room. The second tree does the same from the upper right corner, with the rooms above and to the right. The two trees visit the rooms in the same order, and at each room exactly one of the two trees goes on to the right. Pairs of trees with this property were already known and counted, so the floorplans are counted as well. The count grows by a factor of about eight for each extra room.
Proof
Fix a mosaic floorplan in the rectangle . Each corner of a room other than the four corners of the rectangle is a T-junction: exactly one of the two lines through it goes on past it on both sides, and the other one ends there.
The two trees. The tree has its root at the room with the lower-left corner . For each other room , let be its lower-left corner.
- If the vertical line through goes on below , the parent of is the room below whose left side is on that line, and is its right child.
- Otherwise the horizontal line through goes on to the left of , the parent of is the room to the left of whose bottom side is on that line, and is its left child.
The tree is the same from the upper-right corner. Its root is the room with the corner . For each other room with upper-right corner : if the vertical line through goes on above , the parent of is the room above whose right side is on that line, and is its left child. Otherwise the parent of is the room to the right of whose top side is on that line, and is its right child.
These are binary trees. A T-junction makes exactly one case hold, so each room except the root has one parent. The parent's lower-left corner is lower, or at the same height and further left, so the parent relation has no cycle and leads to the root. A room has at most one right child in , the room whose lower-left corner is the upper-left corner of , and at most one left child, the room whose lower-left corner is the lower-right corner of . The same holds for . Sliding segments does not change which room is at which corner, so and depend only on the equivalence class.
The corner room. Let be the room at the lower-right corner. The rooms on the bottom side of the rectangle form a chain of left children from the root of , and is the last of them. The rooms on the right side form a chain of left children from the root of , and is again the last. No room is a left child of in either tree, so is the first node in the inorder of both trees. Let be the upper-left corner of . If , exactly one of two cases holds at .
- Case top. The vertical line through goes on above . Then the room with lower-left corner is the right child of in . The top side of is a whole segment, and the rooms above it are and the chain of left children that starts at in . In , a right child of would be a room whose upper-right corner is and whose right side ends at , which the line above forbids, so has no right child in .
- Case left. The horizontal line through goes on to the left of . Then no room has its lower-left corner at , so has no right child in . The left side of is a whole segment. The room just to the left of and below it has upper-right corner , its right side ends at , and its top side is on the line of the top side of , so it is the right child of in .
So the first canopy bit of is and that of is in case top, and the other way round in case left.
Removing the corner room. In case top, delete and stretch the rooms above it down to the bottom side. The result is a mosaic floorplan with rooms. In , the room takes the place of as the left child of the parent of in , and all other parents in stay the same, so is with spliced out. In , the room is a leaf, and no other room has its upper-right corner moved, so is with the leaf removed. Case left is the same with the two trees swapped and the rooms to the left of stretched to the right side. Splicing out a first node keeps the inorder of the others, and it keeps the right children of all other nodes, so the canopies of are those of with the first bit removed. By induction on , the two trees of have the same inorder and complementary canopies, and with in front the same holds for . So the map sends mosaic floorplans to twin binary tree pairs.
One to one. From the floorplan is rebuilt. The first node in the inorder is , and the tree in which has a right child tells the case. In case top, the number of rooms above is the length of the chain of left children that starts at the right child of in . Splicing out gives the twin pair of , which by induction gives . Then is with a new room put under the last rooms along the bottom side, below a new segment that ends on the left at the left side of the first of these rooms. Case left is the same with and the right side. So is one to one.
Onto, and the count. Yao, Chen, Cheng and Graham show that every twin binary tree pair is for some mosaic floorplan , by building from the pair. Dulucq and Guibert give a bijection between twin binary tree pairs with nodes and Baxter permutations of , and Chung, Graham, Hoggatt and Kleiman prove that the number of Baxter permutations of is . So the number of mosaic floorplans with rooms is .
Consequences
- Growth rate . Each term of the sum is at most , so . For the middle index , the middle binomial coefficient is at least , and its two neighbors are at least a third of it, so . Hence . The ratios are about at and at .
- Slicing floorplans are rare. The slicing floorplans are counted by the large Schröder numbers , whose growth rate is . The generating function of the trees with no node of one child, which the slicing floorplan page uses for the count, satisfies , that is , and the discriminant vanishes first at . So the fraction of mosaic floorplans that are slicing goes to exponentially.
- Code length. A code that tells apart all mosaic floorplans with rooms needs at least bits, and with labeled blocks at least bits.
- Search spaces. A floorplanner that enumerates or samples mosaic floorplans works in a space of size for labeled blocks. The sequence pair, which describes packings with empty space, has codes, and the ratio grows faster than any exponential function of .
Tightness
The theorem is an exact count, so there is no gap to close. The comparison with slicing floorplans is also exact at the start: for , with the values , so every mosaic floorplan with at most four rooms is slicing. The first difference is at , where and there are slicing floorplans, and the two missing ones are the pinwheel and its mirror image. Without the rule that no four rooms meet, the class changes: a division with a point where four rooms meet is not a mosaic floorplan, and it is counted as two mosaic floorplans, one for each way to pull the four rooms apart.
History
Baxter permutations are named after Glen Baxter, who met them in 1964 in a question about fixed points of commuting functions. Chung, Graham, Hoggatt and Kleiman found the closed formula for their number in 1978. Dulucq and Guibert gave the bijection with twin binary trees in 1998. In floorplanning, Hong and others gave the corner block list for mosaic floorplans in 2000, which also takes corner rooms away one at a time, as the proof above does. Yao, Chen, Cheng and Graham showed in 2001, and in the journal version of 2003, that mosaic floorplans are in bijection with twin binary trees, so their number is the Baxter number, and that slicing floorplans are counted by the Schröder numbers.
References
- 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 bijection between mosaic floorplans and twin binary trees, the count of mosaic floorplans by Baxter numbers, and the count of slicing floorplans by Schröder numbers
- Bo Yao, Hongyu Chen, Chung-Kuan Cheng and Ronald L. Graham, Revisiting floorplan representations, Proceedings of the International Symposium on Physical Design, 138 to 143, 2001, the first version of the twin binary tree bijection and the Baxter number count
- Serge Dulucq and Olivier Guibert, Baxter permutations, Discrete Mathematics 180(1-3), 143 to 156, 1998, twin binary trees and their bijection with Baxter permutations
- F. R. K. Chung, R. L. Graham, V. E. Hoggatt and M. Kleiman, The number of Baxter permutations, Journal of Combinatorial Theory, Series A 24(3), 382 to 394, 1978, the closed formula for the number of Baxter permutations of n
- 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, the representation of mosaic floorplans by the removal of corner rooms one at a time
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 YZV6WS Edit this page History Report an error Markdown