What is a rand. alg?
- What
is an alg?
- Turing
Machines. RAM with large ints. log-cost RAM as TM.
- language
as decision problem (vs optimization problems) ``graphs with small
min-cut.'' algos accept/reject
- complexity
class as set of languages
- P. polynomial time in input size
- NP as P with good
advice string. witnesses
- polytime
reductions. hardness, completeness.
- Randomized
algorithms have advice string, but it is random
- measure
probs over space of advice strings
- equivalence
to fliping unbiased random bits
- ZPP (zero error probabilistic polytime)
- Polynomial
expected time
- A(x) accepts iff x
L.
- Las
Vegas algorithms
- RP (randomized polytime) (MC with one-sided
error).
- polytime
(always)
- x
L
rejects (always).
- x
L
accepts with probability > 1/2.
- Monte
Carlo algorithm
- one
sided error
- precise
numbers unimportant: amplification.
- min-cut
example
- coRP.
- What
if NOT worst case polytime? stop
when passes time bound and accept.
- ZPP = RP
coRP
- PP (probabilistic polytime) (two-sided MC)
- Worst
case polytime (can force)
- x
L
accepts prob >
1/2
- x
L
accepts prob < 1/2
- weakness:
NP
PP
- BPP (bounded probabilistic polytime)
- worst
case polytime (can force)
- x
L
accepts prob >
3/4
- x
L
accepts prob < 1/4
- precise
numbers unimportant.
· Clearly
P
RP
NP. Open questions:
o RP = coRP? (equiv RP = ZPP)
o BPP
NP?
Moving LOE through
a (linear) recurrence.
- define.
algo cost is number of leaves. n = 2h
- NOR
model
deterministic
model: must examine all leaves. time 2h = 4h/2 = n
- by
induction: on any tree of height h, as
questions are asked, can answer such that root is not determined until all
leaves checked.
- Note:
bad instance being constructed on the fly as algorithm runs.
- But, since
algorithm deterministic, bad instance can be built in advance by
simulating algorithm.
nondeterministic/checking
- T(0) = 1
- winning
position can guess move. W(h) = L(h - 1)
- losing
must check both. L(h) = 2W(h - 1)
- follows
W(h) = 2*W(h - 2) = 2h/2 = n1/2
randomized-guess
which leaf wins.
- T(0) = 1
- W(T) is a random variable: time it takes to verify T is a win. Ditto L(T).
- W(h) = max over all height-h
winning trees of E[W(T)]
- explain
W(T) = L(T1) +
L(T2)
- Suppose
T1 wins.
|
W(T1oT2)
|

|
L(T1)
+ [evalT2]L(T2)
|
|
|
W(h)
|
=
|
(3/2)L(h -
1)
|
|
|
L(h)
|
=
|
2W(h -
2)
|
|
|
W(h)
|
=
|
3W(h -
2) = 3h/2 = hlog32
n.793
|
|