Algorithmic Complexity Space Complexity

Total Page:16

File Type:pdf, Size:1020Kb

Algorithmic Complexity Space Complexity Université Paris 5 – René Descartes LIPADE Algorithmic Complexity Space Complexity Jean-Guy Mailly ([email protected]) 2017 Outline 1 Basics on Space Complexity Main Space Complexity Classes Deterministic and Non-Deterministic Space Space-Time Relations Determining Space Complexity Hardness and Completeness Well-Known Problems J.-G. Mailly | Complexity – Space Space Used by a Turing Machine 2 I If M is a Turing Machine and x an input word, the space used by M on x is the number of different squares visited by M during the computation. I For f : N ! N, we say that a Turing Machine M works with space O(f (n)) if I M stops for every input x I on every input x, M uses on x a space s(n) with s(n) 2 O(f (n)) J.-G. Mailly | Complexity – Space Space Complexity Classes 3 I For f : N ! N, DSPACE(f (n)) is the set of languages which are decided by a deterministic Turing Machine M working with space O(f (n)). I For f : N ! N, NSPACE(f (n)) is the set of languages which are decided by a non-deterministic Turing Machine M working with space O(f (n)). J.-G. Mailly | Complexity – Space Deterministic vs Non-Deterministic Space 4 Intuition: Non-determinism is not “so important” for space complexity::: Theorem [Savitch 1970] For all function f space-constructible, DSPACE(f (n)) ⊆ NSPACE(f (n)) ⊆ DSPACE(f (n)2) J.-G. Mailly | Complexity – Space Complement Classes 5 Proposition For all function f (n) space-constructible, DSPACE(f (n)) = CODSPACE(f (n)) Theorem [Immerman 1988, Szelepcsényi 1988] For all function f (n) ≥ log(n) space-constructible, NSPACE(f (n)) = CONSPACE(f (n)) J.-G. Mailly | Complexity – Space Outline 6 Basics on Space Complexity Main Space Complexity Classes Deterministic and Non-Deterministic Space Space-Time Relations Determining Space Complexity Hardness and Completeness Well-Known Problems J.-G. Mailly | Complexity – Space L ⊆ PSPACE Deterministic Space Complexity 7 I L = DSPACE(log(n)) is the class of decision problems that can be solved by a DTM using logarithmic space S k I PSPACE = k>0 DSPACE(n ) is the class of decision problems that can be solved by a DTM using polynomial space J.-G. Mailly | Complexity – Space Deterministic Space Complexity 7 I L = DSPACE(log(n)) is the class of decision problems that can be solved by a DTM using logarithmic space S k I PSPACE = k>0 DSPACE(n ) is the class of decision problems that can be solved by a DTM using polynomial space L ⊆ PSPACE J.-G. Mailly | Complexity – Space NL ⊆ NPSPACE Non-Deterministic Space Complexity 8 I NL = NSPACE(log(n)) is the class of decision problems that can be solved by a NDTM using logarithmic space S k I NPSPACE = k>0 NSPACE(n ) is the class of decision problems that can be solved by a NDTM using polynomial space J.-G. Mailly | Complexity – Space Non-Deterministic Space Complexity 8 I NL = NSPACE(log(n)) is the class of decision problems that can be solved by a NDTM using logarithmic space S k I NPSPACE = k>0 NSPACE(n ) is the class of decision problems that can be solved by a NDTM using polynomial space NL ⊆ NPSPACE J.-G. Mailly | Complexity – Space Proof: I For any k > 0, NSPACE(nk ) ⊆ DSPACE((nk )2) = DSPACE((n2k ) ⊆ PSPACE, so NPSPACE ⊆ PSPACE k k I For any k > 0, DSPACE(n ) ⊆ NSPACE(n ) ⊆ NPSPACE, so PSPACE ⊆ NPSPACE PSPACE vs NPSPACE 9 Proposition PSPACE = NPSPACE J.-G. Mailly | Complexity – Space PSPACE vs NPSPACE 9 Proposition PSPACE = NPSPACE Proof: I For any k > 0, NSPACE(nk ) ⊆ DSPACE((nk )2) = DSPACE((n2k ) ⊆ PSPACE, so NPSPACE ⊆ PSPACE k k I For any k > 0, DSPACE(n ) ⊆ NSPACE(n ) ⊆ NPSPACE, so PSPACE ⊆ NPSPACE J.-G. Mailly | Complexity – Space Corollary NP ⊆ PSPACE Relations Between Time and Space (1/3) 10 Proposition For any mapping f : N ! N, NTIME(f (n)) ⊆ DSPACE(f (n)) J.-G. Mailly | Complexity – Space Relations Between Time and Space (1/3) 10 Proposition For any mapping f : N ! N, NTIME(f (n)) ⊆ DSPACE(f (n)) Corollary NP ⊆ PSPACE J.-G. Mailly | Complexity – Space Relations Between Time and Space (2/3) 11 Polynomial Hierarchy vs Polynomial Space PH ⊆ PSPACE Intuition For each class of the polynomial hierharchy, there is a complete problem 8i QBF or 9i QBF. All these problems are special instances of TQBF, so they are in PSPACE. J.-G. Mailly | Complexity – Space Relations Between Time and Space (3/3) 12 P NP P Σ2 L ⊆ NL ⊆ P ⊆ coNP ⊆ ∆2 ⊆ P ⊆ · · · ⊆ PH ⊆ PSPACE ⊆ EXP ⊆ NEXP Π2 We also know that some inclusions are strict: I NL ⊂ PSPACE I P ⊂ EXP J.-G. Mailly | Complexity – Space Outline 13 Basics on Space Complexity Main Space Complexity Classes Deterministic and Non-Deterministic Space Space-Time Relations Determining Space Complexity Hardness and Completeness Well-Known Problems J.-G. Mailly | Complexity – Space 0 P I A problem P is C-hard if for every problem P’ in C, P ≤f P, i.e. there is a polynomial reduction from any problem in C to P I A problem is C-complete if it is in C and it is C-hard I This definition works for PSPACE-hardness and PSPACE-completeness I It does not work for L and NL Completeness for Space Complexity Classes 14 The notions of hardness and completeness exist for space complexity classes. I For most of the complexity classes, the definition is exactly the same as hardness and completeness for time complexity J.-G. Mailly | Complexity – Space I A problem is C-complete if it is in C and it is C-hard I This definition works for PSPACE-hardness and PSPACE-completeness I It does not work for L and NL Completeness for Space Complexity Classes 14 The notions of hardness and completeness exist for space complexity classes. I For most of the complexity classes, the definition is exactly the same as hardness and completeness for time complexity 0 P I A problem P is C-hard if for every problem P’ in C, P ≤f P, i.e. there is a polynomial reduction from any problem in C to P J.-G. Mailly | Complexity – Space I This definition works for PSPACE-hardness and PSPACE-completeness I It does not work for L and NL Completeness for Space Complexity Classes 14 The notions of hardness and completeness exist for space complexity classes. I For most of the complexity classes, the definition is exactly the same as hardness and completeness for time complexity 0 P I A problem P is C-hard if for every problem P’ in C, P ≤f P, i.e. there is a polynomial reduction from any problem in C to P I A problem is C-complete if it is in C and it is C-hard J.-G. Mailly | Complexity – Space I It does not work for L and NL Completeness for Space Complexity Classes 14 The notions of hardness and completeness exist for space complexity classes. I For most of the complexity classes, the definition is exactly the same as hardness and completeness for time complexity 0 P I A problem P is C-hard if for every problem P’ in C, P ≤f P, i.e. there is a polynomial reduction from any problem in C to P I A problem is C-complete if it is in C and it is C-hard I This definition works for PSPACE-hardness and PSPACE-completeness J.-G. Mailly | Complexity – Space Completeness for Space Complexity Classes 14 The notions of hardness and completeness exist for space complexity classes. I For most of the complexity classes, the definition is exactly the same as hardness and completeness for time complexity 0 P I A problem P is C-hard if for every problem P’ in C, P ≤f P, i.e. there is a polynomial reduction from any problem in C to P I A problem is C-complete if it is in C and it is C-hard I This definition works for PSPACE-hardness and PSPACE-completeness I It does not work for L and NL J.-G. Mailly | Complexity – Space L P Observation: If P1 ≤f P2, then P1 ≤f P2 NL-Hardness and NL-Completeness 0 0 L I A problem P is NL-hard iff 8P 2 NL, P ≤f P I A problem P is NL-complete iff P is NL-hard and P 2 L Logarithmic Space and Completeness 15 Logarithmic-Space Functional Reduction A logarithmic-space functional reduction f is a total computable function from a problem P1 to a problem P2 such that, for any instance i of P1, I f (i) can be computed in logarithmic-space in the size of i I i is a positive instance of P1 iff f (i) is a positive instance of P2 L Notation: P1 ≤f P2 J.-G. Mailly | Complexity – Space NL-Hardness and NL-Completeness 0 0 L I A problem P is NL-hard iff 8P 2 NL, P ≤f P I A problem P is NL-complete iff P is NL-hard and P 2 L Logarithmic Space and Completeness 15 Logarithmic-Space Functional Reduction A logarithmic-space functional reduction f is a total computable function from a problem P1 to a problem P2 such that, for any instance i of P1, I f (i) can be computed in logarithmic-space in the size of i I i is a positive instance of P1 iff f (i) is a positive instance of P2 L Notation: P1 ≤f P2 L P Observation: If P1 ≤f P2, then P1 ≤f P2 J.-G.
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]
  • Interactive Proof Systems and Alternating Time-Space Complexity
    Theoretical Computer Science 113 (1993) 55-73 55 Elsevier Interactive proof systems and alternating time-space complexity Lance Fortnow” and Carsten Lund** Department of Computer Science, Unicersity of Chicago. 1100 E. 58th Street, Chicago, IL 40637, USA Abstract Fortnow, L. and C. Lund, Interactive proof systems and alternating time-space complexity, Theoretical Computer Science 113 (1993) 55-73. We show a rough equivalence between alternating time-space complexity and a public-coin interactive proof system with the verifier having a polynomial-related time-space complexity. Special cases include the following: . All of NC has interactive proofs, with a log-space polynomial-time public-coin verifier vastly improving the best previous lower bound of LOGCFL for this model (Fortnow and Sipser, 1988). All languages in P have interactive proofs with a polynomial-time public-coin verifier using o(log’ n) space. l All exponential-time languages have interactive proof systems with public-coin polynomial-space exponential-time verifiers. To achieve better bounds, we show how to reduce a k-tape alternating Turing machine to a l-tape alternating Turing machine with only a constant factor increase in time and space. 1. Introduction In 1981, Chandra et al. [4] introduced alternating Turing machines, an extension of nondeterministic computation where the Turing machine can make both existential and universal moves. In 1985, Goldwasser et al. [lo] and Babai [l] introduced interactive proof systems, an extension of nondeterministic computation consisting of two players, an infinitely powerful prover and a probabilistic polynomial-time verifier. The prover will try to convince the verifier of the validity of some statement.
    [Show full text]
  • Sustained Space Complexity
    Sustained Space Complexity Jo¨elAlwen1;3, Jeremiah Blocki2, and Krzysztof Pietrzak1 1 IST Austria 2 Purdue University 3 Wickr Inc. Abstract. Memory-hard functions (MHF) are functions whose eval- uation cost is dominated by memory cost. MHFs are egalitarian, in the sense that evaluating them on dedicated hardware (like FPGAs or ASICs) is not much cheaper than on off-the-shelf hardware (like x86 CPUs). MHFs have interesting cryptographic applications, most notably to password hashing and securing blockchains. Alwen and Serbinenko [STOC'15] define the cumulative memory com- plexity (cmc) of a function as the sum (over all time-steps) of the amount of memory required to compute the function. They advocate that a good MHF must have high cmc. Unlike previous notions, cmc takes into ac- count that dedicated hardware might exploit amortization and paral- lelism. Still, cmc has been critizised as insufficient, as it fails to capture possible time-memory trade-offs; as memory cost doesn't scale linearly, functions with the same cmc could still have very different actual hard- ware cost. In this work we address this problem, and introduce the notion of sustained- memory complexity, which requires that any algorithm evaluating the function must use a large amount of memory for many steps. We con- struct functions (in the parallel random oracle model) whose sustained- memory complexity is almost optimal: our function can be evaluated using n steps and O(n= log(n)) memory, in each step making one query to the (fixed-input length) random oracle, while any algorithm that can make arbitrary many parallel queries to the random oracle, still needs Ω(n= log(n)) memory for Ω(n) steps.
    [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]
  • Arxiv:Quant-Ph/0202111V1 20 Feb 2002
    Quantum statistical zero-knowledge John Watrous Department of Computer Science University of Calgary Calgary, Alberta, Canada [email protected] February 19, 2002 Abstract In this paper we propose a definition for (honest verifier) quantum statistical zero-knowledge interactive proof systems and study the resulting complexity class, which we denote QSZK. We prove several facts regarding this class: The following natural problem is a complete promise problem for QSZK: given instructions • for preparing two mixed quantum states, are the states close together or far apart in the trace norm metric? By instructions for preparing a mixed quantum state we mean the description of a quantum circuit that produces the mixed state on some specified subset of its qubits, assuming all qubits are initially in the 0 state. This problem is a quantum generalization of the complete promise problem of Sahai| i and Vadhan [33] for (classical) statistical zero-knowledge. QSZK is closed under complement. • QSZK PSPACE. (At present it is not known if arbitrary quantum interactive proof • systems⊆ can be simulated in PSPACE, even for one-round proof systems.) Any honest verifier quantum statistical zero-knowledge proof system can be parallelized to • a two-message (i.e., one-round) honest verifier quantum statistical zero-knowledge proof arXiv:quant-ph/0202111v1 20 Feb 2002 system. (For arbitrary quantum interactive proof systems it is known how to parallelize to three messages, but not two.) Moreover, the one-round proof system can be taken to be such that the prover sends only one qubit to the verifier in order to achieve completeness and soundness error exponentially close to 0 and 1/2, respectively.
    [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]
  • Spring 2020 (Provide Proofs for All Answers) (120 Points Total)
    Complexity Qual Spring 2020 (provide proofs for all answers) (120 Points Total) 1 Problem 1: Formal Languages (30 Points Total): For each of the following languages, state and prove whether: (i) the lan- guage is regular, (ii) the language is context-free but not regular, or (iii) the language is non-context-free. n n Problem 1a (10 Points): La = f0 1 jn ≥ 0g (that is, the set of all binary strings consisting of 0's and then 1's where the number of 0's and 1's are equal). ∗ Problem 1b (10 Points): Lb = fw 2 f0; 1g jw has an even number of 0's and at least two 1'sg (that is, the set of all binary strings with an even number, including zero, of 0's and at least two 1's). n 2n 3n Problem 1c (10 Points): Lc = f0 #0 #0 jn ≥ 0g (that is, the set of all strings of the form 0 repeated n times, followed by the # symbol, followed by 0 repeated 2n times, followed by the # symbol, followed by 0 repeated 3n times). Problem 2: NP-Hardness (30 Points Total): There are a set of n people who are the vertices of an undirected graph G. There's an undirected edge between two people if they are enemies. Problem 2a (15 Points): The people must be assigned to the seats around a single large circular table. There are exactly as many seats as people (both n). We would like to make sure that nobody ever sits next to one of their enemies.
    [Show full text]
  • A Short History of Computational Complexity
    The Computational Complexity Column by Lance FORTNOW NEC Laboratories America 4 Independence Way, Princeton, NJ 08540, USA [email protected] http://www.neci.nj.nec.com/homepages/fortnow/beatcs Every third year the Conference on Computational Complexity is held in Europe and this summer the University of Aarhus (Denmark) will host the meeting July 7-10. More details at the conference web page http://www.computationalcomplexity.org This month we present a historical view of computational complexity written by Steve Homer and myself. This is a preliminary version of a chapter to be included in an upcoming North-Holland Handbook of the History of Mathematical Logic edited by Dirk van Dalen, John Dawson and Aki Kanamori. A Short History of Computational Complexity Lance Fortnow1 Steve Homer2 NEC Research Institute Computer Science Department 4 Independence Way Boston University Princeton, NJ 08540 111 Cummington Street Boston, MA 02215 1 Introduction It all started with a machine. In 1936, Turing developed his theoretical com- putational model. He based his model on how he perceived mathematicians think. As digital computers were developed in the 40's and 50's, the Turing machine proved itself as the right theoretical model for computation. Quickly though we discovered that the basic Turing machine model fails to account for the amount of time or memory needed by a computer, a critical issue today but even more so in those early days of computing. The key idea to measure time and space as a function of the length of the input came in the early 1960's by Hartmanis and Stearns.
    [Show full text]
  • Computability and Complexity Time and Space Complexity Definition Of
    Time and Space Complexity For practical solutions to computational problems available time, and Computability and Complexity available memory are two main considerations. Lecture 14 We have already studied time complexity, now we will focus on Space Complexity space (memory) complexity. Savitch’s Theorem Space Complexity Class PSPACE Question: How do we measure space complexity of a Turing machine? given by Jiri Srba Answer: The largest number of tape cells a Turing machine visits on all inputs of a given length n. Lecture 14 Computability and Complexity 1/15 Lecture 14 Computability and Complexity 2/15 Definition of Space Complexity The Complexity Classes SPACE and NSPACE Definition (Space Complexity of a TM) Definition (Complexity Class SPACE(t(n))) Let t : N R>0 be a function. Let M be a deterministic decider. The space complexity of M is a → function def SPACE(t(n)) = L(M) M is a decider running in space O(t(n)) f : N N → { | } where f (n) is the maximum number of tape cells that M scans on Definition (Complexity Class NSPACE(t(n))) any input of length n. Then we say that M runs in space f (n). Let t : N R>0 be a function. → def Definition (Space Complexity of a Nondeterministic TM) NSPACE(t(n)) = L(M) M is a nondetermin. decider running in space O(t(n)) Let M be a nondeterministic decider. The space complexity of M { | } is a function In other words: f : N N → SPACE(t(n)) is the class (collection) of languages that are where f (n) is the maximum number of tape cells that M scans on decidable by TMs running in space O(t(n)), and any branch of its computation on any input of length n.
    [Show full text]
  • Some Hardness Escalation Results in Computational Complexity Theory Pritish Kamath
    Some Hardness Escalation Results in Computational Complexity Theory by Pritish Kamath B.Tech. Indian Institute of Technology Bombay (2012) S.M. Massachusetts Institute of Technology (2015) Submitted to Department of Electrical Engineering and Computer Science in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Electrical Engineering & Computer Science at Massachusetts Institute of Technology February 2020 ⃝c Massachusetts Institute of Technology 2019. All rights reserved. Author: ............................................................. Department of Electrical Engineering and Computer Science September 16, 2019 Certified by: ............................................................. Ronitt Rubinfeld Professor of Electrical Engineering and Computer Science, MIT Thesis Supervisor Certified by: ............................................................. Madhu Sudan Gordon McKay Professor of Computer Science, Harvard University Thesis Supervisor Accepted by: ............................................................. Leslie A. Kolodziejski Professor of Electrical Engineering and Computer Science, MIT Chair, Department Committee on Graduate Students Some Hardness Escalation Results in Computational Complexity Theory by Pritish Kamath Submitted to Department of Electrical Engineering and Computer Science on September 16, 2019, in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Computer Science & Engineering Abstract In this thesis, we prove new hardness escalation results in computational complexity theory; a phenomenon where hardness results against seemingly weak models of computation for any problem can be lifted, in a black box manner, to much stronger models of computation by considering a simple gadget composed version of the original problem. For any unsatisfiable CNF formula F that is hard to refute in the Resolution proof system, we show that a gadget-composed version of F is hard to refute in any proof system whose lines are computed by efficient communication protocols.
    [Show full text]
  • Lecture 4: Space Complexity II: NL=Conl, Savitch's Theorem
    COM S 6810 Theory of Computing January 29, 2009 Lecture 4: Space Complexity II Instructor: Rafael Pass Scribe: Shuang Zhao 1 Recall from last lecture Definition 1 (SPACE, NSPACE) SPACE(S(n)) := Languages decidable by some TM using S(n) space; NSPACE(S(n)) := Languages decidable by some NTM using S(n) space. Definition 2 (PSPACE, NPSPACE) [ [ PSPACE := SPACE(nc), NPSPACE := NSPACE(nc). c>1 c>1 Definition 3 (L, NL) L := SPACE(log n), NL := NSPACE(log n). Theorem 1 SPACE(S(n)) ⊆ NSPACE(S(n)) ⊆ DTIME 2 O(S(n)) . This immediately gives that N L ⊆ P. Theorem 2 STCONN is NL-complete. 2 Today’s lecture Theorem 3 N L ⊆ SPACE(log2 n), namely STCONN can be solved in O(log2 n) space. Proof. Recall the STCONN problem: given digraph (V, E) and s, t ∈ V , determine if there exists a path from s to t. 4-1 Define boolean function Reach(u, v, k) with u, v ∈ V and k ∈ Z+ as follows: if there exists a path from u to v with length smaller than or equal to k, then Reach(u, v, k) = 1; otherwise Reach(u, v, k) = 0. It is easy to verify that there exists a path from s to t iff Reach(s, t, |V |) = 1. Next we show that Reach(s, t, |V |) can be recursively computed in O(log2 n) space. For all u, v ∈ V and k ∈ Z+: • k = 1: Reach(u, v, k) = 1 iff (u, v) ∈ E; • k > 1: Reach(u, v, k) = 1 iff there exists w ∈ V such that Reach(u, w, dk/2e) = 1 and Reach(w, v, bk/2c) = 1.
    [Show full text]
  • Computational Complexity Theory
    Computational Complexity Theory Markus Bl¨aser Universit¨atdes Saarlandes Draft|February 5, 2012 and forever 2 1 Simple lower bounds and gaps Lower bounds The hierarchy theorems of the previous chapter assure that there is, e.g., a language L 2 DTime(n6) that is not in DTime(n3). But this language is not natural.a But, for instance, we do not know how to show that 3SAT 2= DTime(n3). (Even worse, we do not know whether this is true.) The best we can show is that 3SAT cannot be decided by a O(n1:81) time bounded and simultaneously no(1) space bounded deterministic Turing machine. aThis, of course, depends on your interpretation of \natural" . In this chapter, we prove some simple lower bounds. The bounds in this section will be shown for natural problems. Furthermore, these bounds are unconditional. While showing the NP-hardness of some problem can be viewed as a lower bound, this bound relies on the assumption that P 6= NP. However, the bounds in this chapter will be rather weak. 1.1 A logarithmic space bound n n Let LEN = fa b j n 2 Ng. LEN is the language of all words that consists of a sequence of as followed by a sequence of b of equal length. This language is one of the examples for a context-free language that is not regular. We will show that LEN can be decided with logarithmic space and that this amount of space is also necessary. The first part is easy. Exercise 1.1 Prove: LEN 2 DSpace(log).
    [Show full text]