CS332 Elements of Theory of Computation

Total Page:16

File Type:pdf, Size:1020Kb

CS332 Elements of Theory of Computation Intro to Theory of Computation LECTURE 26 Last time • Space complexity • The class PSPACE Today • PSPACE-completeness • Hierarchy theorems Sofya Raskhodnikova Review question Let 푓(푛) be a function, where 푓 푛 ≥ 푛. If a language A is decided by a NTM that runs in space 풇(풏) then A is decided by a TM that runs in space O(풇ퟐ(풏)). A. True B. False C. Unknown D. None of the above 12/5/2019 L26.2 Review question Relationships between the following classes are an open question EXPTIME A. P vs NP NP PSPACE = B. P vs PSPACE P NPSPACE C. NP vs EXPTIME D. All of the above E. All of the above and P vs EXPTIME 12/5/2019 L26.3 Hardest problems in PSPACE A language B is PSPACE-complete if 1. B∈ 퐏퐒퐏퐀퐂퐄 2. B is PSPACE-hard,i.e., every language in PSPACE is poly-time reducible to B. P PSPACE B 12/5/2019 L26.4 The TQBF problem • Boolean variables: variables that can take on values T/F (or 1/0) • Boolean operations: ∨, ∧, and ¬ • Boolean formula: expression with Boolean variables and ops • Quantified Boolean formula: Boolean formula with quantifiers (∀, ∃) • Fully Quantified Boolean formula: all variables have quantifiers (∀, ∃) We only consider the form where all quantifiers appear in the beginning. Ex. ∀푥∃푦[ 푥 ∨ 푦 ∧ 푥 ∨ 푦 ] True ∃푦∀푥 [ 푥 ∨ 푦 ∧ 푥 ∨ 푦 ] False • Each fully quantified Boolean formula is either true or false. • The order of quantifiers matters! TQBF = {〈흓〉 ∣ 흓 is a true fully quantified Boolean formula} 12/5/2019 L26.5 TQBF is PSPACE-complete 1. TQBF is in PSPACE 2. TQBF is PSPACE-hard 12/5/2019 L26.6 Prove: T퐐퐁퐅 ∈ PSPACE T = `` On input 〈흓〉, where 흓 is a fully quantified Boolean formula: 1. If 흓 has no quantifiers, it has only constants (and no variables). Evaluate 흓. If true, accept; o.w., reject. 2. If 흓 is of the form ∃풙 흍, recursively call T on 흍 with 풙 = ퟎ and then on 흍 with 풙 = ퟏ. If either call accepts, accept; o.w., reject. 3. If 흓 is of the form ∀풙 흍, recursively call T on 흍 with 풙 = ퟎ and then on 흍 with 풙 = ퟏ. If both calls accept, accept; o.w., reject.’’ • If 푛 is the input length, T uses space 푂 푛 . 12/5/2019 L26.7 Question If TQBF is in P then it implies that A. P = NP EXPTIME B. P = PSPACE C. P = EXPTIME NP PSPACE D. (A) and (B) are true = P NPSPACE E. (A), (B), (C) are true 12/5/2019 L26.8 TQBF as a game • Two players: E (for ∃) and A (for ∀) • Given: a quantified Boolean formula • Players alternate choosing values for variables (in the same order as the quantifiers appear). • E wins if the formula evaluates to 1. • Does E have a winning strategy in the game? (Can she win if both E and A play optimally?) 12/5/2019 L26.9 Winning strategies for games Determining whether there is a winning strategy for a specified game position is hard for many games • Generalized Geography is PSPACE-complete • Generalized Chess is EXPTIME-complete 12/5/2019 L26.10 recognizable Generalized decidable Chess Generalized EXPSPACE Geography EXPTIME TQBF PSPACE=NPSPACE NP coNP P CFL regular Hardest problems in EXPSPACE A language B is EXPSPACE-complete if 1. B∈ 퐄퐗퐏퐒퐏퐀퐂퐄 2. B is EXPSPACE-hard,i.e., every language in EXPSPACE is poly-time reducible to B. P EXPSPACE B The 퐸푄푹푬푿↑ problem • Regular operations: ∪, ∘, ∗ • Regular expressions: use regular operations, ∅, 휺, 횺, members of 횺 • We can test equivalence of two regular expressions in poly space • Exponentiation operation: 푅푘 = 푅 ↑ 푘 = 푅 ∘ ⋯ ∘ 푅 (푘 times) 퐸푄푹푬푿↑ = {〈푸, 푹〉 ∣ 푸 and R are equivalent regular expressions with exponentiation} 퐸푄푹푬푿↑ is EXPSPACE-complete. 12/5/2019 recognizable 퐸푄푹푬푿↑ Generalized decidable Chess Generalized EXPSPACE Geography EXPTIME PSPACE=NPSPACE NP coNP P CFL regular Motivating question Is there a decidable language which is provably not in P? 12/5/2019 L26.15 Hierarchy Theorems A function 푓: ℕ → ℕ is space constructible if the function that maps the string 1푛 to the binary representation of 푓(푛) is computable in space 푂 푓 푛 . • Fractional functions are rounded down. 2 푛 • Examples: log2 푛 , 푛, 푛 log2 푛, 푛 , 2 , all commonly occurring functions that are Ω(log 푛) 12/5/2019 L26.16 Hierarchy Theorems Space Hierarchy Theorem For any space constructible function 푓, a language exists that is decidable in 푂 푓 푛 space, but not in 표(푓 푛 ) space. • Corollary 1: For all 훼, 훽 ≥ 0, where 훼 < 훽, SPACE(푛훼) is a strict subset of SPACE(푛훽). • Corollary 2: PSPACE is a strict subset of EXPSPACE, where 푛푘 EXPSPACE=⋃푘푆푃퐴퐶퐸(2 ) • Corollary 3: 퐸푄푹푬푿↑ is not in PSPACE. 12/5/2019 L26.17 Hierarchy Theorems A function 푓: ℕ → ℕ is time constructible if the function that maps the string 1푛 to the binary representation of 푓(푛) is computable in time 푂 푓 푛 . • Fractional functions are rounded down. 2 푛 • Examples: 푛 log2 푛, 푛 , 2 , all commonly occurring functions that are Ω(푛 log 푛) 12/5/2019 L26.18 Hierarchy Theorems Time Hierarchy Theorem For any time constructible function 푓, a language exists that is decidable in 푂 푓 푛 time, 푓 푛 but not in 표 time. log 푓 푛 • Corollary 1: For all 훼, 훽 ≥ 0, where 훼 < 훽, TIME(푛훼) is a strict subset of TIME(푛훽). • Corollary 2: P is a strict subset of EXPTIME • Corollary 3: Generalized Chess is not in P. 12/5/2019 L26.19 Review question 3SAT is decidable, but not in polynomial time. A. True B. False C. Unknown D. None of the above 3/17/2016 L29.20 Review question 푬푸푹푬푿↑ is decidable, but not in polynomial time. A. True B. False C. Unknown D. None of the above 3/17/2016 L29.21 Review question 푨푻푴 is decidable, but not in polynomial time. A. True B. False C. Unknown D. None of the above 3/17/2016 L29.22 recognizable 퐸푄푹푬푿↑ 퐸푄푻푴 Generalized decidable Chess 퐴푻푴 Generalized EXPSPACE Geography EXPTIME PSPACE=NPSPACE NP coNP P CFL regular 퐂퐨퐦퐩퐥퐞퐭퐞 recognizable languages decidable 푬푸푹푬푿↑ EXPSPACE 푻푸푩푭 EXPTIME PSPACE=NPSPACE NP coNP P ퟑ푺푨푻 CFL ퟑ푺푨푻 CLIQUE regular 푪푳푰푸푼푬 HamPath 퐇퐚퐦퐏퐚퐭퐡 SubsetSum VertexCover Course parts 1. Automata theory 2. Computability theory 3. Complexity theory 12/5/2019 L30.25.
Recommended publications
  • CS601 DTIME and DSPACE Lecture 5 Time and Space Functions: T, S
    CS601 DTIME and DSPACE Lecture 5 Time and Space functions: t, s : N → N+ Definition 5.1 A set A ⊆ U is in DTIME[t(n)] iff there exists a deterministic, multi-tape TM, M, and a constant c, such that, 1. A = L(M) ≡ w ∈ U M(w)=1 , and 2. ∀w ∈ U, M(w) halts within c · t(|w|) steps. Definition 5.2 A set A ⊆ U is in DSPACE[s(n)] iff there exists a deterministic, multi-tape TM, M, and a constant c, such that, 1. A = L(M), and 2. ∀w ∈ U, M(w) uses at most c · s(|w|) work-tape cells. (Input tape is “read-only” and not counted as space used.) Example: PALINDROMES ∈ DTIME[n], DSPACE[n]. In fact, PALINDROMES ∈ DSPACE[log n]. [Exercise] 1 CS601 F(DTIME) and F(DSPACE) Lecture 5 Definition 5.3 f : U → U is in F (DTIME[t(n)]) iff there exists a deterministic, multi-tape TM, M, and a constant c, such that, 1. f = M(·); 2. ∀w ∈ U, M(w) halts within c · t(|w|) steps; 3. |f(w)|≤|w|O(1), i.e., f is polynomially bounded. Definition 5.4 f : U → U is in F (DSPACE[s(n)]) iff there exists a deterministic, multi-tape TM, M, and a constant c, such that, 1. f = M(·); 2. ∀w ∈ U, M(w) uses at most c · s(|w|) work-tape cells; 3. |f(w)|≤|w|O(1), i.e., f is polynomially bounded. (Input tape is “read-only”; Output tape is “write-only”.
    [Show full text]
  • Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University
    Jonas Kvarnström Automated Planning Group Department of Computer and Information Science Linköping University What is the complexity of plan generation? . How much time and space (memory) do we need? Vague question – let’s try to be more specific… . Assume an infinite set of problem instances ▪ For example, “all classical planning problems” . Analyze all possible algorithms in terms of asymptotic worst case complexity . What is the lowest worst case complexity we can achieve? . What is asymptotic complexity? ▪ An algorithm is in O(f(n)) if there is an algorithm for which there exists a fixed constant c such that for all n, the time to solve an instance of size n is at most c * f(n) . Example: Sorting is in O(n log n), So sorting is also in O( ), ▪ We can find an algorithm in O( ), and so on. for which there is a fixed constant c such that for all n, If we can do it in “at most ”, the time to sort n elements we can do it in “at most ”. is at most c * n log n Some problem instances might be solved faster! If the list happens to be sorted already, we might finish in linear time: O(n) But for the entire set of problems, our guarantee is O(n log n) So what is “a planning problem of size n”? Real World + current problem Abstraction Language L Approximation Planning Problem Problem Statement Equivalence P = (, s0, Sg) P=(O,s0,g) The input to a planner Planner is a problem statement The size of the problem statement depends on the representation! Plan a1, a2, …, an PDDL: How many characters are there in the domain and problem files? Now: The complexity of PLAN-EXISTENCE .
    [Show full text]
  • Hierarchy Theorems
    Hierarchy Theorems Peter Mayr Computability Theory, April 14, 2021 So far we proved the following inclusions: L ⊆ NL ⊆ P ⊆ NP ⊆ PSPACE ⊆ EXPTIME ⊆ EXPSPACE Question Which are proper? Space constructible functions In simulations we often want to fix s(n) space on the working tape before starting the actual computation without accruing any overhead in space complexity. Definition s(n) ≥ log(n) is space constructible if there exists N 2 N and a DTM with input tape that on any input of length n ≥ N uses and marks off s(n) cells on its working tape and halts. Note Equivalently, s(n) is space constructible iff there exists a DTM with input and output that on input 1n computes s(n) in space O(s(n)). Example log n; nk ; 2n are space constructible. E.g. log2 n space is constructed by counting the length n of the input in binary. Little o-notation Definition + For f ; g : N ! R we say f = o(g) (read f is little-o of g) if f (n) lim = 0: n!1 g(n) Intuitively: g grows much faster than f . Note I f = o(g) ) f = O(g), but not conversely. I f 6= o(f ) Separating space complexity classes Space Hierarchy Theorem Let s(n) be space constructible and r(n) = o(s(n)). Then DSPACE(r(n)) ( DSPACE(s(n)). Proof. Construct L 2 DSPACE(s(n))nDSPACE(r(n)) by diagonalization. Define DTM D such that on input x of length n: 1. D marks s(n) space on working tape.
    [Show full text]
  • EXPSPACE-Hardness of Behavioural Equivalences of Succinct One
    EXPSPACE-hardness of behavioural equivalences of succinct one-counter nets Petr Janˇcar1 Petr Osiˇcka1 Zdenˇek Sawa2 1Dept of Comp. Sci., Faculty of Science, Palack´yUniv. Olomouc, Czech Rep. [email protected], [email protected] 2Dept of Comp. Sci., FEI, Techn. Univ. Ostrava, Czech Rep. [email protected] Abstract We note that the remarkable EXPSPACE-hardness result in [G¨oller, Haase, Ouaknine, Worrell, ICALP 2010] ([GHOW10] for short) allows us to answer an open complexity ques- tion for simulation preorder of succinct one counter nets (i.e., one counter automata with no zero tests where counter increments and decrements are integers written in binary). This problem, as well as bisimulation equivalence, turn out to be EXPSPACE-complete. The technique of [GHOW10] was referred to by Hunter [RP 2015] for deriving EXPSPACE-hardness of reachability games on succinct one-counter nets. We first give a direct self-contained EXPSPACE-hardness proof for such reachability games (by adjust- ing a known PSPACE-hardness proof for emptiness of alternating finite automata with one-letter alphabet); then we reduce reachability games to (bi)simulation games by using a standard “defender-choice” technique. 1 Introduction arXiv:1801.01073v1 [cs.LO] 3 Jan 2018 We concentrate on our contribution, without giving a broader overview of the area here. A remarkable result by G¨oller, Haase, Ouaknine, Worrell [2] shows that model checking a fixed CTL formula on succinct one-counter automata (where counter increments and decre- ments are integers written in binary) is EXPSPACE-hard. Their proof is interesting and nontrivial, and uses two involved results from complexity theory.
    [Show full text]
  • Computational Complexity: a Modern Approach
    i Computational Complexity: A Modern Approach Draft of a book: Dated January 2007 Comments welcome! Sanjeev Arora and Boaz Barak Princeton University [email protected] Not to be reproduced or distributed without the authors’ permission This is an Internet draft. Some chapters are more finished than others. References and attributions are very preliminary and we apologize in advance for any omissions (but hope you will nevertheless point them out to us). Please send us bugs, typos, missing references or general comments to [email protected] — Thank You!! DRAFT ii DRAFT Chapter 9 Complexity of counting “It is an empirical fact that for many combinatorial problems the detection of the existence of a solution is easy, yet no computationally efficient method is known for counting their number.... for a variety of problems this phenomenon can be explained.” L. Valiant 1979 The class NP captures the difficulty of finding certificates. However, in many contexts, one is interested not just in a single certificate, but actually counting the number of certificates. This chapter studies #P, (pronounced “sharp p”), a complexity class that captures this notion. Counting problems arise in diverse fields, often in situations having to do with estimations of probability. Examples include statistical estimation, statistical physics, network design, and more. Counting problems are also studied in a field of mathematics called enumerative combinatorics, which tries to obtain closed-form mathematical expressions for counting problems. To give an example, in the 19th century Kirchoff showed how to count the number of spanning trees in a graph using a simple determinant computation. Results in this chapter will show that for many natural counting problems, such efficiently computable expressions are unlikely to exist.
    [Show full text]
  • The Complexity Zoo
    The Complexity Zoo Scott Aaronson www.ScottAaronson.com LATEX Translation by Chris Bourke [email protected] 417 classes and counting 1 Contents 1 About This Document 3 2 Introductory Essay 4 2.1 Recommended Further Reading ......................... 4 2.2 Other Theory Compendia ............................ 5 2.3 Errors? ....................................... 5 3 Pronunciation Guide 6 4 Complexity Classes 10 5 Special Zoo Exhibit: Classes of Quantum States and Probability Distribu- tions 110 6 Acknowledgements 116 7 Bibliography 117 2 1 About This Document What is this? Well its a PDF version of the website www.ComplexityZoo.com typeset in LATEX using the complexity package. Well, what’s that? The original Complexity Zoo is a website created by Scott Aaronson which contains a (more or less) comprehensive list of Complexity Classes studied in the area of theoretical computer science known as Computa- tional Complexity. I took on the (mostly painless, thank god for regular expressions) task of translating the Zoo’s HTML code to LATEX for two reasons. First, as a regular Zoo patron, I thought, “what better way to honor such an endeavor than to spruce up the cages a bit and typeset them all in beautiful LATEX.” Second, I thought it would be a perfect project to develop complexity, a LATEX pack- age I’ve created that defines commands to typeset (almost) all of the complexity classes you’ll find here (along with some handy options that allow you to conveniently change the fonts with a single option parameters). To get the package, visit my own home page at http://www.cse.unl.edu/~cbourke/.
    [Show full text]
  • Lecture 9 1 Interactive Proof Systems/Protocols
    CS 282A/MATH 209A: Foundations of Cryptography Prof. Rafail Ostrovsky Lecture 9 Lecture date: March 7-9, 2005 Scribe: S. Bhattacharyya, R. Deak, P. Mirzadeh 1 Interactive Proof Systems/Protocols 1.1 Introduction The traditional mathematical notion of a proof is a simple passive protocol in which a prover P outputs a complete proof to a verifier V who decides on its validity. The interaction in this traditional sense is minimal and one-way, prover → verifier. The observation has been made that allowing the verifier to interact with the prover can have advantages, for example proving the assertion faster or proving more expressive languages. This extension allows for the idea of interactive proof systems (protocols). The general framework of the interactive proof system (protocol) involves a prover P with an exponential amount of time (computationally unbounded) and a verifier V with a polyno- mial amount of time. Both P and V exchange multiple messages (challenges and responses), usually dependent upon outcomes of fair coin tosses which they may or may not share. It is easy to see that since V is a poly-time machine (PPT), only a polynomial number of messages may be exchanged between the two. P ’s objective is to convince (prove to) the verifier the truth of an assertion, e.g., claimed knowledge of a proof that x ∈ L. V either accepts or rejects the interaction with the P . 1.2 Definition of Interactive Proof Systems An interactive proof system for a language L is a protocol PV for communication between a computationally unbounded (exponential time) machine P and a probabilistic poly-time (PPT) machine V such that the protocol satisfies the properties of completeness and sound- ness.
    [Show full text]
  • Complexity Theory
    Complexity Theory Course Notes Sebastiaan A. Terwijn Radboud University Nijmegen Department of Mathematics P.O. Box 9010 6500 GL Nijmegen the Netherlands [email protected] Copyright c 2010 by Sebastiaan A. Terwijn Version: December 2017 ii Contents 1 Introduction 1 1.1 Complexity theory . .1 1.2 Preliminaries . .1 1.3 Turing machines . .2 1.4 Big O and small o .........................3 1.5 Logic . .3 1.6 Number theory . .4 1.7 Exercises . .5 2 Basics 6 2.1 Time and space bounds . .6 2.2 Inclusions between classes . .7 2.3 Hierarchy theorems . .8 2.4 Central complexity classes . 10 2.5 Problems from logic, algebra, and graph theory . 11 2.6 The Immerman-Szelepcs´enyi Theorem . 12 2.7 Exercises . 14 3 Reductions and completeness 16 3.1 Many-one reductions . 16 3.2 NP-complete problems . 18 3.3 More decision problems from logic . 19 3.4 Completeness of Hamilton path and TSP . 22 3.5 Exercises . 24 4 Relativized computation and the polynomial hierarchy 27 4.1 Relativized computation . 27 4.2 The Polynomial Hierarchy . 28 4.3 Relativization . 31 4.4 Exercises . 32 iii 5 Diagonalization 34 5.1 The Halting Problem . 34 5.2 Intermediate sets . 34 5.3 Oracle separations . 36 5.4 Many-one versus Turing reductions . 38 5.5 Sparse sets . 38 5.6 The Gap Theorem . 40 5.7 The Speed-Up Theorem . 41 5.8 Exercises . 43 6 Randomized computation 45 6.1 Probabilistic classes . 45 6.2 More about BPP . 48 6.3 The classes RP and ZPP .
    [Show full text]
  • 5.2 Intractable Problems -- NP Problems
    Algorithms for Data Processing Lecture VIII: Intractable Problems–NP Problems Alessandro Artale Free University of Bozen-Bolzano [email protected] of Computer Science http://www.inf.unibz.it/˜artale 2019/20 – First Semester MSc in Computational Data Science — UNIBZ Some material (text, figures) displayed in these slides is courtesy of: Alberto Montresor, Werner Nutt, Kevin Wayne, Jon Kleinberg, Eva Tardos. A. Artale Algorithms for Data Processing Definition. P = set of decision problems for which there exists a poly-time algorithm. Problems and Algorithms – Decision Problems The Complexity Theory considers so called Decision Problems. • s Decision• Problem. X Input encoded asX a finite“yes” binary string ; • Decision ProblemA : Is conceived asX a set of strings on whichs the answer to the decision problem is ; yes if s ∈ X Algorithm for a decision problemA s receives an input string , and no if s 6∈ X ( ) = A. Artale Algorithms for Data Processing Problems and Algorithms – Decision Problems The Complexity Theory considers so called Decision Problems. • s Decision• Problem. X Input encoded asX a finite“yes” binary string ; • Decision ProblemA : Is conceived asX a set of strings on whichs the answer to the decision problem is ; yes if s ∈ X Algorithm for a decision problemA s receives an input string , and no if s 6∈ X ( ) = Definition. P = set of decision problems for which there exists a poly-time algorithm. A. Artale Algorithms for Data Processing Towards NP — Efficient Verification • • The issue here is the3-SAT contrast between finding a solution Vs. checking a proposed solution.I ConsiderI for example : We do not know a polynomial-time algorithm to find solutions; but Checking a proposed solution can be easily done in polynomial time (just plug 0/1 and check if it is a solution).
    [Show full text]
  • Computational Complexity Theory
    500 COMPUTATIONAL COMPLEXITY THEORY A. M. Turing, Collected Works: Mathematical Logic, R. O. Gandy and C. E. M. Yates (eds.), Amsterdam, The Nethrelands: Elsevier, Amsterdam, New York, Oxford, 2001. S. BARRY COOPER University of Leeds Leeds, United Kingdom COMPUTATIONAL COMPLEXITY THEORY Complexity theory is the part of theoretical computer science that attempts to prove that certain transformations from input to output are impossible to compute using a reasonable amount of resources. Theorem 1 below illus- trates the type of ‘‘impossibility’’ proof that can sometimes be obtained (1); it talks about the problem of determining whether a logic formula in a certain formalism (abbreviated WS1S) is true. Theorem 1. Any circuit of AND,OR, and NOT gates that takes as input a WS1S formula of 610 symbols and outputs a bit that says whether the formula is true must have at least 10125gates. This is a very compelling argument that no such circuit will ever be built; if the gates were each as small as a proton, such a circuit would fill a sphere having a diameter of 40 billion light years! Many people conjecture that somewhat similar intractability statements hold for the problem of factoring 1000-bit integers; many public-key cryptosys- tems are based on just such assumptions. It is important to point out that Theorem 1 is specific to a particular circuit technology; to prove that there is no efficient way to compute a function, it is necessary to be specific about what is performing the computation. Theorem 1 is a compelling proof of intractability precisely because every deterministic computer that can be pur- Yu.
    [Show full text]
  • Lecture 10: Space Complexity III
    Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Lecture 10: Space Complexity III Arijit Bishnu 27.03.2010 Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Outline 1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Outline 1 Space Complexity Classes: NL and L 2 Reductions 3 NL-completeness 4 The Relation between NL and coNL 5 A Relation Among the Complexity Classes Definition for Recapitulation S c NPSPACE = c>0 NSPACE(n ). The class NPSPACE is an analog of the class NP. Definition L = SPACE(log n). Definition NL = NSPACE(log n). Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Space Complexity Classes Definition for Recapitulation S c PSPACE = c>0 SPACE(n ). The class PSPACE is an analog of the class P. Definition L = SPACE(log n). Definition NL = NSPACE(log n). Space Complexity Classes: NL and L Reductions NL-completeness The Relation between NL and coNL A Relation Among the Complexity Classes Space Complexity Classes Definition for Recapitulation S c PSPACE = c>0 SPACE(n ). The class PSPACE is an analog of the class P. Definition for Recapitulation S c NPSPACE = c>0 NSPACE(n ).
    [Show full text]
  • CSE200 Lecture Notes – Space Complexity
    CSE200 Lecture Notes – Space Complexity Lecture by Russell Impagliazzo Notes by Jiawei Gao February 23, 2016 Motivations for space-bounded computation: Memory is an important resource. • Space classes characterize the difficulty of important problems • Cautionary tale – sometimes, things don’t work out like we expected. • We adopt the following conventions: Input tape: read only, doesn’t count. • Output tape: (for functions) write only, doesn’t count. • Work tapes: read, write, counts. • Definition 1. SPACE(S(n)) (or DSPACE(S(n))) is the class of problems solvable by deterministic TM using O(S(n)) memory locations. NSPACE(S(n)) is the class of problems solvable by nondeterministic TM using O(S(n)) memory locations. co-NSPACE(S(n)) = L L NSPACE(S(n)) . f j 2 g Definition 2. S k PSPACE = k SPACE(n ) L = SPACE(log n) NL = NSPACE(log n) Why aren’t we interested in space complexity below logaritimic space? Because on inputs of length n, we need log space to keep track of memory addresses / tape positions. Similar as time complexity, there is a hierarchy theorem is space complexity. Theorem 3 (Space Hierarchy Theorem). If S1(n) and S2(n) are space-computable, and S1(n) = o(S2(n)), then SPACE(S1(n)) SPACE(S2(n)) The Space Hierarchy theorem( is “nicer” than the Time Hierarchy Theorem, because it just needs S1(n) = o(S2(n)), instead of a log factor in the Time Hierarchy Theorem. It’s proved by a straightforward diagonalization method. 1 CSE 200 Winter 2016 1 Space complexity vs. time complexity Definition 4.
    [Show full text]