Randomness in Computing L ECTURE 22 Last time Probabilistic method - - PowerPoint PPT Presentation

โ–ถ
randomness in computing
SMART_READER_LITE
LIVE PREVIEW

Randomness in Computing L ECTURE 22 Last time Probabilistic method - - PowerPoint PPT Presentation

Randomness in Computing L ECTURE 22 Last time Probabilistic method The Second Moment Method Conditional expectation inequality Lovasz Local Lemma Today Probabilistic method Lovasz Local Lemma (LLL) Algorithmic LLL


slide-1
SLIDE 1

4/14/2020

Randomness in Computing

LECTURE 22

Last time

  • Probabilistic method
  • The Second Moment Method
  • Conditional expectation

inequality

  • Lovasz Local Lemma

Today

  • Probabilistic method
  • Lovasz Local Lemma (LLL)
  • Algorithmic LLL

Sofya Raskhodnikova;Randomness in Computing

slide-2
SLIDE 2

Lovasz Local Lemma (LLL)

LLL states that as long as

  • 1. bad events ๐ถ1, โ€ฆ , ๐ถ๐‘œ have small probability,
  • 2. they are not ``too dependentโ€™โ€™,

there is a non-zero probability of avoiding all of them.

  • A dependency graph for events ๐ถ1, โ€ฆ , ๐ถ๐‘œ is a graph with vertex

set [๐‘œ] and edge set ๐น, s.t. โˆ€๐‘— โˆˆ ๐‘œ , event ๐ถ๐‘— is mutually independent of all events ๐ถ

๐‘˜

๐‘—, ๐‘˜ โˆ‰ ๐น}.

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

Lovasz Local Lemma

Let ๐ถ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ฺ๐‘—โˆˆ ๐‘œ เดฅ

๐ถ๐‘— > 0

slide-3
SLIDE 3

Example: Points on a circle

11๐‘œ points are placed on a circle and colored with ๐‘œ different colors, so that each color is applied to exactly 11 points. Prove: There exists a set of ๐‘œ points, all colored differently, such that no two points in the set are adjacent. Solution:

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

slide-4
SLIDE 4

Algorithmic LLL

  • Under the original distribution it is unlikely,

but possible to avoid all bad events.

  • Can we find a different distribution

(specifically, a randomized algorithm) that is likely to avoid all bad events?

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

slide-5
SLIDE 5

Canonical special case of LLL: kSAT

  • Literal: a variable or its negation
  • Clause: OR of literals
  • CNF formula: AND of clauses
  • ๐‘™CNF: each clause involves ๐‘™ distinct variables

E.g. (๐‘ฆ1 โˆจ ๐‘ฆ3 โˆจ ๐‘ฆ7 โˆจ ๐‘ฆ13) is a 4CNF clause

  • ๐‘™SAT: Is a given a ๐‘™CNF formula satisfiable?
  • Notation: ๐‘œ = number of variables, ๐‘› = number of clauses

4/14/2020

Sofya Raskhodnikova; Randomness in Computing; based on Tim Roughgardenโ€™s notes

slide-6
SLIDE 6

Canonical special case of LLL: kSAT

  • Literal: a variable or its negation
  • Clause: OR of literals
  • CNF formula: AND of clauses
  • ๐‘™CNF: each clause involves ๐‘™ distinct variables

E.g. (๐‘ฆ1 โˆจ ๐‘ฆ3 โˆจ ๐‘ฆ7 โˆจ ๐‘ฆ13) is a 4CNF clause

  • ๐‘™SAT: Is a given a ๐‘™CNF formula satisfiable?
  • Notation: ๐‘œ = number of variables, ๐‘› = number of clauses

Warm up: For each ๐‘™CNF clause, there are 2๐‘™ possible assignments.

  • Only one of them violates the clause. E.g.
  • The remaining 2๐‘™ โˆ’ 1 satisfy it.

Each clause ``forbidsโ€™โ€™ one particular assignment to a ๐‘™-tuple of variables. Recall from HW: A uniformly random assignment satisfies, in expectation, ๐‘›(1 โˆ’ 2โˆ’๐‘™) clauses. You showed how to find such an assignment deterministically.

4/14/2020

Sofya Raskhodnikova; Randomness in Computing; based on Tim Roughgardenโ€™s notes

?

๐’š๐Ÿ = ๐Ÿ, ๐’š๐Ÿ’ = ๐Ÿ, ๐’š๐Ÿ– = ๐Ÿ, ๐’š๐Ÿ๐Ÿ’ = ๐Ÿ

slide-7
SLIDE 7

Canonical special case of LLL: kSAT

  • Notation: ๐‘œ = number of variables, ๐‘› = number of clauses

Observation: If ๐‘› < 2๐‘™, then the formula is satisfiable. Proof:

4/14/2020

Sofya Raskhodnikova; Randomness in Computing; based on Tim Roughgardenโ€™s notes

slide-8
SLIDE 8

Statement of LLL for ๐’SAT

  • Dependency graph: Vertices correspond to clauses

edge (๐‘—, ๐‘˜) iff clauses ๐‘— and ๐‘˜ share a variable

If 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 a variables appears in.

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

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โˆ’๐‘›.

slide-9
SLIDE 9

Moser-Tardos Algorithm for LLL

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

1. Let ๐‘† be a random assignment where each variable is assigned 0 or 1 uniformly and independently. 2. While some clause ๐ท is violated by ๐‘†, run FIX(๐ท) 3. 3. ๐’๐Ÿ๐ฎ๐ฏ๐ฌ๐จ ๐‘†.

Input: a ๐‘™CNF formula with clauses ๐ท1, โ€ฆ , ๐ท๐‘›

  • n ๐‘œ variables and with ๐‘’ โ‰ค 2๐‘™โˆ’3
  • 1. Pick new values for ๐‘™ variables in ๐ท uniformly and

independently and update ๐‘†. 2. While some clause ๐ธ that shares a variable with ๐ท is violated by ๐‘†, run FIX(๐ธ)

FIX(๐ท)

Global variable ๐‘ฌ could be ๐‘ซ if we chose the same values as before

slide-10
SLIDE 10

Correctness of Moser-Tardos

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

Observation

If FIX(๐ท) terminates, then it terminates with an assignment in which ๐ท and all clauses sharing a variable with ๐ท are satisfied.

slide-11
SLIDE 11

Correctness of Moser-Tardos

Proof: Suppose for contradiction that some call FIX(๐ท) terminated and changed an assignment to clause ๐ธ from satisfied to violated, and consider the 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 did

and, by assumption that this is the first bad call to terminate, could not have spoiled ๐ธ.

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

Lemma (Correctness)

A call to FIX that terminates does not change any clauses of the formula from satisfied to violated.

Theorem (Correctness)

If Moser-Tardos terminates, it outputs a satisfying assignment.

slide-12
SLIDE 12

Run time of Moser-Tardos

  • Assume: ๐‘› โ‰ฅ 2๐‘™ (o.w. trivial by other means)
  • Proof idea: Clever way to ``compressโ€™โ€™ random bits

if the algorithm runs for too long.

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

Theorem (Run time)

If ๐’† โ‰ค ๐Ÿ‘๐’โˆ’๐Ÿ’ then Moser-Tardos terminates after ๐‘ƒ(๐‘› log ๐‘›) resampling steps with probability at least 1 โˆ’ 2โˆ’๐‘›.

Observation 2

If a function ๐‘”: ๐ต โ†’ ๐ถ is injective (i.e., invertible on its range ๐‘”(๐ต)) then ๐ถ โ‰ฅ |๐ต|.

Set A Set B ๐’ˆ

slide-13
SLIDE 13

Function ๐’ˆ๐‘ผ

  • Suppose we stop Moser-Tardos after ๐‘ˆ resampling steps.

Randomness used:

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

slide-14
SLIDE 14

Transcript

  • Each call to FIX gets recorded as follows:
  • When a call to FIX returns, 0 is written on the transcript

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

slide-15
SLIDE 15

Run time of Moser-Tardos

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

Lemma 1

Function ๐‘”

๐‘ˆ is invertible on all inputs (๐‘ฆ0, ๐‘ง0) for which Moser-Tardos

does not terminate within ๐‘ˆ steps when run with randomness (๐‘ฆ0, ๐‘ง0).

Lemma 2

Length of transcript ๐‘จ๐‘ˆ is at most ๐’(โŒˆ๐ฆ๐ฉ๐ก๐Ÿ‘ ๐’โŒ‰ + ๐Ÿ‘) + ๐‘ผ โ‹… (๐’ โˆ’ ๐Ÿ) .

slide-16
SLIDE 16

Proof of Theorem

First, consider ๐‘ˆ such that Moser-Tardos never terminates within ๐‘ˆ resampling steps.

  • There is a valid transcript ๐‘จ๐‘ˆ for every choice of

the random ๐‘œ + ๐‘ˆ๐‘™ bits needed to run Moser-Tardos

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

slide-17
SLIDE 17

Proof of Theorem (continued)

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

slide-18
SLIDE 18

Proof of Lemma 1

4/14/2020

Sofya Raskhodnikova; Randomness in Computing

Lemma 1

Function ๐‘”

๐‘ˆ is invertible on all inputs (๐‘ฆ0, ๐‘ง0) for which Moser-Tardos

does not terminate within ๐‘ˆ steps when run with randomness (๐‘ฆ0, ๐‘ง0).