Cole–Vishkin colour reduction on oriented cycles #
The deterministic coin tossing of Cole and Vishkin in the LOCAL model on
oriented cycles. A node of colour a whose successor has colour b ≠ a takes the new colour
cvColor a b = 2 i + aᵢ, where i is the least bit position at which a and b differ. One such
round turns a proper colouring with colours below M into one with colours below 2 ⌈log₂ M⌉
(cvColor_lt), so log* N rounds take colours below N to colours below 6
(iterate_cvBound_logStar_le). Three more rounds then remove the colours 5, 4 and 3, one
at a time: in the round removing colour k, the nodes of colour k are pairwise non-adjacent and
pick the least colour in {0, 1, 2} unused by their neighbours.
threeColoring K performs K reduction rounds followed by the three removal rounds. From
distinct identifiers below N (in particular identifiers {0, …, n - 1}, N = n) it 3-colours
every oriented cycle within log* N + 3 rounds (threeColoring_run_of_injective).
Since a node can learn one more colour on each side per round, two reduction steps fit into one
round. fastThreeColoring s performs 2 s reduction steps in s rounds and then the three
removal rounds. It 3-colours within ⌈(log* N) / 2⌉ + 3 rounds (fastThreeColoring_run), the
upper bound matching Linial's lower bound (log* n) / 2 - 1 up to an additive constant.
The results hold on every oriented cycle and on the infinite oriented path (n = 0); only a proper
initial colouring with colours below N is assumed.
Main definitions #
Cslib.Distributed.OrientedCycle.cvColor: the Cole–Vishkin colour2 i + aᵢ.Cslib.Distributed.OrientedCycle.reduceColor: one colour-removal step.Cslib.Distributed.OrientedCycle.cvBound: the colour boundM ↦ 2 ⌈log₂ M⌉.Cslib.Distributed.OrientedCycle.threeColoring: the Cole–Vishkin 3-colouring algorithm.Cslib.Distributed.OrientedCycle.cvRule:2 sreduction steps as a rule of radiuss.Cslib.Distributed.OrientedCycle.fastThreeColoring: two reduction steps per round.Cslib.Distributed.OrientedCycle.fastThreeColoringRule:fastThreeColoring sas a rule of radiuss + 3.
Main results #
Cslib.Distributed.OrientedCycle.cvColor_ne: one reduction step preserves properness.Cslib.Distributed.OrientedCycle.cvColor_lt: colours belowMbecome colours below2 ⌈log₂ M⌉.Cslib.Distributed.OrientedCycle.iterate_cvBound_logStar_le:log* Nsteps reach6colours.Cslib.Distributed.OrientedCycle.threeColoring_run: 3-colouring inlog* N + 3rounds from a proper colouring with colours belowN.Cslib.Distributed.OrientedCycle.threeColoring_run_of_injective: the same from distinct identifiers belowN.Cslib.Distributed.OrientedCycle.fastThreeColoring_run: 3-colouring ins + 3rounds whenlog* N ≤ 2 s.Cslib.Distributed.OrientedCycle.fastThreeColoringRule_toFun: the same for the rule, read off on the infinite oriented path.
References #
The bit-index reduction step #
The least bit position at which distinct a and b differ. For a = b there is no such
position and the value (a + b) carries no meaning.
Distinct numbers differ at bit lowestDiffBit a b.
Below lowestDiffBit a b, the bits of a and b agree.
The Cole–Vishkin colour of a node with colour a whose successor has colour b: twice the
least differing bit position, plus the bit of a there Cole and Vishkin.
Removing one colour per round #
The least colour in {0, 1, 2} different from p and q.
In the round removing colour k, a node of colour k (whose neighbours have other colours)
recolours to freeColor p q; other nodes keep their colours.
One colour-removal round keeps a colouring proper: nodes of colour k are not adjacent, so they
recolour simultaneously without conflict.
Removing colour k ≥ 3 from colours ≤ k leaves colours < k.
The algorithm #
The map M ↦ 2 ⌈log₂ M⌉ bounding the colours after one Cole–Vishkin round.
The Cole–Vishkin 3-colouring algorithm with parameter K: K bit-index reduction rounds, then
three rounds removing colours 5, 4 and 3; afterwards nodes keep their colours. Its input is an
initial proper colouring, for instance by distinct identifiers.
During the first K rounds the colouring stays proper, with colours below cvBound^[s] N
after s rounds. In particular one round leaves colours below 2 ⌈log₂ N⌉.
In the three colour-removal rounds after round K, the colouring stays proper and loses colours
5, 4 and 3, provided K Cole–Vishkin rounds leave at most 6 colours.
After round K + 3 every node keeps its colour.
The algorithm threeColoring K 3-colours within K + 3 rounds whenever K Cole–Vishkin rounds
bring the colours of the initial proper colouring below 6.
Cole–Vishkin 3-colouring Cole and Vishkin. On every oriented cycle
(and on the infinite oriented path, n = 0), from a proper colouring with colours below N, the
algorithm threeColoring (log* N) computes a proper colouring with colours 0, 1, 2 within
log* N + 3 rounds.
Cole–Vishkin 3-colouring from identifiers. If the nodes of an oriented n-cycle,
n ≠ 1, have distinct identifiers below N, then threeColoring (log* N) 3-colours it within
log* N + 3 rounds.
Two Cole–Vishkin steps per round #
Cole–Vishkin with two reductions per round. From a proper colouring with colours below
N, fastThreeColoring s 3-colours every oriented cycle within s + 3 rounds when
log* N ≤ 2s; with s = ⌈log* N / 2⌉ this is ⌈log* N / 2⌉ + 3 rounds.
The Cole–Vishkin algorithm fastThreeColoring s as a rule of radius s + 3.
On the infinite oriented path, fastThreeColoringRule s 3-colours every proper colouring
with colours below N when log* N ≤ 2s: node 0 and node 1 get different colours below
3.