Umans Complexity Theory Lectures

Similar documents
Umans Complexity Theory Lectures

Lecture 24: Randomized Complexity, Course Summary

Notes on Complexity Theory Last updated: November, Lecture 10

1 Randomized complexity

CSC 5170: Theory of Computational Complexity Lecture 9 The Chinese University of Hong Kong 15 March 2010

Lecture 12: Randomness Continued

CSC 5170: Theory of Computational Complexity Lecture 5 The Chinese University of Hong Kong 8 February 2010

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan 9/6/2004. Notes for Lecture 3

Randomized Complexity Classes; RP

CS151 Complexity Theory. Lecture 4 April 12, 2017

Lecture 3: Nondeterminism, NP, and NP-completeness

Notes on Space-Bounded Complexity

CSE200: Computability and complexity Space Complexity

Technische Universität München Summer term 2010 Theoretische Informatik August 2, 2010 Dr. J. Kreiker / Dr. M. Luttenberger, J. Kretinsky SOLUTION

Pr[X = s Y = t] = Pr[X = s] Pr[Y = t]

: On the P vs. BPP problem. 30/12/2016 Lecture 11

Complexity Theory Final Exam

Notes on Space-Bounded Complexity

Circuits. Lecture 11 Uniform Circuit Complexity

Exponential time vs probabilistic polynomial time

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in

Randomized Computation

CS151 Complexity Theory

Lecture Examples of problems which have randomized algorithms

Complexity Theory 112. Space Complexity

6.045 Final Exam Solutions

Undirected ST-Connectivity in Log-Space. Omer Reingold. Presented by: Thang N. Dinh CISE, University of Florida, Fall, 2010

Handout 7. and Pr [M(x) = χ L (x) M(x) =? ] = 1.

6.045: Automata, Computability, and Complexity (GITCS) Class 17 Nancy Lynch

Chapter 5 : Randomized computation

Lecture 23: Introduction to Quantum Complexity Theory 1 REVIEW: CLASSICAL COMPLEXITY THEORY

Quantum Computing Lecture 8. Quantum Automata and Complexity

1 Randomized Computation

Lecture 8: Complete Problems for Other Complexity Classes

Lecture 19: Finish NP-Completeness, conp and Friends

P = k T IME(n k ) Now, do all decidable languages belong to P? Let s consider a couple of languages:

1 PSPACE-Completeness

Computer Sciences Department

CSC 5170: Theory of Computational Complexity Lecture 4 The Chinese University of Hong Kong 1 February 2010

CS154, Lecture 17: conp, Oracles again, Space Complexity

CS151 Complexity Theory. Lecture 14 May 17, 2017

Lecture 4 : Quest for Structure in Counting Problems

Lecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

-bit integers are all in ThC. Th The following problems are complete for PSPACE NPSPACE ATIME QSAT, GEOGRAPHY, SUCCINCT REACH.

Computational Complexity: A Modern Approach. Draft of a book: Dated January 2007 Comments welcome!

Time and space classes

MTAT Complexity Theory October 13th-14th, Lecture 6

Notes for Lecture 3... x 4

Umans Complexity Theory Lectures

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan 1/29/2002. Notes for Lecture 3

CS151 Complexity Theory. Lecture 13 May 15, 2017

Non-Approximability Results (2 nd part) 1/19

Space and Nondeterminism

CSCE 551 Final Exam, Spring 2004 Answer Key

Lecture 23: More PSPACE-Complete, Randomized Complexity

conp, Oracles, Space Complexity

Randomness and non-uniformity

Lecture 3: Reductions and Completeness

conp = { L L NP } (1) This problem is essentially the same as SAT because a formula is not satisfiable if and only if its negation is a tautology.

A An Overview of Complexity Theory for the Algorithm Designer

BBM402-Lecture 11: The Class NP

Logarithmic space. Evgenij Thorstensen V18. Evgenij Thorstensen Logarithmic space V18 1 / 18

SOLUTION: SOLUTION: SOLUTION:

Lecture 18: PCP Theorem and Hardness of Approximation I

Beyond NP [HMU06,Chp.11a] Tautology Problem NP-Hardness and co-np Historical Comments Optimization Problems More Complexity Classes

Lecture 17. In this lecture, we will continue our discussion on randomization.

Space Complexity. The space complexity of a program is how much memory it uses.

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

6.045J/18.400J: Automata, Computability and Complexity Final Exam. There are two sheets of scratch paper at the end of this exam.

Handout 5. α a1 a n. }, where. xi if a i = 1 1 if a i = 0.

Intro to Theory of Computation

COL 352 Introduction to Automata and Theory of Computation Major Exam, Sem II , Max 80, Time 2 hr. Name Entry No. Group

Randomized Time Space Tradeoffs for Directed Graph Connectivity

1 Computational problems

Complexity. Complexity Theory Lecture 3. Decidability and Complexity. Complexity Classes

CSCI 1590 Intro to Computational Complexity

CMPT 710/407 - Complexity Theory Lecture 4: Complexity Classes, Completeness, Linear Speedup, and Hierarchy Theorems

CS21 Decidability and Tractability

Polynomial Time Computation. Topics in Logic and Complexity Handout 2. Nondeterministic Polynomial Time. Succinct Certificates.

satisfiability (sat) Satisfiability unsatisfiability (unsat or sat complement) and validity Any Expression φ Can Be Converted into CNFs and DNFs

Lecture 8. MINDNF = {(φ, k) φ is a CNF expression and DNF expression ψ s.t. ψ k and ψ is equivalent to φ}

Introduction to Complexity Theory. Bernhard Häupler. May 2, 2006

COMPUTATIONAL COMPLEXITY

20.1 2SAT. CS125 Lecture 20 Fall 2016

Advanced topic: Space complexity

Definition: conp = { L L NP } What does a conp computation look like?

Intro to Theory of Computation

Lecture 10: Boolean Circuits (cont.)

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT

De Morgan s a Laws. De Morgan s laws say that. (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2.

PROBABILISTIC COMPUTATION. By Remanth Dabbati

1 More finite deterministic automata

POLYNOMIAL SPACE QSAT. Games. Polynomial space cont d

CS151 Complexity Theory. Lecture 1 April 3, 2017

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

CSCI 1590 Intro to Computational Complexity

Outline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018

A Short History of Computational Complexity

HW11. Due: December 6, 2018

Transcription:

Umans Complexity Theory Lectures Lecture 8: Introduction to Randomized Complexity: - Randomized complexity classes, - Error reduction, - in P/poly - Reingold s Undirected Graph Reachability in RL Randomized complexity classes model: probabilistic Turing Machine deterministic TM with additional read-only tape containing coin flips p.p.t = probabilistic polynomial time (Bounded-error Probabilistic Poly-time) L if there is a p.p.t. TM M: x L Pr y [M(x,y) accepts] 2/3 x L Pr y [M(x,y) rejects] 2/3 2 Randomized complexity classes RP (Random Polynomial-time) L RP if there is a p.p.t. TM M: x L Pr y [M(x,y) accepts] ½ corp (complement of Random Polynomial-time) L corp if there is a p.p.t. TM M: x L Pr y [M(x,y) accepts] = 1 x L Pr y [M(x,y) rejects] ½ Randomized complexity classes One more important class: ZPP (Zero-error Probabilistic Poly-time) ZPP = RP corp Pr y [M(x,y) outputs fail ] ½ otherwise outputs correct answer 3 4

Randomized complexity classes These classes may capture efficiently computable better than P. 1/2 in ZPP, RP, corp definition unimportant can replace by 1/poly(n) 2/3 in definition unimportant can replace by ½ + 1/poly(n) Why? error reduction we will see simple error reduction by repetition more sophisticated error reduction later Relationship to other classes all these classes contain P they can simply ignore the tape with coin flips all are in PSPACE can exhaustively try all strings y count accepts/rejects; compute probability RP NP (and corp conp) multitude of accepting computations NP requires only one 5 6 Relationship to other classes Error reduction for RP PSPACE NP conp RP corp P given L and p.p.t TM M: x L Pr y [M(x,y) accepts] ε new p.p.t TM M : simulate M k/ε times, each time with independent coin flips accept if any simulation accepts otherwise reject 7 8

Error reduction for RP Error reduction for x L Pr y [M(x,y) accepts] ε if x L: probability a given simulation bad (1 ε) Since (1 ε) (1/ε) e -1 we have: probability all simulations bad (1 ε) (k/ε) e -k if x L: Pr y [M (x, y ) accepts] 1 e -k Pr y [M (x,y ) rejects] = 1 9 given L, and p.p.t. TM M: x L Pr y [M(x,y) accepts] ½ + ε x L Pr y [M(x,y) rejects] ½ + ε new p.p.t. TM M : simulate M k/ε 2 times, each time with independent coin flips accept if majority of simulations accept otherwise reject 10 Error reduction for Error reduction for X i random variable indicating correct outcome in i-th simulation (out of m = k/ε 2 ) Pr[X i = 1] ½ + ε Pr[X i = 0] ½ - ε x L Pr y [M(x,y) accepts] ½ + ε x L Pr y [M(x,y) rejects] ½ + ε if x L E[X i ] ½+ε Pr y [M (x, y ) accepts] 1 (½) ck X = Σ i X i if x L µ = E[X] (½ + ε)m Pr y [M (x,y ) rejects] 1 (½) ck Chernoff Tail Bound: Pr[X m/2] 2 -cε 2µ for some c>0 12 11

Randomized complexity classes We have shown: polynomial identity testing is in corp a poly-time algorithm for detecting unique solutions to SAT implies NP = RP How powerful is? We have seen an example of a problem in that we only know how to solve in EXP. Is randomness a panacea for intractability? 13 14 It is not known if = EXP (or even NEXP!) but there are strong hints that it does not Is there a deterministic simulation of that does better than brute-force search? yes, if allow non-uniformity and Boolean circuits Proof: language L error reduction gives TM M such that if x L of length n Pr y [M(x, y) accepts] 1 (½) n2 if x L of length n Pr y [M(x, y) rejects] 1 (½) n2 Theorem (Adleman): P/poly 15 16

and Boolean circuits say y is bad for x if M(x,y) gives incorrect answer for fixed x: Pr y [y is bad for x] (½) n2 Pr y [y is bad for some x] 2 n (½) n2 < 1 Conclude: there exists some y on which M(x, y) is always correct build circuit for M, hardwire this y and Boolean circuits Does = EXP? Adleman s Theorem shows: = EXP implies EXP P/poly If you believe that randomness is all-powerful, you must also believe that non-uniformity gives an exponential advantage. 17 18 RL Recall: probabilistic Turing Machine deterministic TM with extra tape for coin flips RL (Random Logspace) L RL if there is a probabilistic logspace TM M: x L Pr y [M(x,y) accepts] ½ RL L RL NL SPACE(log 2 n) Theorem (SZ) : RL SPACE(log 3/2 n) Belief: L = RL (open problem) important detail #1: only allow one-way access to coin-flip tape important detail #2: explicitly require to run in polynomial time 19 20

RL Undirected STCONN L RL NL Natural problem: Undirected STCONN: given an undirected graph G = (V, E), nodes s, t, is there a path from s t? Theorem: USTCONN RL. (Recall: STCONN is NL-complete) 21 Test in RL if path from s to t in graph G=(V, E) Proof sketch: (in Papadimitriou) add self-loop to each vertex (technical reasons) start at s, random walk 2 V E steps, accept if see t Lemma: expected return time for any node i (of degree d i ) is 2 E /d i suppose s=v 1, v 2,, v n =t is a path expected time from v i to v i+1 is (d i /2)(2 E /d i ) = E expected time to reach v n V E Pr[fail reach t in 2 V E steps] ½ (Note: Reingold 2005: USTCONN L) 22