Documentation

CslibFrontier.Algorithms.Lean.MaxCut.Derandomized

Deterministic 1/2-approximation for weighted MaxCut via conditional expectations #

Under a uniform random cut assigning each vertex independently to true or false, every non-loop edge (u, v, w) (u ≠ v) crosses the cut with probability 1 / 2 (and stays uncut with probability 1 / 2), whereas self-loops (u = v) never cross any cut. Scaling expected uncut edge weight by 2 eliminates fractions:

Plain multi-tape Turing polynomial-time computability (ComputableInPolyTime) of derandomizedCut is proved in CslibFrontier.Computability.Complexity.Problems.MaxCut.Derandomized, and an explicit O(|V| |E| + |V|) instruction-count word-RAM implementation is certified in CslibFrontier.Algorithms.WordRAM.MaxCut.

Main definitions #

Main results #

References #

Partial 2-coloring of vertices maintained during greedy MaxCut derandomization.

  • trueSide : List ℕ

    Vertices already assigned to side true.

  • falseSide : List ℕ

    Vertices already assigned to side false.

Instances For

    Empty partial cut before any vertex has been assigned.

    Convert a PartialCut to a total cut indicator (true iff listed in trueSide).

    Assign vertex v to Boolean side b in partial cut s.

    Deduplicated list of vertex endpoints occurring in edges, in first-appearance order.

    Twice the expected uncut weight of edge e under a uniform random completion of s.

    Twice the expected uncut weight of edges under a uniform random completion of s.

    Total weight of all edges in edges (including self-loops).

    Total weight of non-loop edges (u ≠ v) in edges.

    Total weight of self-loop edges (u = v) in edges.

    theorem Cslib.Algorithms.Lean.MaxCut.scaledUncut_assignVertex_add {s : PartialCut} {z : ℕ} (hdisj : ∀ u ∈ s.trueSide, u ∉ s.falseSide) (hzT : z ∉ s.trueSide) (hzF : z ∉ s.falseSide) (edges : List Complexity.MaxCut.WeightedEdge) :

    Exact conditional-expectation averaging law for scaledUncut: assigning an unfixed vertex z to true and false sums to twice scaledUncut edges s.

    Pure greedy conditional-expectations MaxCut #

    Deterministic list of vertices placed on the true side by conditional expectations.

    Deterministic conditional-expectations MaxCut bound: derandomizedCutSide edges cuts at least half of the total weight of all non-loop edges in edges.

    Every cut σ : ℕ → Bool crosses only non-loop edges, so its weight is at most nonLoopWeight edges.

    Deterministic 1 / 2-approximation for weighted MaxCut: for every cut σ : ℕ → Bool, cutWeight edges σ ≤ 2 * cutWeight edges (derandomizedCutSide edges).