Recognising the Baker root of a component
ProvedWilliamsonShmoys.bakerRoot_eq_of_minbfsgraph-theory
Let be a graph on and let be a vertex such that no vertex can reach . Then for every vertex reachable from ,
where is the least label of a vertex in the connected component of .
An algorithm that processes vertices in increasing order and starts a new breadth-first search from each vertex not yet visited therefore starts it exactly at the root used in the definition of bakerLevel, because all smaller vertices of the same component would already have been visited.
Formalization Note. bakerRoot is from Def_WilliamsonShmoys_BakerLevel.
Preamble
import Mathlib import Definitions.Def_WilliamsonShmoys_BakerLevel set_option autoImplicit false
Formal statement
theorem WilliamsonShmoys.bakerRoot_eq_of_min {n : ℕ} (G : SimpleGraph (Fin n)) (r v : Fin n) (hrv : G.Reachable r v)
(hmin : ∀ u, u < r → ¬ G.Reachable u r) :
WilliamsonShmoys.bakerRoot G v = r := by sorrySource
Williamson–Shmoys, The Design of Approximation Algorithms, Sect. 10.2, p. 270 (BFS started from one vertex per component)