Separating Complexity Classes Using Autoreducibility

Total Page:16

File Type:pdf, Size:1020Kb

Separating Complexity Classes Using Autoreducibility Separating Complexity Classes using Autoreducibility z y Dieter van Melkeb eek Lance Fortnow Harry Buhrman The University of Chicago The University of Chicago CWI x Leen Torenvliet University of Amsterdam Abstract A set is autoreducible if it can b e reduced to itself by a Turing machine that do es not ask its own input to the oracle We use autoreducibility to separate the p olynomialtime hi erarchy from p olynomial space by showing that all Turingcomplete sets for certain levels of the exp onentialtime hierarchy are autoreducible but there exists some Turingcomplete set for doubly exp onential space that is not Although we already knew how to separate these classes using diagonalization our pro ofs separate classes solely by showing they have dierent structural prop erties thus applying Posts Program to complexity theory We feel such techniques may prove unknown separations in the future In particular if we could settle the question as to whether all Turingcomplete sets for doubly exp onential time are autoreducible we would separate either p olynomial time from p olynomial space and nondeterministic logarithmic space from nondeterministic p olynomial time or else the p olynomialtime hierarchy from exp onential time We also lo ok at the autoreducibility of complete sets under nonadaptive b ounded query probabilistic and nonuniform reductions We show how settling some of these autoreducibility questions will also lead to new complexity class separations Key words complexity classes completeness autoreducibility coherence AMS classication Q Q D Part of this research was done while visiting the Univ Politecnica de Catalunya in Barcelona Partially supp orted by the Dutch foundation for scientic research NWO through NFI Pro ject ALADDIN under contract NF and a TALENT stip end Email buhrmancwinl URL httpwwwcwinlcwipeopleHarryBuhrmanhtml y Supp orted in part by NSF grant CCR Research partly done while visiting CWI Email fortnowcsuchicagoedu URL httpwwwcsuchicagoedufortnow z Partially supp orted by the Europ ean Union through Marie Curie Research Training Grant ERBGT by the US National Science Foundation through grant CCR and by the Fields Institute Re search partly done while visiting CWI and the University of Amsterdam Email dietercsuchicagoedu URL httpwwwcsuchicagoedudieter x Partially supp orted by HCM grant ERBPL Email leenwinsuvanl URL httpturingwinsuvanlleen Intro duction While complexity theorists have made great strides in understanding the structure of complexity classes they have not yet found the prop er to ols to do nontrivial separation of complexity classes such as P and NP They have develop ed sophisticated diagonalization combinatorial and algebraic techniques but none of these ideas have yet proven very useful in the separation task Back in the early days of computability theory Post wanted to show that the set of noncom putable computably enumerable sets strictly contains the Turingcomplete computably enumerable sets In what we now call Posts Program see Post tried to show these classes dier by nding a prop erty that holds for all sets in the rst class but not for some set in the second We would like to resurrect Posts Program for separating classes in complexity theory In particular we will show how some classes dier by showing that their complete sets have dierent structure While we do not separate any classes not already separable by known diagonalization techniques we feel that renements to our techniques may yield some new separation results In this pap er we will concentrate on the prop erty known as autoreducibility A set A is autoreducible if we can decide whether an input x b elongs to A in p olynomialtime by making queries ab out memb ership of strings dierent from x to A Trakhtenbrot rst lo oked at autoreducibility in b oth the computability theory and space b ounded mo dels Ladner showed that there exist Turingcomplete computably enumerable sets that are not autoreducible Amb osSpies rst transferred the notion of autoreducibility to the p olynomialtime setting More recently Yao and Beigel and Feigenbaum have studied a probabilistic variant of autoreducibility known as coherence In this pap er we ask for what complexity classes do all the complete sets have the autore ducibility prop erty In particular we show EXP EXP All Turingcomplete sets for are autoreducible for any constant k where denotes k k P the sets that are exp onentialtime Turingreducible to k There exists a Turingcomplete set for doubly exp onential space that is not autoreducible EXP Since the union of all sets coincides with exp onentialtime hierarchy we obtain a separation k of the exp onentialtime hierarchy from doubly exp onential space and thus of the p olynomialtime hierarchy from exp onential space Although these results also follow from the space hierarchy theorems which we have known for a long time our pro of do es not directly use diagonalization rather separates the classes by showing that they have dierent structural prop erties Issues of relativization do not apply to this work b ecause of oracle access see A p olynomial time autoreduction can not view as much of the oracle as an exp onential or doubly exp onential computation To illustrate this p oint we show that there exists an oracle relative to which some complete set for exp onential time is not autoreducible Note that if we can settle whether the Turingcomplete sets for doubly exp onential time are all autoreducible one way or the other we will have a ma jor separation result If there ex ists a Turingcomplete set for doubly exp onential time that is not autoreducible then we get that the exp onentialtime hierarchy is strictly contained in doubly exp onential time thus that the p olynomialtime hierarchy is strictly contained in exp onential time If all of the Turingcomplete sets for doubly exp onential time are autoreducible we get that doubly exp onential time is strictly contained in doubly exp onential space and thus p olynomial time strictly in p olynomial space We will also show that this assumption implies a separation of nondeterministic logarithmic space from nondeterministic p olynomial time Similar implications hold for space b ounded classes see Section Autoreducibility questions ab out doubly exp onential time and exp onential space thus remain an exciting line of research We also study the nonadaptive variant of the problem Our main results scale down one exp onential as follows P P All truthtablecomplete sets are truthtableautoreducible for any constant k where k k P denotes that sets p olynomialtime Turingreducible to k There exists a truthtablecomplete set for exp onential space that is not truthtableautoreducible Again nding out whether all truthtablecomplete sets for intermediate classes namely p olynomial space and exp onential time are truthtableautoreducible would have ma jor implications In contrast to the ab ove results we exhibit the limitations of our approach For the restricted reducibility where we are only allowed to ask two nonadaptive queries all complete sets for EXP EXPSPACE EEXP EEXPSPACE etc are autoreducible We also argue that uniformity is crucial for our technique of separating complexity classes b e cause our nonautoreducibility results fail in the nonuniform setting Razb orov and Rudich show that if strong pseudorandom generators exist natural pro ofs cannot separate certain nonuniform complexity classes Since this pap er relies on uniformity in an essential way their result do es not apply Regarding the probabilistic variant of autoreducibility mentioned ab ove we can strengthen our results and construct a Turingcomplete set for doubly exp onential space that is not even probabilistically autoreducible We leave the analogue of this theorem in the nonadaptive setting op en Do es there exist a truthtable complete set for exp onential space that is not probabilistically truthtable autoreducible We do show that every truthtable complete set for exp onential time is probabilisticall y truthtable autoreducible So a p ositive answer to the op en question would establish that exp onential time is strictly contained in exp onential space A negative answer on the other hand would imply a separation of nondeterministic logarithmic space from nondeterministic p olynomial time Here is the outline of the pap er First we intro duce our notation and state some preliminaries in Section Next in Section we establish our negative autoreducibility results for the adaptive as well as the nonadaptive case Then we prove the p ositive results in Section where we also briey lo ok at the randomized and nonuniform settings Section discusses the separations that follow from our results and would follow from improvements on them Finally we conclude in Section and mention some p ossible directions for further research Errata in conference version An previous version of this pap er erroneously claimed pro ofs showing all Turing complete sets for EXPSPACE are autoreducible and all truthtable complete sets for PSPACE are nonadaptively autoreducible Combined with the additional results in this version we would have a separation of NL and NP see Section However the pro ofs in the earlier version failed to account for the growth of the running time when recursively computing previous players moves We use the pro of technique in Section though unfortunately we get considerably weaker theorems The original results claimed in the previous version remain imp ortant op en questions as resolving them either way will
Recommended publications
  • 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]
  • 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]
  • 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]
  • Sharp Lower Bounds for the Dimension of Linearizations of Matrix Polynomials∗
    Electronic Journal of Linear Algebra ISSN 1081-3810 A publication of the International Linear Algebra Society Volume 17, pp. 518-531, November 2008 ELA SHARP LOWER BOUNDS FOR THE DIMENSION OF LINEARIZATIONS OF MATRIX POLYNOMIALS∗ FERNANDO DE TERAN´ † AND FROILAN´ M. DOPICO‡ Abstract. A standard way of dealing with matrixpolynomial eigenvalue problems is to use linearizations. Byers, Mehrmann and Xu have recently defined and studied linearizations of dimen- sions smaller than the classical ones. In this paper, lower bounds are provided for the dimensions of linearizations and strong linearizations of a given m × n matrixpolynomial, and particular lineariza- tions are constructed for which these bounds are attained. It is also proven that strong linearizations of an n × n regular matrixpolynomial of degree must have dimension n × n. Key words. Matrixpolynomials, Matrixpencils, Linearizations, Dimension. AMS subject classifications. 15A18, 15A21, 15A22, 65F15. 1. Introduction. We will say that a matrix polynomial of degree ≥ 1 −1 P (λ)=λ A + λ A−1 + ···+ λA1 + A0, (1.1) m×n where A0,A1,...,A ∈ C and A =0,is regular if m = n and det P (λ)isnot identically zero as a polynomial in λ. We will say that P (λ)issingular otherwise. A linearization of P (λ)isamatrix pencil L(λ)=λX + Y such that there exist unimod- ular matrix polynomials, i.e., matrix polynomials with constant nonzero determinant, of appropriate dimensions, E(λ)andF (λ), such that P (λ) 0 E(λ)L(λ)F (λ)= , (1.2) 0 Is where Is denotes the s × s identity matrix. Classically s =( − 1) min{m, n}, but recently linearizations of smaller dimension have been considered [3].
    [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]
  • Delegating Computation: Interactive Proofs for Muggles∗
    Electronic Colloquium on Computational Complexity, Revision 1 of Report No. 108 (2017) Delegating Computation: Interactive Proofs for Muggles∗ Shafi Goldwasser Yael Tauman Kalai Guy N. Rothblum MIT and Weizmann Institute Microsoft Research Weizmann Institute [email protected] [email protected] [email protected] Abstract In this work we study interactive proofs for tractable languages. The (honest) prover should be efficient and run in polynomial time, or in other words a \muggle".1 The verifier should be super-efficient and run in nearly-linear time. These proof systems can be used for delegating computation: a server can run a computation for a client and interactively prove the correctness of the result. The client can verify the result's correctness in nearly-linear time (instead of running the entire computation itself). Previously, related questions were considered in the Holographic Proof setting by Babai, Fortnow, Levin and Szegedy, in the argument setting under computational assumptions by Kilian, and in the random oracle model by Micali. Our focus, however, is on the original inter- active proof model where no assumptions are made on the computational power or adaptiveness of dishonest provers. Our main technical theorem gives a public coin interactive proof for any language computable by a log-space uniform boolean circuit with depth d and input length n. The verifier runs in time n · poly(d; log(n)) and space O(log(n)), the communication complexity is poly(d; log(n)), and the prover runs in time poly(n). In particular, for languages computable by log-space uniform NC (circuits of polylog(n) depth), the prover is efficient, the verifier runs in time n · polylog(n) and space O(log(n)), and the communication complexity is polylog(n).
    [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]
  • The Complexity of Debate Checking
    Electronic Colloquium on Computational Complexity, Report No. 16 (2014) The Complexity of Debate Checking H. G¨okalp Demirci1, A. C. Cem Say2 and Abuzer Yakaryılmaz3,∗ 1University of Chicago, Department of Computer Science, Chicago, IL, USA 2Bo˘gazi¸ci University, Department of Computer Engineering, Bebek 34342 Istanbul,˙ Turkey 3University of Latvia, Faculty of Computing, Raina bulv. 19, R¯ıga, LV-1586 Latvia [email protected],[email protected],[email protected] Keywords: incomplete information debates, private alternation, games, probabilistic computation Abstract We study probabilistic debate checking, where a silent resource-bounded verifier reads a di- alogue about the membership of a given string in the language under consideration between a prover and a refuter. We consider debates of partial and zero information, where the prover is prevented from seeing some or all of the messages of the refuter, as well as those of com- plete information. This model combines and generalizes the concepts of one-way interactive proof systems, games of possibly incomplete information, and probabilistically checkable debate systems. We give full characterizations of the classes of languages with debates checkable by verifiers operating under simultaneous bounds of O(1) space and O(1) random bits. It turns out such verifiers are strictly more powerful than their deterministic counterparts, and allowing a logarithmic space bound does not add to this power. PSPACE and EXPTIME have zero- and partial-information debates, respectively, checkable by constant-space verifiers for any desired error bound when we omit the randomness bound. No amount of randomness can give a ver- ifier under only a fixed time bound a significant performance advantage over its deterministic counterpart.
    [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]
  • Introduction to Complexity Classes
    Introduction to Complexity Classes Marcin Sydow Introduction to Complexity Classes Marcin Sydow Introduction Denition to Complexity Classes TIME(f(n)) TIME(f(n)) denotes the set of languages decided by Marcin deterministic TM of TIME complexity f(n) Sydow Denition SPACE(f(n)) denotes the set of languages decided by deterministic TM of SPACE complexity f(n) Denition NTIME(f(n)) denotes the set of languages decided by non-deterministic TM of TIME complexity f(n) Denition NSPACE(f(n)) denotes the set of languages decided by non-deterministic TM of SPACE complexity f(n) Linear Speedup Theorem Introduction to Complexity Classes Marcin Sydow Theorem If L is recognised by machine M in time complexity f(n) then it can be recognised by a machine M' in time complexity f 0(n) = f (n) + (1 + )n, where > 0. Blum's theorem Introduction to Complexity Classes Marcin Sydow There exists a language for which there is no fastest algorithm! (Blum - a Turing Award laureate, 1995) Theorem There exists a language L such that if it is accepted by TM of time complexity f(n) then it is also accepted by some TM in time complexity log(f (n)). Basic complexity classes Introduction to Complexity Classes Marcin (the functions are asymptotic) Sydow P S TIME nj , the class of languages decided in = j>0 ( ) deterministic polynomial time NP S NTIME nj , the class of languages decided in = j>0 ( ) non-deterministic polynomial time EXP S TIME 2nj , the class of languages decided in = j>0 ( ) deterministic exponential time NEXP S NTIME 2nj , the class of languages decided
    [Show full text]