Random Walk for 3SAT — Markov Chain Demo
Random Walk for 3SAT
This demo shows Schöning's algorithm that can solve 3-SAT in expected time O(1.34n). We will show O(1.74n) in the class. At each step: pick a uniformly random variable from an arbitrary unsatisfied clause. Track the Hamming agreement with a fixed satisfying assignment, visualized as a 1-D Markov chain on states 0..n.
Clauses
Agreement with fixed assignment nodes 0..n
After selecting a clause that we don't satisfy, we move towards the fixed solution with probability at least 1/3.