Gomory–Hu trees from push–relabel and Dinitz cut oracles #
Gusfield's construction (gusfieldWithWeights) takes any oracle returning a minimum s–t cut
and its value. This module packages the construction for an arbitrary correct oracle as an
Output (parent array and edge weights) and instantiates it with the generic push–relabel
algorithm and with Dinitz's algorithm on dense networks, complementing the Edmonds–Karp instance
gomoryHu of Construction.lean.
Main definitions #
Cslib.Algorithms.Lean.GomoryHu.gusfieldOutput: Gusfield's construction for a cut oracleCand value oracleval, as anOutput.Cslib.Algorithms.Lean.GomoryHu.pushRelabelGomoryHu: Gusfield's construction with the push–relabel minimum cut oraclepushRelabelCut.Cslib.Algorithms.Lean.GomoryHu.dinitzGomoryHu: Gusfield's construction with Dinitz's minimum cut oracledinitzCut.
Main results #
Cslib.Algorithms.Lean.GomoryHu.isGomoryHuTree_gusfieldOutputandCslib.Algorithms.Lean.GomoryHu.vget_gusfieldOutput_weight: for a correct oracle, the parent array is a Gomory–Hu tree and the weight of each non-rootuisλ(u, parent u).Cslib.Algorithms.Lean.GomoryHu.isGomoryHuTree_pushRelabelGomoryHu,Cslib.Algorithms.Lean.GomoryHu.vget_pushRelabelGomoryHu_weight,Cslib.Algorithms.Lean.GomoryHu.isGomoryHuTree_dinitzGomoryHuandCslib.Algorithms.Lean.GomoryHu.vget_dinitzGomoryHu_weight: the two instances.
No running time is stated here; CslibFrontier.Algorithms.WordRAM.GomoryHu gives a Word-RAM
running time for the Edmonds–Karp version.
References #
Gusfield's construction for an arbitrary cut oracle #
Correctness of Gusfield's construction ([Gus90]) for any oracle C returning
minimum cuts: the parent array of gusfieldOutput is a Gomory–Hu tree.
For any correct oracle, the weight that gusfieldOutput records at a non-root vertex u is
the minimum cut weight λ(u, parent u) ([Gus90]).