Probabilistic Computation Lecture 12 Flipping coins, taking chances - - PowerPoint PPT Presentation

probabilistic computation
SMART_READER_LITE
LIVE PREVIEW

Probabilistic Computation Lecture 12 Flipping coins, taking chances - - PowerPoint PPT Presentation

Probabilistic Computation Lecture 12 Flipping coins, taking chances PP, BPP 1 Probabilistic Computation 2 Probabilistic Computation Output depends not only on x, but also on random coin flips 2 Probabilistic Computation Output


slide-1
SLIDE 1

Probabilistic Computation

Lecture 12 Flipping coins, taking chances PP, BPP

1

slide-2
SLIDE 2

Probabilistic Computation

2

slide-3
SLIDE 3

Probabilistic Computation

Output depends not only on x, but also on random “coin flips”

2

slide-4
SLIDE 4

Probabilistic Computation

Output depends not only on x, but also on random “coin flips” M,x define a probability distribution over outcomes

2

slide-5
SLIDE 5

Probabilistic Computation

Output depends not only on x, but also on random “coin flips” M,x define a probability distribution over outcomes If for all x, M(x) equals f(x) with very high probability, could be used as f(x)

2

slide-6
SLIDE 6

Probabilistic Computation

Output depends not only on x, but also on random “coin flips” M,x define a probability distribution over outcomes If for all x, M(x) equals f(x) with very high probability, could be used as f(x)

x coins M

2

slide-7
SLIDE 7

Language Decided by a Probabilistic Computation

3

slide-8
SLIDE 8

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input

3

slide-9
SLIDE 9

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input M accepts x if pr[M(x)=yes] > 0; rejects if pr[M(x)=yes] = 0

3

slide-10
SLIDE 10

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input M accepts x if pr[M(x)=yes] > 0; rejects if pr[M(x)=yes] = 0 M accepts x if pr[M(x)=yes] > 1/2; rejects if pr[M(x)=yes] ! 1/2

3

slide-11
SLIDE 11

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input M accepts x if pr[M(x)=yes] > 0; rejects if pr[M(x)=yes] = 0 M accepts x if pr[M(x)=yes] > 1/2; rejects if pr[M(x)=yes] ! 1/2 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] < 1/3

3

slide-12
SLIDE 12

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input M accepts x if pr[M(x)=yes] > 0; rejects if pr[M(x)=yes] = 0 M accepts x if pr[M(x)=yes] > 1/2; rejects if pr[M(x)=yes] ! 1/2 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] < 1/3 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] = 0

3

slide-13
SLIDE 13

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input M accepts x if pr[M(x)=yes] > 0; rejects if pr[M(x)=yes] = 0 M accepts x if pr[M(x)=yes] > 1/2; rejects if pr[M(x)=yes] ! 1/2 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] < 1/3 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] = 0 Last two: If on any x neither, M doesn’ t decide a language!

3

slide-14
SLIDE 14

Language Decided by a Probabilistic Computation

Different possible definitions of a prob. TM accepting input M accepts x if pr[M(x)=yes] > 0; rejects if pr[M(x)=yes] = 0 M accepts x if pr[M(x)=yes] > 1/2; rejects if pr[M(x)=yes] ! 1/2 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] < 1/3 M accepts x if pr[M(x)=yes] > 2/3; rejects if pr[M(x)=yes] = 0 Last two: If on any x neither, M doesn’ t decide a language! When M does decide, much better than random guess

3

slide-15
SLIDE 15

Probabilistic TM

4

slide-16
SLIDE 16

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability

4

slide-17
SLIDE 17

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability

4

slide-18
SLIDE 18

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability

4

slide-19
SLIDE 19

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability

4

slide-20
SLIDE 20

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability

4

slide-21
SLIDE 21

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability Defines a probability with which an input is accepted

  • r rejected

4

slide-22
SLIDE 22

Probabilistic TM

Like an NTM, but the two possible transitions are considered to be taken with equal probability Defines a probability with which an input is accepted

  • r rejected

1/8 1/8 1/ 4 1/ 4 1/ 4

4

slide-23
SLIDE 23

Random Tape

x coins

5

slide-24
SLIDE 24

Random Tape

Random choice: flipping a fair coin

x coins

5

slide-25
SLIDE 25

Random Tape

Random choice: flipping a fair coin Coin flip is written on a read-once “random tape’’

x coins

5

slide-26
SLIDE 26

Random Tape

Random choice: flipping a fair coin Coin flip is written on a read-once “random tape’’ Enough coin flips made and written

  • n the tape first, then start

execution

x coins

5

slide-27
SLIDE 27

Random Tape

Random choice: flipping a fair coin Coin flip is written on a read-once “random tape’’ Enough coin flips made and written

  • n the tape first, then start

execution When considering bounded time TMs length of random tape (max coins used) also bounded

x coins

5

slide-28
SLIDE 28

Random Tape

6

slide-29
SLIDE 29

Random Tape

6

slide-30
SLIDE 30

Random Tape

1/8

6

slide-31
SLIDE 31

Random Tape

1/8

1

6

slide-32
SLIDE 32

Random Tape

1/8 1/8

1

6

slide-33
SLIDE 33

Random Tape

1/8 1/8

1 1

6

slide-34
SLIDE 34

Random Tape

1/8 1/8 1/ 4

1 1

6

slide-35
SLIDE 35

Random Tape

1/8 1/8 1/ 4

1 1 1

6

slide-36
SLIDE 36

Random Tape

1/8 1/8 1/ 4 1/ 4

1 1 1

6

slide-37
SLIDE 37

Random Tape

1/8 1/8 1/ 4 1/ 4

1 1 1 1 1

6

slide-38
SLIDE 38

Random Tape

1/8 1/8 1/ 4 1/ 4 1/ 4

1 1 1 1 1

6

slide-39
SLIDE 39

Random Tape

1/8 1/8 1/ 4 1/ 4 1/ 4

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

6

slide-40
SLIDE 40

Language Decided by a Probabilistic Computation

7

slide-41
SLIDE 41

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input

7

slide-42
SLIDE 42

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0

7

slide-43
SLIDE 43

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM

7

slide-44
SLIDE 44

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2

NTM

7

slide-45
SLIDE 45

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2

NTM PTM

7

slide-46
SLIDE 46

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3

NTM PTM

7

slide-47
SLIDE 47

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3

NTM PTM BPTM

7

slide-48
SLIDE 48

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 Accept if pr[yes] > 2/3; reject if pr[yes] = 0

NTM PTM BPTM

7

slide-49
SLIDE 49

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 Accept if pr[yes] > 2/3; reject if pr[yes] = 0

NTM PTM BPTM RTM

7

slide-50
SLIDE 50

Language Decided by a Probabilistic Computation

Different possible definitions of accepting input Accept if pr[yes] > 0; reject if pr[yes] = 0 Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 Accept if pr[yes] > 2/3; reject if pr[yes] = 0 (Not standard nomenclature!)

NTM PTM BPTM RTM

7

slide-51
SLIDE 51

PTIME, BPTIME and RTIME

8

slide-52
SLIDE 52

PTIME, BPTIME and RTIME

T-time probabilistic TM

8

slide-53
SLIDE 53

PTIME, BPTIME and RTIME

T-time probabilistic TM On all inputs x, on any random tape, terminates in T(|x|) time and outputs “yes” or “no. ”

8

slide-54
SLIDE 54

PTIME, BPTIME and RTIME

T-time probabilistic TM On all inputs x, on any random tape, terminates in T(|x|) time and outputs “yes” or “no. ” Just like NTIME(T)

8

slide-55
SLIDE 55

PTIME, BPTIME and RTIME

T-time probabilistic TM On all inputs x, on any random tape, terminates in T(|x|) time and outputs “yes” or “no. ” Just like NTIME(T) BPTIME(T) = class of languages decided by BPTMs in time T

8

slide-56
SLIDE 56

PTIME, BPTIME and RTIME

T-time probabilistic TM On all inputs x, on any random tape, terminates in T(|x|) time and outputs “yes” or “no. ” Just like NTIME(T) BPTIME(T) = class of languages decided by BPTMs in time T Similarly PTIME(T) and RTIME(T)

8

slide-57
SLIDE 57

PP, BPP and RP

9

slide-58
SLIDE 58

PP, BPP and RP

PP = ∪c>0 PTIME(O(nc))

9

slide-59
SLIDE 59

PP, BPP and RP

PP = ∪c>0 PTIME(O(nc)) BPP = ∪c>0 BPTIME(O(nc))

9

slide-60
SLIDE 60

PP, BPP and RP

PP = ∪c>0 PTIME(O(nc)) BPP = ∪c>0 BPTIME(O(nc)) RP = ∪c>0 RTIME(O(nc))

9

slide-61
SLIDE 61

PP, BPP and RP

PP = ∪c>0 PTIME(O(nc)) BPP = ∪c>0 BPTIME(O(nc)) RP = ∪c>0 RTIME(O(nc)) co-RP

9

slide-62
SLIDE 62

co-RTM

10

slide-63
SLIDE 63

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM

10

slide-64
SLIDE 64

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM

10

slide-65
SLIDE 65

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 PTM

10

slide-66
SLIDE 66

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 PTM Accept if pr[yes] " 1/2; reject if pr[yes] < 1/2 co-PTM

10

slide-67
SLIDE 67

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 PTM Accept if pr[yes] " 1/2; reject if pr[yes] < 1/2 co-PTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 BPTM

10

slide-68
SLIDE 68

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 PTM Accept if pr[yes] " 1/2; reject if pr[yes] < 1/2 co-PTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 BPTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 co-BPTM

10

slide-69
SLIDE 69

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 PTM Accept if pr[yes] " 1/2; reject if pr[yes] < 1/2 co-PTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 BPTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 co-BPTM Accept if pr[yes] > 2/3; reject if pr[yes] = 0 RTM

10

slide-70
SLIDE 70

co-RTM

Accept if pr[yes] > 0; reject if pr[yes] = 0 NTM Accept if pr[yes] = 1; reject if pr[yes] < 1 co-NTM Accept if pr[yes] > 1/2; reject if pr[yes] ! 1/2 PTM Accept if pr[yes] " 1/2; reject if pr[yes] < 1/2 co-PTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 BPTM Accept if pr[yes] > 2/3; reject if pr[yes] < 1/3 co-BPTM Accept if pr[yes] > 2/3; reject if pr[yes] = 0 RTM Accept if pr[yes] = 1; reject if pr[yes] < 1/3 co-RTM

10

slide-71
SLIDE 71

RP and co-RP

11

slide-72
SLIDE 72

RP and co-RP

One sided error (“bounded error” versions of NP and co-NP)

11

slide-73
SLIDE 73

RP and co-RP

One sided error (“bounded error” versions of NP and co-NP) RP: if yes, may still say no w/p at most 1/3

11

slide-74
SLIDE 74

RP and co-RP

One sided error (“bounded error” versions of NP and co-NP) RP: if yes, may still say no w/p at most 1/3 i.e., if RTM says no, can be wrong

11

slide-75
SLIDE 75

RP and co-RP

One sided error (“bounded error” versions of NP and co-NP) RP: if yes, may still say no w/p at most 1/3 i.e., if RTM says no, can be wrong co-RP: if no, may still say yes w/p at most 1/3

11

slide-76
SLIDE 76

RP and co-RP

One sided error (“bounded error” versions of NP and co-NP) RP: if yes, may still say no w/p at most 1/3 i.e., if RTM says no, can be wrong co-RP: if no, may still say yes w/p at most 1/3 i.e., if co-RTM says yes, can be wrong

11

slide-77
SLIDE 77

co-BPP, co-PP

12

slide-78
SLIDE 78

co-BPP, co-PP

BPP = co-BPP

12

slide-79
SLIDE 79

co-BPP, co-PP

BPP = co-BPP co-BPTMs are same as BPTMs

12

slide-80
SLIDE 80

co-BPP, co-PP

BPP = co-BPP co-BPTMs are same as BPTMs In fact PP = co-PP

12

slide-81
SLIDE 81

co-BPP, co-PP

BPP = co-BPP co-BPTMs are same as BPTMs In fact PP = co-PP PTMs and co-PTMs differ on accepting inputs with Pr [yes]=1/2

12

slide-82
SLIDE 82

co-BPP, co-PP

BPP = co-BPP co-BPTMs are same as BPTMs In fact PP = co-PP PTMs and co-PTMs differ on accepting inputs with Pr [yes]=1/2 But can modify a PTM so that Pr[M(x)=yes] # 1/2 for all x, without changing language accepted

12

slide-83
SLIDE 83

PP = co-PP

13

slide-84
SLIDE 84

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2

13

slide-85
SLIDE 85

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε

13

slide-86
SLIDE 86

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε

13

slide-87
SLIDE 87

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε M

13

slide-88
SLIDE 88

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε M

13

slide-89
SLIDE 89

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε pr[M’(x)=yes] = pr[M(x)=yes]/2 + (1/2 - ε)/2 M

13

slide-90
SLIDE 90

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε pr[M’(x)=yes] = pr[M(x)=yes]/2 + (1/2 - ε)/2 If pr[M(x)=yes] > 1/2 ⇒ pr[M(x)=yes] > 1/2 + ε then M and M’ equivalent M

13

slide-91
SLIDE 91

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε pr[M’(x)=yes] = pr[M(x)=yes]/2 + (1/2 - ε)/2 If pr[M(x)=yes] > 1/2 ⇒ pr[M(x)=yes] > 1/2 + ε then M and M’ equivalent What is such an ε? M

13

slide-92
SLIDE 92

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε pr[M’(x)=yes] = pr[M(x)=yes]/2 + (1/2 - ε)/2 If pr[M(x)=yes] > 1/2 ⇒ pr[M(x)=yes] > 1/2 + ε then M and M’ equivalent What is such an ε? 2-(m+1) where no. of coins used by M is at most m M

13

slide-93
SLIDE 93

PP = co-PP

Modifying a PTM M to an equivalent PTM M’, so that for all x Pr[M’(x)=yes] # 1/2 Consider M’(x): w.p. 1/2 run M(x); w.p. 1/2, ignore input and say yes w.p. 1/2 - ε, and say no w.p. 1/2 + ε pr[M’(x)=yes] = pr[M(x)=yes]/2 + (1/2 - ε)/2 If pr[M(x)=yes] > 1/2 ⇒ pr[M(x)=yes] > 1/2 + ε then M and M’ equivalent What is such an ε? 2-(m+1) where no. of coins used by M is at most m M’ tosses at most m+2 coins M

13

slide-94
SLIDE 94

PP and NP

14

slide-95
SLIDE 95

NP ⊆ PP

PP and NP

14

slide-96
SLIDE 96

NP ⊆ PP Use random-tape as non- deterministic choices of NTM M

PP and NP

14

slide-97
SLIDE 97

NP ⊆ PP Use random-tape as non- deterministic choices of NTM M

PP and NP

14

slide-98
SLIDE 98

NP ⊆ PP Use random-tape as non- deterministic choices of NTM M If M rejects, accept with 1/2 prob., else accept

PP and NP

14

slide-99
SLIDE 99

NP ⊆ PP Use random-tape as non- deterministic choices of NTM M If M rejects, accept with 1/2 prob., else accept

PP and NP

14

slide-100
SLIDE 100

NP ⊆ PP Use random-tape as non- deterministic choices of NTM M If M rejects, accept with 1/2 prob., else accept If even one thread of M(x) accepts, pr[M(x)=yes] > 1/2

PP and NP

14

slide-101
SLIDE 101

NP ⊆ PP Use random-tape as non- deterministic choices of NTM M If M rejects, accept with 1/2 prob., else accept If even one thread of M(x) accepts, pr[M(x)=yes] > 1/2 Accepting gap can be exponentially small

PP and NP

14

slide-102
SLIDE 102

Bounding Probability Gap

15

slide-103
SLIDE 103

Bounding Probability Gap

Gap

15

slide-104
SLIDE 104

Bounding Probability Gap

Gap Minx∈L Pr[M(x)=yes] - Maxx∉L Pr[M(x)=yes]

15

slide-105
SLIDE 105

Bounding Probability Gap

Gap Minx∈L Pr[M(x)=yes] - Maxx∉L Pr[M(x)=yes] BPP, RP, coRP require M to have gap some constant (1/3, 2/3)

15

slide-106
SLIDE 106

Bounding Probability Gap

Gap Minx∈L Pr[M(x)=yes] - Maxx∉L Pr[M(x)=yes] BPP, RP, coRP require M to have gap some constant (1/3, 2/3) Setting gap = 1/nc is enough

15

slide-107
SLIDE 107

Bounding Probability Gap

Gap Minx∈L Pr[M(x)=yes] - Maxx∉L Pr[M(x)=yes] BPP, RP, coRP require M to have gap some constant (1/3, 2/3) Setting gap = 1/nc is enough Can be boosted to gap = 1 - 1/2n^d in polynomial time

15

slide-108
SLIDE 108

Soundness Amplification for RP

16

slide-109
SLIDE 109

Soundness Amplification for RP

M’(x): Repeat M(x) t times and if any yes, say yes

16

slide-110
SLIDE 110

Soundness Amplification for RP

M’(x): Repeat M(x) t times and if any yes, say yes If x∉L: Pr[M(x)=no] = 1. So Pr[M’(x)=no] = 1

16

slide-111
SLIDE 111

Soundness Amplification for RP

M’(x): Repeat M(x) t times and if any yes, say yes If x∉L: Pr[M(x)=no] = 1. So Pr[M’(x)=no] = 1 If x∈L: Pr[M(x)=no] ! 1-δ (when gap = δ). Then Pr[M’(x)=no] ! (1-δ)t

16

slide-112
SLIDE 112

Soundness Amplification for RP

M’(x): Repeat M(x) t times and if any yes, say yes If x∉L: Pr[M(x)=no] = 1. So Pr[M’(x)=no] = 1 If x∈L: Pr[M(x)=no] ! 1-δ (when gap = δ). Then Pr[M’(x)=no] ! (1-δ)t With t = nd/δ, Pr[M’(x)=no] < e-(n^d) (1-δ < e-δ)

16

slide-113
SLIDE 113

Soundness Amplification for RP

M’(x): Repeat M(x) t times and if any yes, say yes If x∉L: Pr[M(x)=no] = 1. So Pr[M’(x)=no] = 1 If x∈L: Pr[M(x)=no] ! 1-δ (when gap = δ). Then Pr[M’(x)=no] ! (1-δ)t With t = nd/δ, Pr[M’(x)=no] < e-(n^d) (1-δ < e-δ) For δ = n-c, t=nd+c is polynomial

16

slide-114
SLIDE 114

Soundness Amplification for BPP

17

slide-115
SLIDE 115

Soundness Amplification for BPP

Repeat M(x) t times and take majority

17

slide-116
SLIDE 116

Soundness Amplification for BPP

Repeat M(x) t times and take majority i.e. estimate Pr[M(x)=yes] and check if it is > 1/2

17

slide-117
SLIDE 117

Soundness Amplification for BPP

Repeat M(x) t times and take majority i.e. estimate Pr[M(x)=yes] and check if it is > 1/2 Error only if |estimate - real| " gap/2

17

slide-118
SLIDE 118

Soundness Amplification for BPP

Repeat M(x) t times and take majority i.e. estimate Pr[M(x)=yes] and check if it is > 1/2 Error only if |estimate - real| " gap/2 Estimation error goes down exponentially with t: Chernoff bound

17

slide-119
SLIDE 119

Soundness Amplification for BPP

Repeat M(x) t times and take majority i.e. estimate Pr[M(x)=yes] and check if it is > 1/2 Error only if |estimate - real| " gap/2 Estimation error goes down exponentially with t: Chernoff bound Pr[ |estimate - real| " δ/2 ] ! 2-!(t.δ^2)

17

slide-120
SLIDE 120

Soundness Amplification for BPP

Repeat M(x) t times and take majority i.e. estimate Pr[M(x)=yes] and check if it is > 1/2 Error only if |estimate - real| " gap/2 Estimation error goes down exponentially with t: Chernoff bound Pr[ |estimate - real| " δ/2 ] ! 2-!(t.δ^2) t = O(nd/δ2) enough for Pr[error] ! 2-n^d

17

slide-121
SLIDE 121

Today

18

slide-122
SLIDE 122

Today

Probabilistic computation

18

slide-123
SLIDE 123

Today

Probabilistic computation PP, RP, co-RP, BPP

18

slide-124
SLIDE 124

Today

Probabilistic computation PP, RP, co-RP, BPP PP too powerful: NP ⊆ PP

18

slide-125
SLIDE 125

Today

Probabilistic computation PP, RP, co-RP, BPP PP too powerful: NP ⊆ PP Constant gap: BPP, RP, co-RP

18

slide-126
SLIDE 126

Today

Probabilistic computation PP, RP, co-RP, BPP PP too powerful: NP ⊆ PP Constant gap: BPP, RP, co-RP RP, co-RP one-sided error

18

slide-127
SLIDE 127

Today

Probabilistic computation PP, RP, co-RP, BPP PP too powerful: NP ⊆ PP Constant gap: BPP, RP, co-RP RP, co-RP one-sided error Soundness Amplification: for RP, for BPP

18

slide-128
SLIDE 128

Today

Probabilistic computation PP, RP, co-RP, BPP PP too powerful: NP ⊆ PP Constant gap: BPP, RP, co-RP RP, co-RP one-sided error Soundness Amplification: for RP, for BPP From gap 1/poly to 1-1/ exp

18

slide-129
SLIDE 129

Today

Probabilistic computation PP, RP, co-RP, BPP PP too powerful: NP ⊆ PP Constant gap: BPP, RP, co-RP RP, co-RP one-sided error Soundness Amplification: for RP, for BPP From gap 1/poly to 1-1/ exp Next: more on BPP and relatives

18