The Polynomial Hierarchy

Slides:



Advertisements
Similar presentations
Reductions Complexity ©D.Moshkovitz.
Advertisements

Complexity Theory Lecture 6
Isolation Technique April 16, 2001 Jason Ku Tao Li.
Lecture 16: Relativization Umans Complexity Theory Lecturess.
Dana Moshkovitz. Back to NP L  NP iff members have short, efficiently checkable, certificates of membership. Is  satisfiable?  x 1 = truex 11 = true.
Having Proofs for Incorrectness
Probabilistic algorithms Section 10.2 Giorgi Japaridze Theory of Computability.
Chernoff Bounds, and etc.
Complexity 18-1 Complexity Andrei Bulatov Probabilistic Algorithms.
1 Introduction to Computability Theory Lecture13: Mapping Reductions Prof. Amos Israeli.
BPP Contained in PH By Michael Sipser; Clemens Lautemann Clemens Lautemann Presenter: Jie Meng.
CS151 Complexity Theory Lecture 7 April 20, 2004.
Fall 2004COMP 3351 Recursively Enumerable and Recursive Languages.
Perfect and Statistical Secrecy, probabilistic algorithms, Definitions of Easy and Hard, 1-Way FN -- formal definition.
Randomized Computation Roni Parshani Orly Margalit Eran Mantzur Avi Mintz
Computability and Complexity 7-1 Computability and Complexity Andrei Bulatov Recursion Theorem.
1 Slides by Golan Weisz, Omer Ben Shalom Nir Ailon & Tal Moran Adapted from Oded Goldreich’s course lecture notes by Moshe Lewenstien, Yehuda Lindell.
Submitted by : Estrella Eisenberg Yair Kaufman Ohad Lipsky Riva Gonen Shalom.
Computability and Complexity 20-1 Computability and Complexity Andrei Bulatov Class NL.
Complexity ©D. Moshkovitz 1 And Randomized Computations The Polynomial Hierarchy.
The Polynomial Hierarchy By Moti Meir And Yitzhak Sapir Based on notes from lectures by Oded Goldreich taken by Ronen Mizrahi, and lectures by Ely Porat.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Approximation Algorithms Pages ADVANCED TOPICS IN COMPLEXITY THEORY.
February 18, 2015CS21 Lecture 181 CS21 Decidability and Tractability Lecture 18 February 18, 2015.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
1 2 Probabilistic Computations  Extend the notion of “efficient computation” beyond polynomial-time- Turing machines.  We will still consider only.
Computation Model and Complexity Class. 2 An algorithmic process that uses the result of a random draw to make an approximated decision has the ability.
. CLASSES RP AND ZPP By: SARIKA PAMMI. CONTENTS:  INTRODUCTION  RP  FACTS ABOUT RP  MONTE CARLO ALGORITHM  CO-RP  ZPP  FACTS ABOUT ZPP  RELATION.
Umans Complexity Theory Lectures Lecture 1a: Problems and Languages.
Fall 2013 CMU CS Computational Complexity Lectures 8-9 Randomness, communication, complexity of unique solutions These slides are mostly a resequencing.
1Computer Sciences Department. Book: INTRODUCTION TO THE THEORY OF COMPUTATION, SECOND EDITION, by: MICHAEL SIPSER Reference 3Computer Sciences Department.
1 Introduction to Quantum Information Processing CS 467 / CS 667 Phys 467 / Phys 767 C&O 481 / C&O 681 Richard Cleve DC 3524 Course.
Recursively Enumerable and Recursive Languages
Complexity ©D.Moshkovitz 1 Our First NP-Complete Problem The Cook-Levin theorem A B C.
1 Introduction to Quantum Information Processing QIC 710 / CS 667 / PH 767 / CO 681 / AM 871 Richard Cleve DC 2117 Lectures
1 Recursively Enumerable and Recursive Languages.
Recursively Enumerable and Recursive Languages. Definition: A language is recursively enumerable if some Turing machine accepts it.
Graphs 4/13/2018 5:25 AM Presentation for use with the textbook, Algorithm Design and Applications, by M. T. Goodrich and R. Tamassia, Wiley, 2015 NP-Completeness.
Umans Complexity Theory Lectures
NP-Completeness NP-Completeness Graphs 5/7/ :49 PM x x x x x x x
Probabilistic Algorithms
Recursively Enumerable and Recursive Languages
Linear Bounded Automata LBAs
Computational Complexity Theory
Umans Complexity Theory Lectures
Turing Machines Acceptors; Enumerators
NP-Completeness Yin Tat Lee
Intro to Theory of Computation
Intro to Theory of Computation
NP-Completeness NP-Completeness Graphs 11/16/2018 2:32 AM x x x x x x
NP-Completeness NP-Completeness Graphs 12/3/2018 2:46 AM x x x x x x x
Interactive Proofs Adapted from Oded Goldreich’s course lecture notes.
Turing acceptable languages and Enumerators
Computability and Complexity
CS154, Lecture 12: Time Complexity
Theory of Computability
Turing Machines Complexity ©D.Moshkovitz.
CS21 Decidability and Tractability
CSE 6408 Advanced Algorithms.
Interactive Proofs Adapted from Oded Goldreich’s course lecture notes.
CS21 Decidability and Tractability
Our First NP-Complete Problem
The Polynomial Hierarchy
Reductions Complexity ©D.Moshkovitz.
Reductions Complexity ©D.Moshkovitz.
CS151 Complexity Theory Lecture 7 April 23, 2019.
CS151 Complexity Theory Lecture 12 May 10, 2019.
Theory of Computability
Probabilistic Complexity
Interactive Proofs Adapted from Oded Goldreich’s course lecture notes.
Presentation transcript:

The Polynomial Hierarchy And Randomized Computations Complexity ©D. Moshkovitz

Introduction Objectives: To introduce the polynomial-time hierarchy (PH) To introduce BPP To show the relationship between the two Overview: satisfiability and PH probabilistic TMs and BPP BPP2 Complexity ©D. Moshkovitz

Deciding Satifiability We’ve already seen, that deciding whether a formula is satisfiable… x1 …xn(x1x2x8)… (x6x3) x1x2x3… [(x1x2x8)…(x6x3)] only existential quantifier existential & universal quantifiers PSPACE-complete NP-complete Complexity ©D. Moshkovitz

Technical Note x1x2…xk is the same as x=<x1,x2,…,xk> Thus, allowing several adjacent quantifiers of the same type does not change the problem. Complexity ©D. Moshkovitz

i alternating quantifiers The Hierarchy Definition (i): i is the class of all languages reducible to deciding the sat. of a formula of type: x1x2 x3… R(x1,x2,x3,…) i alternating quantifiers Complexity ©D. Moshkovitz

i alternating quantifiers The Hierarchy Definition (i): i is the class of all languages reducible to deciding the sat. of a formula of type: x1x2x3… R(x1,x2,x3,…) i alternating quantifiers Complexity ©D. Moshkovitz

PH (Polynomial-time Hierarchy) Definition: PH = i i Complexity ©D. Moshkovitz

Simple Observations “base”: 1=NP “connection between  and ”: i=coi “hierarchy”: ii+1 and ii+1 “upper bound”: PHPSPACE Complexity ©D. Moshkovitz

Can the Hierarchy Collapse? Proposition: If NP=coNP, then PH=NP. Proof Idea: By induction on i, i=NP. Complexity ©D. Moshkovitz

Probabilistic Turing Machines Probabilistic TMs have an “extra” tape: the random tape “standard” TMs probabilistic TMs M(x) Prr[M(x,r)] content of input tape content of random tape Complexity ©D. Moshkovitz

Does It Really Capture The Notion of Randomized Algorithms? It doesn’t matter if you toss all your coins in advance or throughout the computation… Complexity ©D. Moshkovitz

BPP (Bounded-Probability Polynomial-Time) Definition: BPP is the class of all languages L which have a probabilistic polynomial time TM M, s.t x Prr[M(x,r) = L(x)]  2/3 L(x)=1  xL such TMs are called ‘Atlantic City’ Complexity ©D. Moshkovitz

random strings for which M is right BPP Illustrated Note: TMs which are right for most x’s (e.g for PRIMES: always say ‘NO’) are NOT acceptable! For any input x, all random strings random strings for which M is right Complexity ©D. Moshkovitz

We can get better amplifications, but this will suffice here... Claim: If LBPP, then there exists a probabilistic polynomial TM M’, and a polynomial p(n) s.t x{0,1}n Prr{0,1}p(n)[M’(x,r)L(x)] < 1/(3p(n)) We can get better amplifications, but this will suffice here... Complexity ©D. Moshkovitz

Proof Idea Repeat Output the majority answer M(x,r) Repeat Pick r uniformly at random Simulate M(x,r) Output the majority answer 0111001 Yes 1011100 Yes 0001001 No 1100000 Yes 0010011 No 0110001 Yes Complexity ©D. Moshkovitz

ignore the random input Relations to P and NP ? P  BPP  NP ignore the random input Complexity ©D. Moshkovitz

Does BPPNP? We may have considered saying: “Use the random string as a witness” Why is that wrong? Because non-members may be recognized as members Complexity ©D. Moshkovitz

Make sure you understand why the theorem follows “Some Comfort” Theorem (Sipser,Lautemann): BPP2 Underlying observation: LBPP  there exists a poly. probabilistic TM M, s.t for any n and x{0,1}n let m=p(n) s.t xL  s1,…,sm{0,1}m r{0,1}m 1imM(x,rsi)=1 Make sure you understand why the theorem follows Complexity ©D. Moshkovitz

Yes-instance {0, 1}m Complexity ©D. Moshkovitz

No-instance {0, 1}m Complexity ©D. Moshkovitz

false for less than 1/3m of the r’s Our Starting Point m bits n bits M x r xL? LBPP By amplification, there’s a poly-time machine M which uses m random coins errs w.p < 1/3m false for less than 1/3m of the r’s Complexity ©D. Moshkovitz

Proving the Underlying Observation We will follow the Probabilistic Method Prr[r has property P] > 0   r with property P Complexity ©D. Moshkovitz

Yes-Instances Accepted Let xL. We want s1,…,sm{0,1}m s.t r{0,1}m 1imM(x,rsi)=1 So we’ll bound the probability over si’s that it doesn’t hold. Complexity ©D. Moshkovitz

Bounding The Probability Random si’s Do Not Satisfy This union-bound si’s independent r: s is random  rs is random xL Complexity ©D. Moshkovitz

No-Instances Rejected Let xL. Let s1,…,sm{0,1}m . We want r{0,1}m s.t 1imM(x,rsi)=0 So we’ll bound the probability over r that it doesn’t hold. Complexity ©D. Moshkovitz

Bounding The Probability Random r Does Not Satisfy This union-bound xL Complexity ©D. Moshkovitz

Q.E.D! It follows that: LBPP  there’s a poly. prob. TM M, s.t for any x there is m s.t xL  s1,…,sm r 1imM(x,rsi)=1 Thus, L2  BPP2 Complexity ©D. Moshkovitz

 Summary We defined the polynomial-time hierarchy Saw NP  PH  PSPACE NP=coNP  PH=NP (“the hierarchy collapses”) Complexity ©D. Moshkovitz

 Summary We presented probabilistic TMs We defined the complexity class BPP We saw how to amplify randomized computations We proved P  BPP  2 Complexity ©D. Moshkovitz

 Summary We also presented a new paradigm for proving existence utilizing the algebraic tools of probability theory Prr[r has property P] > 0   r with property P The probabilistic method Complexity ©D. Moshkovitz