Transcription
Randomness in ComputingLECTURE 25Last time Probabilistic method Lovasz Local LemmaToday Algorithmic Lovasz LocalLemma12/2/2021Sofya Raskhodnikova;Randomness in Computing
ExerciseConsider an algorithm ๐ for problem ๐ that, on inputs of length ๐,uses ๐ (๐) random bits, runs in time ๐(๐), and produces the correctYES/NO answer for the given input with probability 1/2.Give a deterministic algorithm for ๐ and analyze its running time.The running time of your algorithm is big-O ofA. ๐(๐)B. ๐ ๐ ๐(๐)C.2๐ ๐ ๐(๐)D. ๐ ๐ 2๐E.F.12/2/2021๐2๐ ๐ 2๐ ๐Larger than all of the above.Sofya Raskhodnikova; Randomness in Computing
Lovasz Local Lemma (LLL) Event ๐ธ is mutually independent from the events ๐ธ1 , , ๐ธ๐if, for any subset ๐ผ [๐],Pr ๐ธ แฉ ๐ธ๐ ] Pr[๐ธ] .๐ ๐ผ A dependency graph for events ๐ต1 , , ๐ต๐ is a graph with vertexset [๐] and edge set ๐ธ, s.t. ๐ ๐ , event ๐ต๐ is mutuallyindependent of all events ๐ต๐ ๐, ๐ ๐ธ}.Lovasz Local LemmaLet ๐ต1 , , ๐ต๐ be events over a common sample space s.t.1. max degree of the dependency graph of ๐ต1 , , ๐ต๐ is at most ๐ 2. ๐ ๐ , Pr ๐ต๐ ๐If ๐๐ ๐ ๐ ๐ then Pr ๐ต ๐ ๐ฺ เดฅ๐ 012/2/2021Sofya Raskhodnikova; Randomness in Computing
Application of LLLTheoremIf ๐๐๐๐๐ ๐1 ๐๐ 1 2 1 then edges of ๐พ๐ can be coloredwith 2 colors so that there is no monochromatic ๐พ๐ .Proof:12/2/2021Sofya Raskhodnikova; Randomness in Computing
Canonical special case of LLL: kSAT Notation: ๐ number of variables, ๐ number of clausesObservation: If ๐ 2๐ , then the formula is satisfiable.Proof: Pick a uniformly random assignment. Let ๐ต๐ be the event that clause ๐ is violated.12/2/2021Sofya Raskhodnikova; Randomness in Computing; based on Tim Roughgardenโs notes
Statement of LLL for ๐SAT Dependency graph: Vertices correspond to clausesedge (๐, ๐) iff clauses ๐ and ๐ share a variableIf clause ๐ contains ๐ฅ and clause ๐ contains ๐ฅ,าง it counts as sharing a variable.deg ๐ number of clauses sharing a variable with clause ๐ Let ๐ 1 max deg(๐) max # of clauses one variable appears in.๐Algorithmic Lovasz Local Lemma for ๐SAT๐ ๐If ๐ ๐ ๐๐๐for some ๐CNF formula ๐, then ๐ is satisfiable.Moreover, a satisfying assignment can be found in ๐(๐2 log ๐)time with probability at least 1 2 ๐ .12/2/2021Sofya Raskhodnikova; Randomness in Computing
Moser-Tardos Algorithm for LLLInput: a ๐CNF formula with clauses ๐ถ1 , , ๐ถ๐on ๐ variables and with ๐ 2๐ 3Global variable1. Let ๐ be a random assignment where each variable isassigned 0 or 1 uniformly and independently.2. While some clause ๐ถ is violated by ๐ , run FIX(๐ถ)3. ๐๐๐ญ๐ฎ๐ซ๐ง ๐ .FIX(๐ถ)1. Pick new values for ๐ variables in ๐ถ uniformly andindependently and update ๐ .2. While some clause ๐ท that shares a variable with ๐ถ isviolated by ๐ , run FIX(๐ท)๐ซ could be ๐ช if we chose the same values as before12/2/2021Sofya Raskhodnikova; Randomness in Computing
Correctness of ObservationIf FIX(๐ถ) terminates, then it terminates with an assignmentin which ๐ถ and all clauses sharing a variable with ๐ถ are satisfied.12/2/2021Sofya Raskhodnikova; Randomness in Computing
Correctness of Moser-TardosLemma (Correctness)A call to FIX that terminates does not change anyclauses of the formula from satisfied to violated.Proof: Suppose for contradiction that some call FIX(๐ถ) terminated andchanged an assignment to clause ๐ท from satisfied to violated, and considerthe first such call. ๐ท canโt share a variable with ๐ถ by Observation. Then randomly reassigning variables of ๐ถ does not affect variables of ๐ท All calls to FIX that the current call made terminated before this call didand, by assumption that this is the first bad call to terminate,could not have spoiled ๐ท.Theorem (Correctness)If Moser-Tardos terminates, it outputs a satisfying assignment.12/2/2021Sofya Raskhodnikova; Randomness in Computing
Run time of Moser-Tardos Assume: ๐ 2๐ (o.w. trivial by other means)Theorem (Run time)If ๐ ๐๐ ๐ then Moser-Tardos terminates after ๐(๐ log ๐)resampling steps with probability at least 1 2 ๐ . Proof idea: Clever way to compressโโ random bitsif the algorithm runs for too long.Observation 2If a function ๐: ๐ด ๐ต is injectiveSet A(i.e., invertible on its range ๐(๐ด))then ๐ต ๐ด .12/2/2021Sofya Raskhodnikova; Randomness in ComputingSet B๐
Function ๐๐ป Suppose we stop Moser-Tardos after ๐ resampling steps.Randomness used:๐ bits for initial assignment๐ bits for each resampling stepTotal: ๐ ๐ป๐ bits Let ๐ด be the set of all choices for ๐ ๐๐ bits๐๐ ๐ฅ0 , ๐ฆ0initialassignment12/2/2021๐ป๐ bits forreassignment ๐ฅ ๐ , ๐ง๐assignmentafter ๐ปresamplingstepstranscriptafter ๐ปresamplingstepsSofya Raskhodnikova; Randomness in Computing
Transcript Each call to FIX gets recorded as follows:If FIX ๐ถ is called by the algorithm๐index of the clause ๐ถ on which FIX is calledIf FIX ๐ท is a recursive call made by FIX ๐ถ๐ indexโโ of the clause ๐ท among all clauses that overlap with clause ๐ถ When a call to FIX returns,๐ is written on the transcript12/2/2021Sofya Raskhodnikova; Randomness in Computing
Run time of Moser-TardosLemma 1Function ๐๐ is invertible on all inputs (๐ฅ0 , ๐ฆ0 ) for which Moser-Tardosdoes not terminate within ๐ steps when run with randomness (๐ฅ0 , ๐ฆ0 ).Lemma 2Length of transcript ๐ง๐ is at most ๐(โ๐ฅ๐จ๐ ๐ ๐โ ๐) ๐ป (๐ ๐) .12/2/2021Sofya Raskhodnikova; Randomness in Computing
Proof of TheoremFirst, consider ๐ such that Moser-Tardos never terminates within ๐resampling steps. There is a valid transcript ๐ง๐ for every choice ofthe random ๐ ๐๐ bits needed to run Moser-Tardos12/2/2021Sofya Raskhodnikova; Randomness in Computing
Proof of Theorem (continued)Now, consider ๐ such that Moser-Tardos fails to terminate1w.p. ๐ within ๐ resampling steps.2 Then ๐๐ is invertible on the set of size 2๐ ๐๐ ๐12/2/2021Sofya Raskhodnikova; Randomness in Computing
Proof of Lemma 1Lemma 1Function ๐๐ is invertible on all inputs (๐ฅ0 , ๐ฆ0 ) for which Moser-Tardosdoes not terminate within ๐ steps when run with randomness (๐ฅ0 , ๐ฆ0 ).Proof: The recursion tree is uniquely defined by ๐ง๐ FIX is only called on violated clauses, and each clause has aunique violating assignment.12/2/2021Sofya Raskhodnikova; Randomness in Computing
Algorithmic LLL for ๐SATAlgorithmic Lovasz Local Lemma for ๐SATIf ๐ ๐๐ ๐ ๐๐๐for some ๐CNF formula ๐, then ๐ is satisfiable.Moreover, a satisfying assignment can be found in ๐(๐2 log ๐)time with probability at least 1 2 ๐ .12/2/2021Sofya Raskhodnikova; Randomness in Computing
4/23/2020 Randomness in Computing LECTURE 25 Last time Drunkardโs walk Markov chains Randomize