DAG 2
1. Lecture Overview
This lecture continues the study of distributed coloring in the LOCAL model. It starts from the result of the previous lecture on directed paths, then asks how far those ideas can be generalized. The main themes are:
- why 2-coloring directed paths is fundamentally harder than 3-coloring,
- how the previous \(\log^* n\) coloring techniques extend from directed paths to rooted trees,
- how to obtain weak 3-coloring on general graphs in the same asymptotic time,
- how to turn that weak result into a proper coloring with more colors,
- and why \(\Delta+1\)-coloring becomes the central general-graph target.
2. Context from the Previous Lecture
The lecture first recalls the previous theorem for directed paths:
- starting from unique IDs, interpreted as an initial huge color space,
- one can reduce the color space from polynomially many colors to 6 colors in about \(\log^* n\) rounds,
- and then reduce from 6 colors to 3 colors by greedy color reduction.
This is presented as a canonical symmetry-breaking process: IDs already break symmetry, but in a very inconvenient way, because they are too large. Coloring compresses this symmetry breaking into a small local label space that can later be used algorithmically, for example by letting nodes of color 1 act first, then color 2, then color 3.
3. Why 2-Coloring Directed Paths is Hard
After recalling that 3-coloring directed paths can be done in \(\Theta(\log^* n)\) time, the lecture asks what happens if only 2 colors are allowed.
The intuition is that in a path, once the color of one node is fixed, the parity of distances determines all other colors. So very distant nodes must somehow coordinate globally. If an algorithm runs in sublinear time, then two far-apart nodes do not see each other, so it should be impossible for them to coordinate their parity consistently.
3.1. Lower-bound idea
The proof idea is by contradiction.
Assume there is a fast algorithm, say one running in \(n/5\) rounds. Then each node sees only its radius-\(n/5\) neighborhood. Pick two disjoint local neighborhoods around two center nodes, with disjoint ID sets. Ask the fixed algorithm what colors those two center nodes output on those local views. Since the two local views are disjoint, the outputs are determined independently. Then:
- if the algorithm gives the same color to both centers, connect the two regions so that the centers end up at odd distance;
- if the algorithm gives different colors, connect them so that they end up at even distance.
In either case, the chosen outputs cannot be extended to a valid 2-coloring of the resulting path. Therefore no such \(n/5\)-round algorithm can exist, giving an \(\Omega(n)\) lower bound.
The lecture also notes:
- there is a trivial \(O(n)\) algorithm,
- and an \(O(n/2)\) upper bound is easy because with radius \(n/2\) a node essentially knows its position in the path.
So the main qualitative message is:
Dropping from 3 colors to 2 colors changes the complexity from \(\Theta(\log^* n)\) to linear.
4. Moving from Directed Paths to Rooted Trees
Since 2-coloring is already hard on directed paths, the lecture next asks whether 3-coloring can be generalized to a larger graph class. The natural next class is rooted trees.
A rooted tree is viewed as:
- an undirected tree underneath, so there are no undirected cycles,
- together with a designated root,
- and orientations on each edge to root.
The key question is: which parts of the directed-path coloring algorithm still work?
4.1. What generalizes immediately
The first phase, the bit-based reduction from many colors down to 6 colors, still works.
Why? Because in that phase each node only needs a well-defined parent-like reference. In a rooted tree, every non-root node has a parent. If every node chooses its new color so that it differs from its parent, then the resulting labeling is still a proper coloring. Hence the first phase extends essentially unchanged and yields a 6-coloring of rooted trees in \(\Theta(\log^* n)\) rounds.
4.2. Why the old 6-to-3 reduction fails directly
On a directed path, every node has only two neighbors, so a node of the currently highest color can always choose a new color from \(\{1,2,3\}\) different from both neighbors.
In a rooted tree, however, a node may have many children. Then its parent and children together may already occupy all three low colors, so the same greedy step no longer works. The obstacle is not the first phase, but the final reduction to 3 colors.
5. The Shift-Down Technique on Rooted Trees
The central new idea of the lecture is the shift-down technique.
The goal is to force a structure where all children of the same node have the same color. If that can be achieved, then each node effectively only sees:
- one color on its parent side,
- and one common color on the children side,
so the local situation starts to resemble the path case again.
5.1. Definition of shift-down
Each node passes its own color down to all its children. Thus:
- every child takes the old color of its parent,
- the root, which has no parent, simply picks any color different from its previous one.
5.2. Why shift-down preserves proper coloring
Suppose after shift-down a node \(v\) gets the old color of its parent, and its parent gets the old color of the grandparent. Then the new edge colors correspond exactly to colors that were already on adjacent nodes one level higher in the old proper coloring. Since the old coloring was proper, those colors were different; hence the new coloring is proper as well.
5.3. How to finish the 6-to-3 reduction
Starting from a proper 6-coloring:
- Apply shift-down so that siblings become monochromatic.
- Reduce color 6 greedily to a smaller color.
- Apply shift-down again.
- Reduce from 5 colors to 4.
- Apply shift-down again.
- Reduce from 4 colors to 3.
This costs only a constant number of extra rounds, so asymptotically nothing changes.
5.4. Why one cannot go down to 2 colors this way
Even after making children monochromatic, a node may still see:
- one color on all children,
- a different color on the parent.
Then if the node itself has the third color, there is no free 2-color choice left. So the same basic obstruction as on directed paths remains.
5.5. Main result for rooted trees
The lecture concludes:
There is a deterministic distributed algorithm that computes a proper 3-coloring of rooted trees in \(\Theta(\log^* n)\) rounds.
This is striking because trees may have arbitrarily large degree, yet 3 colors still suffice in the rooted setting with no asymptotic slowdown.
6. Weak 3-Coloring on General Graphs
The lecture then weakens the goal when moving from rooted trees to general graphs.
A weak 3-coloring means:
Every node has at least one neighbor with a different color.
Unlike proper coloring, it is allowed that many other neighbors share the same color.
6.1. How to obtain weak 3-coloring
Each node arbitrarily chooses one neighbor as its “parent”, and informs the neighbor at the other end of the edge about this fact. This induces a directed structure in which every node has one outgoing edge. That structure may contain cycles, so it is not necessarily a rooted forest. However, the correctness arguments from the rooted-tree algorithm are local: what matters is only that each node tries to differ from its chosen parent. Therefore the same algorithm still works and gives a weak 3-coloring in \(\Theta(\log^* n)\) rounds.
An alternative suggestion is to choose the neighbor with highest ID, which would avoid cycles and produce actual rooted trees/forests. The lecture notes that this is a valid observation, though later uses will make arbitrary-parent selection more flexible.
So the rooted-tree machinery already yields:
Weak 3-coloring of general graphs can be computed in \(\Theta(\log^* n)\) rounds.
7. From Weak 3-Coloring to Proper Coloring of General Graphs
Now the lecture returns to the harder target: proper coloring of general graphs.
The main construction is to use the weak-3-coloring subroutine multiple times.
7.1. Step 1: one weak coloring per neighbor-choice
For each possible neighbor position, each node selects that neighbor as parent and runs the weak-3-coloring algorithm. So if a node has degree \(\Delta\), it conceptually participates in \(\Delta\) different weak-3-coloring executions, each guaranteeing that it differs from one designated neighbor.
7.2. Step 2: combine the results as a tuple
Each node collects all the 3-colors it obtained into a tuple: \[ (c_1,c_2,\dots,c_\Delta). \]
For any neighbor \(u\), there is at least one coordinate corresponding to the execution where that neighbor was the designated parent; in that coordinate, the node’s color must differ from \(u\)’s. Hence the full tuples of adjacent nodes are always different. Therefore the tuple itself is a proper coloring.
7.3. Number of colors
Each coordinate has 3 possibilities, so the tuple space has size: \[ 3^\Delta. \]
Thus one obtains a proper \(3^\Delta\)-coloring.
7.4. Naive runtime and parallelization
If the \(\Delta\) weak-3-colorings were run one after another, the runtime would be \[ O(\Delta \log^* n). \]
But in the LOCAL model there is no message-size restriction, so all these independent executions can be run in parallel. Therefore the factor \(\Delta\) disappears, and the runtime remains: \[ O(\log^* n). \]
This is an important methodological point from the lecture: in the LOCAL model, independent algorithms can be executed simultaneously essentially for free.
7.5. What if nodes do not know \(\Delta\)?
The lecture points out that nodes may not know the global maximum degree. This is handled as a technicality:
- nodes can participate only in as many executions as make sense locally,
- if another node has larger degree, it simply participates in more parallel executions,
- tuples of different lengths are still distinguishable, so this causes no real conceptual problem.
Hence the main result is:
General graphs admit a proper \(3^\Delta\)-coloring in \(O(\log^* n)\) rounds.
8. Greedy Color Reduction on General Graphs
A \(3^\Delta\)-coloring is proper but far from optimal. The next step is to reduce the color space.
The same greedy color reduction principle is reused:
- nodes that have a color that is larger than the color of their each neighbor,
- each such node picks the smallest color not used by its neighbors.
Since a node has at most \(\Delta\) neighbors, there is always a free color among \[ \{1,2,\dots,\Delta+1\}. \] Therefore any proper coloring can be greedily reduced down to a proper \((\Delta+1)\)-coloring.
8.1. Runtime issue
If one literally reduces colors one by one from \(3^\Delta\) down to \(\Delta+1\), that takes \[ O(3^\Delta) \] additional rounds, so the total becomes \[ O(\log^* n + 3^\Delta). \] This is not small in \(\Delta\), but it has the valuable form \[ O(\log^* n + f(\Delta)). \]
8.2. Localized version of greedy reduction
There is also a subtle issue if nodes do not know the global largest color currently present. The global rule “only the highest-color nodes move” is localized as follows:
A node is allowed to change its color if it is the maximum within its closed neighborhood (itself plus neighbors).
Two adjacent nodes cannot both be local maxima in a conflicting way, so the usual correctness argument still works. This illustrates a general theme of the lecture: global arguments often need to be localized.
9. Why \(\Delta+1\) is the Right General Target
The lecture emphasizes that one cannot, in general, hope for \(\Delta\)-coloring on all graphs.
Examples:
- an odd cycle has maximum degree \(2\) but is not 2-colorable,
- a clique on \(\Delta+1\) vertices has maximum degree \(\Delta\) but needs \(\Delta+1\) colors.
So across all graphs, \(\Delta+1\)-coloring is the best universal target.
This makes the complexity of distributed \(\Delta+1\)-coloring a major question. The lecture presents it as one of the biggest open problems in the LOCAL model: there is an \(\Omega(\log^* n)\) lower bound, but the true upper bound is still far from settled. The transcript also mentions recent progress improving upper bounds, illustrating that this area is still very active.
10. Truly Local Complexity
The final conceptual part of the lecture discusses how to express complexities not just as functions of \(n\), but as functions of both \(n\) and \(\Delta\).
A typical desirable form is: \[ O(\log^* n + f(\Delta)). \]
The lecture calls the smallest such \(f(\Delta)\) for a problem its truly local complexity. The reason \(\log^* n\) appears so often is that many symmetry-breaking problems have a fundamental \(\Omega(\log^* n)\) lower bound, while the remaining difficulty can often be captured purely as a function of local degree.
This viewpoint is especially useful for constant-degree graphs. If \(\Delta\) is a fixed constant, then any complexity of the form \[ O(\log^* n + f(\Delta)) \] collapses to simply \[ O(\log^* n). \] So even a seemingly large term such as \(3^\Delta\) disappears asymptotically on bounded-degree graph classes.
10.1. Complexities in \(n\) and \(\Delta\)
While we often focus on the complexity of an algorithm as a function of \(n\), it is also common to use a more fine-grained viewpoint and consider complexities that are a function of both \(n\) and \(\Delta\). If, for instance, we could find an algorithm (for some problem) that has a very small dependency on \(n\) and a potentially much larger dependency on \(\Delta\), we can still argue that this is a good algorithm for graphs with small maximum degree. A prime example are complexities of the form \[ O(\log^{*} n + f(\Delta)) \] where \(f\) is some function. Many algorithms with a complexity of this form have been developed for many important problems (such as the algorithm Corollary 1.3 is based on).
In fact, we can ask the following interesting question for every problem \(\Pi\). What is the asymptotically smallest function \(f\) such that \(\Pi\) can be solved in \[ O(\log^{*} n + f(\Delta)) \] rounds? We will study this question for various problems. Note that such a function \(f\) does not necessarily exist; we will see some natural problems that do not admit algorithms with a complexity of the form \[ O(\log^{*} n + f(\Delta)). \] In fact, \(\Delta\)-coloring is such a problem, i.e., by reducing the size of the color palette by \(1\) (from \(\Delta+1\) to \(\Delta\)), we obtain a fundamental complexity separation.
Of course, one can also ask for a pure dependency on \(\Delta\), i.e., for algorithms with a complexity of the form \[ O(f(\Delta)) \] for some function \(f\). However, as it turns out, many problems require at least \[ \Omega(\log^{*} n) \] rounds to be solved, which rules out any \(O(f(\Delta))\)-round algorithms (why?).
A popular setting (which we will consider later in the course) is the constant-degree setting in which we are given a fixed upper bound for the maximum degree \(\Delta\). As \(\Delta\) is a constant in this setting, it also holds for any function \(f\) that \(f(\Delta)\) is a constant. Hence, every problem for which we can find an algorithm with complexity \[ O(\log^{*} n + f(\Delta)) \] for some \(f\) must have complexity \[ O(\log^{*} n). \] Note that in this setting, the dependency on \(\Delta\), i.e., the choice of \(f\), does not matter; in fact, Corollary 1.3 directly implies that the complexity of \((\Delta+1)\)-coloring in the constant-degree setting is \[ O(\log^{*} n)! \]
This provides another good reason to study complexities of the form \[ O(\log^{*} n + f(\Delta)). \]
11. Main Takeaways
- 3-coloring directed paths is easy in distributed terms: it can be done in \(\Theta(\log^* n)\).
- 2-coloring directed paths is much harder: it needs \(\Omega(n)\) rounds.
- The bit-based reduction to 6 colors extends naturally from directed paths to rooted trees.
- The final 6-to-3 reduction needs a new ingredient on rooted trees: shift-down.
- With shift-down, rooted trees can still be properly 3-colored in \(\Theta(\log^* n)\) rounds.
- On general graphs, choosing one arbitrary neighbor as parent yields a weak 3-coloring in the same asymptotic time.
- Repeating this weak-coloring idea for every neighbor and combining results as tuples yields a proper \(3^\Delta\)-coloring in \(O(\log^* n)\).
- Greedy color reduction then gives a proper \((\Delta+1)\)-coloring in \[ O(\log^* n + 3^\Delta). \]
- This leads naturally to the major open problem of the area: the true complexity of distributed \((\Delta+1)\)-coloring.