Documentation

CslibFrontier.Computability.Distributed.OrientedCycle.RoundComplexity

The round complexity of 3-colouring oriented cycles #

Deterministic LOCAL algorithms 3-colour oriented n-cycles with identifiers {0, …, n - 1} in Θ(log* n) rounds. The Cole–Vishkin algorithm of Cole and Vishkin runs in log* n + 3 rounds, and with two reduction steps per round in ⌈(log* n) / 2⌉ + 3 rounds. By the lower bound of Linial, in the form of Laurinharju and Suomela, any t-round algorithm has log* n ≤ 2t + 2. The upper and lower bounds on the least number of rounds differ by at most 4.

The statements use Algorithm.ColorsCycle, which is vacuous for n = 0; on the infinite oriented path the upper bounds are threeColoring_run and fastThreeColoring_run. For identifiers from {1, …, n} apply Algorithm.colorsCycle_comapInput_succ_iff.

Main results #

References #

Cole–Vishkin Cole and Vishkin: on oriented n-cycles, n ≠ 1, with identifiers {0, …, n - 1}, the algorithm threeColoring (log* n) 3-colours within log* n + 3 rounds.

theorem Cslib.Distributed.OrientedCycle.fastThreeColoring_colorsCycle {n s : ℕ} (hn : n ≠ 1) (hs : n.logStar ≤ 2 * s) {t : ℕ} (ht : s + 3 ≤ t) :

Cole–Vishkin with two steps per round: on oriented n-cycles, n ≠ 1, with identifiers {0, …, n - 1}, the algorithm fastThreeColoring s 3-colours within s + 3 rounds when log* n ≤ 2 s, for instance for s = ⌈(log* n) / 2⌉.

theorem Cslib.Distributed.OrientedCycle.exists_colorsCycle_three_and_logStar_le {n : ℕ} (hn : n ≠ 1) :
(∃ (S : Type) (A : Algorithm ℕ S ℕ), A.ColorsCycle n ((n.logStar + 1) / 2 + 3) 3) ∧ ∀ {S : Type u_1} (A : Algorithm ℕ S ℕ) (t : ℕ), A.ColorsCycle n t 3 → n.logStar ≤ 2 * t + 2

The round complexity of 3-colouring oriented cycles is Θ(log* n). For n ≠ 1, some deterministic LOCAL algorithm properly 3-colours every oriented n-cycle with identifiers {0, …, n - 1} within ⌈(log* n) / 2⌉ + 3 rounds Cole and Vishkin, and every algorithm doing so within t rounds has log* n ≤ 2t + 2 Linial.