Relocatable dense Edmonds–Karp solver, resource bounds, and specification #
Defines the relocatable solver subroutine Cslib.Algorithms.WordRAM.EdmondsKarp.ekProg together
with its exact-basis realization, O(n ^ 5) memory budget (ekCost), history admissibility, frame
property, return-value bound, and end-to-end minimum-cut correctness (ekProg_spec).
Main definitions #
Cslib.Algorithms.WordRAM.EdmondsKarp.ekProg,ekCost: the relocatable dense Edmonds–Karp subroutine and itsO(n ^ 5)memory-operation budget.
Main results #
Cslib.Algorithms.WordRAM.EdmondsKarp.ekProg_realizes: compilation toBasis.exact.Cslib.Algorithms.WordRAM.EdmondsKarp.memoryCost_ekProg_le,validHistory_ekProg,preservesAt_ekProg,ekProg_result_le: cost, admissibility, frame, and return-value bound.Cslib.Algorithms.WordRAM.EdmondsKarp.ekProg_spec: correctness ofekProgfor minimums–tcuts (IsMinCutBetween (cutWeight W)).
Semantics: the augmenting path, its bottleneck, and the augmentation #
Semantics: one round #
Semantics: the cut sum and the whole solver #
Dense Edmonds–Karp (d = (c, (s, t))): clear the flow, run n ^ 3 rounds (rounds after
t stops being reached do nothing), and return the weight of the reached set of the final
search.
Memory-operation budget of ekProg on n vertices, O(n ^ 5).
Correctness of dense Edmonds–Karp. On a state holding the capacities W ≤ B at mb,
ekProg leaves memory outside its scratch area unchanged, the set C of vertices whose final
distance is below n is a minimum s–t cut of cutWeight W, and the returned value is
cutWeight W C.