Maximal independent sets on oriented cycles #
A maximal independent set (MIS) of the oriented n-cycle is computed by deterministic LOCAL
algorithms in Θ(log* n) rounds, like a 3-colouring, and the two problems reduce to each other in
a constant number of rounds.
- From a proper colouring with colours below
k, the greedy colour-class algorithmmisOfColoring(colour0joins at once, and in roundr + 1a node of colourr + 1joins unless a neighbour has joined) marks an MIS withink - 1rounds (misOfColoring_run). Composed with the Cole–Vishkin algorithm of Cole and Vishkin this finds an MIS within⌈(log* n) / 2⌉ + 5rounds (misAlgorithm_findsMIS). - From an MIS one round gives a proper 3-colouring (
colorOfMIS: members get colour0, nodes whose predecessor is a member colour1, the others colour2). Hence the 3-colouring lower bound of Linial, in the formlog* n ≤ 2t + 2of Laurinharju and Suomela, giveslog* n ≤ 2t + 4for everyt-round MIS algorithm (Algorithm.FindsMIS.logStar_le). These reductions are standard.
IsMIS is the local description used by algorithms. For n ≠ 1 it agrees with Mathlib's maximal
independent sets of OrientedCycle.graph n (isMIS_iff_maximal). On the one-node cycle the only
node is its own neighbour, and no set is an IsMIS.
Main definitions #
Cslib.Distributed.OrientedCycle.IsMIS:smarks a maximal independent set.Cslib.Distributed.OrientedCycle.Algorithm.FindsMIS:Amarks an MIS of every orientedn-cycle with identifiers{0, …, n - 1}introunds.Cslib.Distributed.OrientedCycle.misOfColoring: greedy colour classes.Cslib.Distributed.OrientedCycle.misAlgorithm: Cole–Vishkin followed by greedy colour classes.Cslib.Distributed.OrientedCycle.colorOfMIS: one round from an MIS to a 3-colouring.
Main results #
Cslib.Distributed.OrientedCycle.isMIS_iff_maximal:IsMISis Mathlib'sMaximal (graph n).IsIndepSet, forn ≠ 1.Cslib.Distributed.OrientedCycle.misOfColoring_run: a properk-colouring gives an MIS withink - 1rounds.Cslib.Distributed.OrientedCycle.misAlgorithm_findsMIS: an MIS withins + 5rounds whenlog* n ≤ 2s.Cslib.Distributed.OrientedCycle.IsMIS.colorOfMIS: an MIS gives a proper 3-colouring in one round.Cslib.Distributed.OrientedCycle.Algorithm.FindsMIS.logStar_le: everyt-round MIS algorithm haslog* n ≤ 2t + 4.Cslib.Distributed.OrientedCycle.exists_findsMIS_and_logStar_le: theΘ(log* n)round complexity of MIS on oriented cycles.
References #
Maximal independent sets #
After t rounds, A marks a maximal independent set of every oriented n-cycle whose nodes
carry distinct identifiers from {0, …, n - 1}. Like Algorithm.ColorsCycle, this is vacuous for
n = 0; misOfColoring_run covers the infinite oriented path.
From a colouring to a maximal independent set #
Greedy colour classes. A node of colour 0 joins at once; in round r + 1 a node of colour
r + 1 joins unless a neighbour has joined. The state is the colour and whether the node has
joined; the output is whether it has joined.
The invariant after r rounds: joined nodes have colour at most r, every node of colour at
most r has joined or has a joined neighbour, and no two neighbours have joined.
Colouring to MIS. From a proper colouring with colours below k, misOfColoring marks a
maximal independent set within k - 1 rounds, on every oriented cycle and on the infinite oriented
path.
From a proper colouring with colours below N, misAlgorithm s marks an MIS within s + 5
rounds when log* N ≤ 2s.
MIS upper bound. On oriented n-cycles, n ≠ 1, with identifiers {0, …, n - 1},
misAlgorithm s finds an MIS within s + 5 rounds when log* n ≤ 2s, for instance for
s = ⌈(log* n) / 2⌉.
From a maximal independent set to a 3-colouring #
One round from a maximal independent set to a 3-colouring: members get colour 0, nodes whose
predecessor is a member colour 1, and the remaining nodes colour 2.
MIS to 3-colouring. colorOfMIS turns a maximal independent set into a proper colouring.
MIS lower bound. A t-round MIS algorithm followed by colorOfMIS 3-colours in t + 1
rounds, so the 3-colouring lower bound Algorithm.ColorsCycle.logStar_le_of_three of
Linial gives log* n ≤ 2t + 4.
The round complexity of MIS on oriented cycles is Θ(log* n). For n ≠ 1, some
deterministic LOCAL algorithm marks a maximal independent set of every oriented n-cycle with
identifiers {0, …, n - 1} within ⌈(log* n) / 2⌉ + 5 rounds, and every algorithm doing so within
t rounds has log* n ≤ 2t + 4.