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

โ–ถ
randomness in computing
SMART_READER_LITE
LIVE PREVIEW

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

Randomness in Computing L ECTURE 23 Last time Probabilistic method Lovasz Local Lemma (LLL) Algorithmic LLL Today Probabilistic method Algorithmic LLL Applications of LLL 4/16/2020 Sofya Raskhodnikova;Randomness in


slide-1
SLIDE 1

4/16/2020

Randomness in Computing

LECTURE 23

Last time

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

Today

  • Probabilistic method
  • Algorithmic LLL
  • Applications of LLL

Sofya Raskhodnikova;Randomness in Computing

slide-2
SLIDE 2

Algorithmic LLL for ๐’SAT

4/16/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-3
SLIDE 3

Moser-Tardos Algorithm for LLL

4/16/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-4
SLIDE 4

Correctness of Moser-Tardos

4/16/2020

Sofya Raskhodnikova; Randomness in Computing

Theorem (Correctness)

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

slide-5
SLIDE 5

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/16/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-6
SLIDE 6

Function ๐’ˆ๐‘ผ

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

Randomness used:

  • Let ๐ต be the set of all choices for ๐‘œ + ๐‘ˆ๐‘™ bits

๐‘”

๐‘ˆ( ๐‘ฆ0, ๐‘ง0 = ๐‘ฆ๐‘ˆ, ๐‘จ๐‘ˆ

4/16/2020

Sofya Raskhodnikova; Randomness in Computing

๐’ bits for initial assignment ๐’ bits for each resampling step ๐’ + ๐‘ผ๐’ bits Total:

initial assignment ๐‘ผ๐’ bits for reassignment assignment after ๐‘ผ resampling steps transcript after ๐‘ผ resampling steps

slide-7
SLIDE 7

Transcript

  • Each call to FIX gets recorded as follows:

If FIX ๐ท is called by the main algorithm If FIX ๐ธ is a recursive call made by FIX ๐ท

  • When a call to FIX returns,

is written on the transcript

4/16/2020

Sofya Raskhodnikova; Randomness in Computing

๐Ÿ ๐Ÿ ๐Ÿ

slide-8
SLIDE 8

Run time of Moser-Tardos

4/16/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-9
SLIDE 9

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/16/2020

Sofya Raskhodnikova; Randomness in Computing

slide-10
SLIDE 10

Proof of Theorem (continued)

Now, consider ๐‘ˆ such that Moser-Tardos fails to terminate w.p. โ‰ฅ

1 2๐‘› within ๐‘ˆ resampling steps.

  • Then ๐‘”

๐‘ˆ is invertible on the set of size โ‰ฅ 2๐‘œ+๐‘ˆ๐‘™โˆ’๐‘›

4/16/2020

Sofya Raskhodnikova; Randomness in Computing

slide-11
SLIDE 11

Proof of Lemma 1

4/16/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).

slide-12
SLIDE 12

Algorithmic LLL for ๐’SAT

4/16/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-13
SLIDE 13

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 vertex

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

๐‘˜

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

4/16/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-14
SLIDE 14

Application of LLL

Proof:

4/16/2020

Sofya Raskhodnikova; Randomness in Computing

Theorem

If ๐’‡

๐’ ๐Ÿ‘ ๐’ ๐’โˆ’๐Ÿ‘ + 1 21โˆ’ ๐’

๐Ÿ‘ โ‰ค 1 then edges of ๐ฟ๐‘œ can be colored

with 2 colors so that there is no monochromatic ๐ฟ๐‘™.

slide-15
SLIDE 15

Application 2: edge-disjoint paths

  • ๐’ pairs of users need to communicate using edge-disjoint paths
  • โˆ€๐‘— โˆˆ ๐‘œ , pair ๐‘— can choose a path from collection ๐‘„๐‘— of size ๐’.

Proof:

4/16/2020

Sofya Raskhodnikova; Randomness in Computing

Theorem

If โˆ€๐‘— โ‰  ๐‘˜, each path in ๐‘„

๐‘— shares edges with at most ๐’ paths in ๐‘„ ๐‘˜ and

2๐’‡๐’๐’ โ‰ค ๐’ then there is a way to choose ๐’ edge-disjoint paths.