Remote control system of a binary tree of switches -- II. balancing for a perfect binary tree
Olivier Golinelli
TL;DR
This work addresses coloring a perfect binary tree under an ancestor-different rule, seeking balanced colorings that minimize the largest color class among the $h+1$ colors required. It introduces a recursive algorithm that, given any colorable partition $A=(a_0, ldots,a_h)$ with $a_0=1$, constructs compatible partitions for the two subtrees and colors the entire tree, enabling balance for arbitrarily large heights. The approach generalizes Guidon's height-limited results by providing a constructive method that works beyond height $7$, including a detailed height-8 example, and analyzes the counting of colorings via the appendix. The methodology offers a practical tool for designing balanced — yet potentially fragmented — colorings and highlights a trade-off between balance and spatial color grouping, with implications for related remote-control or network-design problems where node-color distributions impact performance.
Abstract
We study a tree coloring model introduced by Guidon (2018), initially based on an analogy with a remote control system of a rail yard, seen as switches on a binary tree. For a given binary tree, we formalize the constraints on the coloring, in particular the distribution of the nodes among colors. Following Guidon, we are interested in balanced colorings i.e. colorings which minimize the maximum size of the subsets of the tree nodes distributed by color. With his method, we present balanced colorings for trees of height up to 7. But his method seems difficult to apply for trees of greater height. Also we present another method which gives solutions for arbitrarily large trees. We illustrate it with a balanced coloring for height 8. In the appendix, we give the exact formulas and the asymptotic behavior of the number of colorings as a function of the height of the tree.
