WalkSAT is linear on random 2-SAT
Petra Berenbrink, Amin Coja-Oghlan, Colin Cooper, Thorsten Götte, Lukas Hintze, Pavel Zakharov
TL;DR
This work analyzes WalkSAT on random 2-CNF formulas and proves that, for any clause-to-variable density α in [0,1), the expected running time conditioned on the instance is linear in the number of variables, specifically E[T(Φ)|Φ] ≤ C n /(1-α)^2 with high probability. The authors introduce a novel two-part approach: they build implication sub-formulas via Unit Clause Propagation to lock WalkSAT’s progress, and they bound the total size of these sub-formulas to bound the number of flips. They show a locking property that once a sub-formula is satisfied WalkSAT stops flipping its variables, and they bound per-variable flips by the square of the sub-formula size, which together yield the linear-time result. This directly proves the long-standing conjecture that WalkSAT runs in linear expected time on random 2-SAT up to the satisfiability threshold α = 1, aligning with physics-based predictions and advancing understanding of local search performance on random CSPs.
Abstract
In an influential article Papadimitriou [FOCS 1991] proved that a local search algorithm called WalkSAT finds a satisfying assignment of a satisfiable 2-CNF with $n$ variables in $O(n^2)$ expected time. Variants of the WalkSAT algorithm have become a mainstay of practical SAT solving (e.g., [Hoos and Stützle 2000]). In the present article we analyse the expected running time of WalkSAT on random 2-SAT instances. Answering a question raised by Alekhnovich and Ben-Sasson [SICOMP 2007], we show that WalkSAT runs in linear expected time for all clause/variable densities up to the random 2-SAT satisfiability threshold.
