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:
edgeScaledUncut s eequals2times the conditional probability thateis uncut given the partial 2-colorings : PartialCut, multiplied bye.weight;- assigning a fresh vertex
ztotrueandfalseaverages exactly:scaledUncut edges (assignVertex z true s) + scaledUncut edges (assignVertex z false s) = 2 * scaledUncut edges s(scaledUncut_assignVertex_add); - greedily choosing the smaller scaled uncut weight over
distinctVertices edgesviaCslib.PessimisticEstimator.greedy(derandomizedCut) produces a cut crossing at least half the total non-loop weight (nonLoopWeight_le_two_mul_cutWeight_derandomizedCutSide), hence a deterministic1 / 2-approximation against every cutσ : ℕ → Bool(cutWeight_le_two_mul_derandomizedCutSide).
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 #
Cslib.Algorithms.Lean.MaxCut.PartialCut: partial 2-coloring storing vertices assigned totrueandfalse.Cslib.Algorithms.Lean.MaxCut.distinctVertices: deduplicated list of endpoints in an edge list.Cslib.Algorithms.Lean.MaxCut.edgeScaledUncut,Cslib.Algorithms.Lean.MaxCut.scaledUncut: twice the conditionally expected uncut weight of an edge / edge list.Cslib.Algorithms.Lean.MaxCut.nonLoopWeight,Cslib.Algorithms.Lean.MaxCut.loopWeight,Cslib.Algorithms.Lean.MaxCut.totalWeight: total weight of non-loops, self-loops, and all edges.Cslib.Algorithms.Lean.MaxCut.derandomizedCutState,Cslib.Algorithms.Lean.MaxCut.derandomizedCut,Cslib.Algorithms.Lean.MaxCut.derandomizedCutSide: deterministic conditional-expectations cut.
Main results #
Cslib.Algorithms.Lean.MaxCut.scaledUncut_assignVertex_add: exact conditional-expectation averaging step for assigning an unfixed vertex.Cslib.Algorithms.Lean.MaxCut.nonLoopWeight_le_two_mul_cutWeight_derandomizedCutSide: the output cut crosses at least half the non-loop edge weight.Cslib.Algorithms.Lean.MaxCut.cutWeight_le_nonLoopWeight,Cslib.Algorithms.Lean.MaxCut.cutWeight_le_two_mul_derandomizedCutSide: deterministic1 / 2-approximation against every cutσ : ℕ → Bool.
References #
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.
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 #
Final PartialCut produced by running Cslib.PessimisticEstimator.greedy over
distinctVertices edges.
Deterministic list of vertices placed on the true side by conditional expectations.
Cut predicate ℕ → Bool produced by derandomizedCut.
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).