On space efficiency of Krivine s abstract machine and Hyland-Ong games
|
|
- Kelley Stone
- 5 years ago
- Views:
Transcription
1 13/02/08, LIPN p.1/28 On space efficiency of Krivine s abstract machine and Hyland-Ong games Kazushige Terui terui@nii.ac.jp National Institute of Informatics, Tokyo Laboratoire d Informatics de Paris Nord, CNRS
2 13/02/08, LIPN p.2/28 ICC Intensional Computational Complexity (ICC) algorithms (eg. terms) evaluation mechanisms (eg. fi-reduction)
3 13/02/08, LIPN p.3/28 Space sensitive Turing machines Input tape (read only) Work tapes (read/write) Output tape (write only) Finite control Space = the num of cells used on worktapes. The input and output can be significantly larger than the space: M If works in f (n) space then the output is of O(2 size ). Given two Turing machines M, N, we want to compose them. f(n) How?
4 13/02/08, LIPN p.4/28 Space sensitive Turing machines Functional composition is not good: M;N If work in f space (n);g(n), M ; N then works in space O(f (n) + g(2 f(n) ) + 2 f(n) ). In particular, logspace functions do not compose. Composition must be interactive: M fl N works in O(f (n) + g(2 f(n) )). From functional to interactive computation!
5 13/02/08, LIPN p.5/28 Towards a logical theory of computational complexity Shortcomings of Turing Machines: Poor data structures (only tapes) Poor control mechanisms (only transitions) Ad hoc constructions: no canonical way of composition Results in lack of beautiful mathematical theory Logic and lambda calculus Rich data structures and controls Canonical composition T ffi U = x:t (U (x)) Hope to make complexity theory more mathematical
6 13/02/08, LIPN p.6/28 Space in lambda calculus Composition does not preserve good space bounds when using fi-reduction, because fi-reduction is not interactive! Interactive evaluation mechanisms Geometry of Interaction Krivine s abstract machine (KAM) Game semantics
7 13/02/08, LIPN p.7/28 KAM KAM implements weak head linear reduction: ( x :x ~ U ) T =) ( x :T ~ U ) T GoI with jumps under A ) B =!(A ffi B) (Danos-Regnier 94) Syntax: Terms t ::= x j x:t1 j t1t2 Environments ρ ::= [x1 7! t1ρ1; :::; x n 7! t n ρ n ] Closures Stacks ß ::= t1ρ1 : : t n ρ n tρ States S ::= (tρ; ß)
8 ((tu)ρ; ß)! (tρ; uρ : ß) 13/02/08, LIPN p.8/28 KAM Initial state: (t[]; nil) Transitions (xρ; ß)! (ρ(x); ß) if x 2 Dom(ρ) (( x:t)ρ; uρ 0 : ß)! (tρ[x 7! uρ 0 ]; ß) Terminations ß) x Dom(ρ) (xρ; 62 x nil) (( x:t)ρ; with Success with output Failure Not space efficient: ρ contains a lot of redundant bindings.
9 13/02/08, LIPN p.9/28 Optimized KAM Optimized transitions (xρ; ß)! (ρ(x); ß) if x 2 Dom(ρ) ß)! (t(ρj t ); ρ(x) : ß) if x 2 Dom(ρ) ((tx)ρ; ß)! (t(ρj t ); u(ρj u ) : ß) otherwise ((tu)ρ; (( x:t)ρ; uρ 0 : ß)! (tρ[x 7! uρ 0 ]; ß) ρj t is a restriction of ρ to the free variables of t.
10 (2Kc; nil) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
11 (2Kc; nil) (2K; c) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
12 (2Kc; nil) (2K; c) (2; K : c) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
13 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
14 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
15 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) (f [f 7! K]; fx[f 7! K; x 7! c]) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
16 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) (f [f 7! K]; fx[f 7! K; x 7! c]) (K; fx[f 7! K; x 7! c]) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
17 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) (f [f 7! K]; fx[f 7! K; x 7! c]) (K; fx[f 7! K; x 7! c]) ( z:z; fx[f 7! K; x 7! c]) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
18 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) (f [f 7! K]; fx[f 7! K; x 7! c]) (K; fx[f 7! K; x 7! c]) ( z:z; fx[f 7! K; x 7! c]) (fx[f 7! K; x 7! c]; nil) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
19 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) (f [f 7! K]; fx[f 7! K; x 7! c]) (K; fx[f 7! K; x 7! c]) ( z:z; fx[f 7! K; x 7! c]) (fx[f 7! K; x 7! c]; nil) (f [f 7! K]; c) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
20 (2Kc; nil) (2K; c) (2; K : c) ( x:f (fx)[f 7! K]; c) (f (fx)[f 7! K; x 7! c]; nil) (f [f 7! K]; fx[f 7! K; x 7! c]) (K; fx[f 7! K; x 7! c]) ( z:z; fx[f 7! K; x 7! c]) (fx[f 7! K; x 7! c]; nil) (f [f 7! K]; c) (K; c) 13/02/08, LIPN p.10/28 Example Suppose (K[]; nil)! Λ ( z:z; nil), 2 = fx:f (fx).
21 ]ρ = ]ρ1 + + ]ρ n + n if ρ = [x1 7! t1ρ1;:::;x n 7! t n ρ n ]ß = ]ρ1 + + ]ρ n + n if t1ρ1 : : t n ρ n ](tρ; ß) = ]ρ + ]ß /02/08, LIPN p.11/28 Size of a state Subterm property: (t[]; nil)! if S, all terms occurring in S are subterms of t. Λ Allows us to think of each state as made of pointers rather than actual terms. = the number of pointers in S: ]S In particular, ](t[]; nil) = 1. KAM evaluates t with n pointers if for any intermediate state (t[]; nil)! Λ S, ]S» n.
22 13/02/08, LIPN p.12/28 TM space-efficiently simulates KAM Naively, TM requires of log n overhead to simulate KAM: if KAM t evaluates n with pointers, M (t) then works in O(n log space jtj). We are interested in terms td, where t (program) is fixed while d (input) is varying. Consider a huge alphabet ± = fu j u is a subterm occ. of tg [ f0; 1g
23 13/02/08, LIPN p.13/28 TM space-efficiently simulates KAM t satisfies the input condition if in any intermediate state nil) S, the number of pointers pointing subterms of d (td[];! is constant (independent Λ of d). Analogy: the num of heads on input tape is fixed. Theorem: There is a M TM which simulates KAM linearly: if KAM td evaluates f (jdj) with t pointers, satisfies the input condition f (x) log and x, M (t) then works in O(f space (jdj)).
24 " = x " x0x1:x " 13/02/08, LIPN p.14/28 Data structures Booleans: t = xy:x, f = xy:y Scott numerals: w for w 2 f0; 1g Λ 0 w = x " x0x1:x0w 1 w = x " x0x1:x1w Purely linear. Successor, predecessor and conditional are also linear. Useful for worktapes. What are read-only/write-only tapes? They should be interactive entities (analogy: Book vs Dialogue)
25 13/02/08, LIPN p.15/28 Data structures Databases: For d 2 f0; 1g 2n, define a term d : Word! Bool s.t. Given w 2 f0; 1g n, dw returns the wth bit of d. d = w:wiωω if d = i 2 f0; 1g = w:wωd0d1 if d1 = i2 n i2 n 1 +1, d0 = i2 n 1 i 1, d = d1d0
26 13/02/08, LIPN p.16/28 KAM space-efficiently simulates TM Theorem: For any TM M, there is a term t M s.t. d 2 f0; 1g Given, t M d Λ0 Λ1 returns Λ0 or Λ1 according to the output of Λ (d). M When M works in space f (n) log n, KAM evaluates t M d Λ0 Λ1 with O(f (n)) pointers. Now the space hierarchy theorem implies There is no TM M that evaluates t M d in space O(f (n) ffl ) with ffl < 1. Corollary: There is no evaluator that is uniformly (i.e. for all terms) and significantly (i.e. super-linearly) more space-efficient than KAM.
27 t M : (Word! Bool)! (Word! Bool) 13/02/08, LIPN p.17/28 Composition M;N Let be transducer TMs which work f (n);g(n) in space and produce outputs 2 of size 2 and. g(n) f(n) N : (Word! Bool)! (Word! Bool) t M ffi t N : (Word! Bool)! (Word! Bool) t (t N ffi t M )dw Λ0 Λ1 returns the wth bit of N ffi M (d). KAM evaluates it with O(f (jdj) + g(jd 0 j)) pointers, where d 0 is the output of M (d). KAM + canonical composition simulates the interactive composition of TMs!
28 13/02/08, LIPN p.18/28 Moral Turing Machines -calculus Composition non canonical canonical Evaluation canonical non canonical In -calculus, TIME-SPACE tradeoff shows up at the stage of evaluation: KAM is space-efficient CBV seems to be time-efficient (cf. Dal Lago-Martini). Work to be done: identify a subclass of -terms (via a type system) on which space bounds are well preserved by KAM composition.
29 13/02/08, LIPN p.19/28 Warning There is no uniformly more efficient evaluator than KAM. KAM is like a student Bob with score Math Science Grammer Latin Music Although there is no uniformly better student than Bob, this does not mean Bob is the best student.
30 u n = ( x1 x n :x n ) Λ1 Λ n 13/02/08, LIPN p.20/28 From KAM to HO games Empirically, KAM is good at tall terms: n = ( fx:f n (x))( y:y)λ t KAM t evaluates n O(1) with pointers. KAM is not good at wide terms: KAM evaluates u n with O(n) pointers. For simply typed terms with unbounded width and fixed rank, HO games seem to be more efficient.
31 13/02/08, LIPN p.21/28 HO games A fully abstract model of PCF (Hyland-Ong 00). Successfully applied to various programming languages. Useful for compositional and higher-order model checking (Ghica-Mckusker 00, Ong 04, etc.) Types = Arenas Terms = Strategies Computation = play Play = interactive composition of two strategies Composition is effective (cf. Ong 04). Corresponds to Pointer Abstract Machine (Danos-Herbelin-Regnier 96).
32 ( X:X (0) ^ X (1)) (bool!bool)!bool x:f (x) 13/02/08, LIPN p.22/28 Ranks and complexity The rank of a type: rank( ) = 0, rank(a! B) = max(rank(a) + 1; rank(b)) A term is at rank n if all of its subterms have rank n types. Rank Quantative Qualitative 1 boolean formulas (open) addition = xy:b!! yx :b 2 boolean circuits multiplication (x; : : : ;x)) bool!bool G(y) n ffi m ( x:f 3 8x:F (x) = QBFs exponentiation (n) int!int m
33 13/02/08, LIPN p.23/28 Ranks and complexity Normalization problem: Given two t; u terms u where is normal, t does reduce to u? (Schubert 2001) shows that this problem is 1. DTIME(n log n) in for rank 1 terms 2. P-complete for rank 2 terms 3. PSPACE-complete for rank 3 terms Hardness is easy. Membership is difficult, since fi-reduction does not work. Schubert uses graph rewriting. We use HO games.
34 13/02/08, LIPN p.24/28 HO games for simple types Arena for type A: A Moves = occurrences of atomic types in P-moves = negative occurrences O-moves = positive occurrences Initial move = tail(a) ` tail(c) where C is an immediate subformula of B tail(b) Legal play: a PO-alternating pointing sequence like s = m0m1 m j m i m0 is the initial O-move each m i (1» i) is justified by a preceding move m j (m j ` m i, 0» j < i).
35 dse m 2 fi 13/02/08, LIPN p.25/28 Let s play the game! P-view: a legal play in which any O-move is justfied by the move immediately before. Given an arbitrary legal play s, a dse P-view can be extracted. Innocent strategy (as view function): a P-deterministic tree made of P-ending P-views. Every closed normal t : A term can be interpreted by an innocent strategy. HO-dialogue: Given innocent ff : A! B strategies fi : and A, 1. Start with the initial m0 = tail(b) move 2. Expand an odd length s play s m to such dse m 2 ff that 3. Expand an even length m0 s play m0 s m to such that
36 13/02/08, LIPN p.26/28 A lemma in game semantics Difficulty: HO game is history sensitive. But recording the whole history leads to TIME = SPACE. Lemma (taught by P. Boude): For any legal play satisfying P- and O-visibility s = m1 m2 if m2 justifies no moves, it never happens that = m1 m2 s So one can safely s contract to s 0 = m1m2 and continue the play.
37 13/02/08, LIPN p.27/28 Complexity of Rank 3 games Theorem: Given a t term at rank 3 (which is an applicative combination of closed normal terms), the length of play can be kepth within O(jtj). Corollary: One can determine the head variable nf (t) of in polynomial space via HO games. Work to be done: What about rank 4? Dowehavea hierarchy result as in Kristiansen s talk?
38 13/02/08, LIPN p.28/28 Conclusion Lambda calculus admits a canonical M ffi N composition KAM is optimal for simulating TM. Composition works nicely with KAM. (KAM allows natural programming eg. boolean matrix closure) HO games seem to be good at least for rank bounded terms. Good understanding of game semantics leads to clever space management. Game semantics may implicitly explain complexity.
How and when axioms can be transformed into good structural rules
How and when axioms can be transformed into good structural rules Kazushige Terui National Institute of Informatics, Tokyo Laboratoire d Informatique de Paris Nord (Joint work with Agata Ciabattoni and
More informationSpace is a computation resource. Unlike time it can be reused. Computational Complexity, by Fu Yuxi Space Complexity 1 / 44
Space Complexity Space is a computation resource. Unlike time it can be reused. Computational Complexity, by Fu Yuxi Space Complexity 1 / 44 Synopsis 1. Space Bounded Computation 2. Logspace Reduction
More informationCMPT 710/407 - Complexity Theory Lecture 4: Complexity Classes, Completeness, Linear Speedup, and Hierarchy Theorems
CMPT 710/407 - Complexity Theory Lecture 4: Complexity Classes, Completeness, Linear Speedup, and Hierarchy Theorems Valentine Kabanets September 13, 2007 1 Complexity Classes Unless explicitly stated,
More informationThe Safe λ-calculus. William Blum. Joint work with C.-H. Luke Ong. Lunch-time meeting, 14 May Oxford University Computing Laboratory
The Safe λ-calculus William Blum Joint work with C.-H. Luke Ong Oxford University Computing Laboratory Lunch-time meeting, 14 May 2007 Overview Safety is originally a syntactic restriction for higher-order
More informationCircuits. Lecture 11 Uniform Circuit Complexity
Circuits Lecture 11 Uniform Circuit Complexity 1 Recall 2 Recall Non-uniform complexity 2 Recall Non-uniform complexity P/1 Decidable 2 Recall Non-uniform complexity P/1 Decidable NP P/log NP = P 2 Recall
More informationNon-Deterministic Time
Non-Deterministic Time Master Informatique 2016 1 Non-Deterministic Time Complexity Classes Reminder on DTM vs NDTM [Turing 1936] (q 0, x 0 ) (q 1, x 1 ) Deterministic (q n, x n ) Non-Deterministic (q
More informationFunctional Reachability
Functional Reachability Luke Ong Nikos Tzevelekos Oxford University Computing Laboratory 24th Symposium on Logic in Computer Science Los Angeles, August 2009. Ong & Tzevelekos Functional Reachability 1
More informationParallelism and Machine Models
Parallelism and Machine Models Andrew D Smith University of New Brunswick, Fredericton Faculty of Computer Science Overview Part 1: The Parallel Computation Thesis Part 2: Parallelism of Arithmetic RAMs
More informationLecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).
CS 221: Computational Complexity Prof. Salil Vadhan Lecture Notes 4 February 3, 2010 Scribe: Jonathan Pines 1 Agenda P-/NP- Completeness NP-intermediate problems NP vs. co-np L, NL 2 Recap Last time, we
More informationLecture 24: Randomized Complexity, Course Summary
6.045 Lecture 24: Randomized Complexity, Course Summary 1 1/4 1/16 1/4 1/4 1/32 1/16 1/32 Probabilistic TMs 1/16 A probabilistic TM M is a nondeterministic TM where: Each nondeterministic step is called
More informationAutomata, Logic and Games: Theory and Application
Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June
More informationFoundations of Query Languages
Foundations of Query Languages SS 2011 2. 2. Foundations of Query Languages Dr. Fang Wei Lehrstuhl für Datenbanken und Informationssysteme Universität Freiburg SS 2011 Dr. Fang Wei 30. Mai 2011 Seite 1
More informationGeometry of Interaction
Linear logic, Ludics, Implicit Complexity, Operator Algebras Geometry of Interaction Laurent Regnier Institut de Mathématiques de Luminy Disclaimer Syntax/Semantics Syntax = nite (recursive) sets Semantics
More informationThe space complexity of a standard Turing machine. The space complexity of a nondeterministic Turing machine
298 8. Space Complexity The space complexity of a standard Turing machine M = (Q,,,, q 0, accept, reject) on input w is space M (w) = max{ uav : q 0 w M u q av, q Q, u, a, v * } The space complexity of
More information1 PSPACE-Completeness
CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the
More informationSimply Typed Lambda Calculus
Simply Typed Lambda Calculus Language (ver1) Lambda calculus with boolean values t ::= x variable x : T.t abstraction tt application true false boolean values if ttt conditional expression Values v ::=
More informationChurch s undecidability result
Church s undecidability result Alan Turing Birth Centennial Talk at IIT Bombay, Mumbai Joachim Breitner April 21, 2011 Welcome, and thank you for the invitation to speak about Church s lambda calculus
More informationVariations on a theme: call-by-value and factorization
Variations on a theme: call-by-value and factorization Beniamino Accattoli INRIA & LIX, Ecole Polytechnique Accattoli (INRIA Parsifal) Variations on a theme: call-by-value and factorization 1 / 31 Outline
More informationTHE STRONG INVARIANCE THESIS
THE STRONG INVARIANCE THESIS FOR A λ-calculus LOLA WORKSHOP 2017 Yannick Forster 1 Fabian Kunze 1,2 Marc Roth 1,3 1 SAARLAND UNIVERSITY 2 MAX PLANCK INSTITUTE FOR INFORMATICS 3 CLUSTER OF EXCELLENCE (MMCI)
More informationOn the Computational Complexity of Cut-Elimination in Linear Logic
16/09/2003, IML p.1/40 On the Computational Complexity of Cut-Elimination in Linear Logic (Joint work with Harry Mairson) Kazushige Terui terui@nii.ac.jp National Institute of Informatics, Tokyo 16/09/2003,
More informationMTAT Complexity Theory October 20th-21st, Lecture 7
MTAT.07.004 Complexity Theory October 20th-21st, 2011 Lecturer: Peeter Laud Lecture 7 Scribe(s): Riivo Talviste Polynomial hierarchy 1 Turing reducibility From the algorithmics course, we know the notion
More informationA Concrete Representation of Observational Equivalence for PCF
A of Observational Equivalence for PCF Martin Churchill, Jim Laird and Guy McCusker University of Bath March 28th, 2009 GaLoP workshop, University of York Martin Churchill, Jim Laird and Guy McCusker University
More informationLOWELL WEEKLY JOURNAL. ^Jberxy and (Jmott Oao M d Ccmsparftble. %m >ai ruv GEEAT INDUSTRIES
? (») /»» 9 F ( ) / ) /»F»»»»»# F??»»» Q ( ( »»» < 3»» /» > > } > Q ( Q > Z F 5
More informationOutline. Complexity Theory. Example. Sketch of a log-space TM for palindromes. Log-space computations. Example VU , SS 2018
Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 3. Logarithmic Space Reinhard Pichler Institute of Logic and Computation DBAI Group TU Wien 3. Logarithmic Space 3.1 Computational
More informationPrinciples of Program Analysis: Control Flow Analysis
Principles of Program Analysis: Control Flow Analysis Transparencies based on Chapter 3 of the book: Flemming Nielson, Hanne Riis Nielson and Chris Hankin: Principles of Program Analysis. Springer Verlag
More informationOn the Correctness and Efficiency of the Krivine Machine
On the Correctness and Efficiency of the Krivine Machine Mitchell Wand Northeastern University Daniel P. Friedman Indiana University February 12, 2003 Abstract We provide a short derivation of the Krivine
More informationQuantum Functional Programming Language & Its Denotational Semantics
Quantum Functional Programming Language & Its Denotational Semantics Ichiro Hasuo Dept. Computer Science University of Tokyo Naohiko Hoshino Research Inst. for Math. Sci. Kyoto University Talk based on:
More informationComplexity Theory. Knowledge Representation and Reasoning. November 2, 2005
Complexity Theory Knowledge Representation and Reasoning November 2, 2005 (Knowledge Representation and Reasoning) Complexity Theory November 2, 2005 1 / 22 Outline Motivation Reminder: Basic Notions Algorithms
More informationThe Polynomial Hierarchy
The Polynomial Hierarchy Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach. Ahto Buldas Ahto.Buldas@ut.ee Motivation..synthesizing circuits is exceedingly difficulty. It is even
More informationLecture 4 : Quest for Structure in Counting Problems
CS6840: Advanced Complexity Theory Jan 10, 2012 Lecture 4 : Quest for Structure in Counting Problems Lecturer: Jayalal Sarma M.N. Scribe: Dinesh K. Theme: Between P and PSPACE. Lecture Plan:Counting problems
More informationDRAFT. Diagonalization. Chapter 4
Chapter 4 Diagonalization..the relativized P =?NP question has a positive answer for some oracles and a negative answer for other oracles. We feel that this is further evidence of the difficulty of the
More informationComplete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in
Oracle Turing Machines Nondeterministic OTM defined in the same way (transition relation, rather than function) oracle is like a subroutine, or function in your favorite PL but each call counts as single
More informationTutorial on Semantics Part I
Tutorial on Semantics Part I Basic Concepts Prakash Panangaden 1 1 School of Computer Science McGill University on sabbatical leave at Department of Computer Science Oxford University Fields Institute,
More informationP is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.
Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time
More information6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch
6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch Today: More Complexity Theory Polynomial-time reducibility, NP-completeness, and the Satisfiability (SAT) problem Topics: Introduction
More informationDecomposition of Computation via Linear Logic
13/07/04, Turku p.1/44 Decomposition of Computation via Linear Logic Kazushige Terui terui@nii.ac.jp National Institute of Informatics, Tokyo 13/07/04, Turku p.2/44 Motivation (1) Linear Logic decomposes
More informationPOLYNOMIAL SPACE QSAT. Games. Polynomial space cont d
T-79.5103 / Autumn 2008 Polynomial Space 1 T-79.5103 / Autumn 2008 Polynomial Space 3 POLYNOMIAL SPACE Polynomial space cont d Polynomial space-bounded computation has a variety of alternative characterizations
More informationSpace Complexity. Master Informatique. Université Paris 5 René Descartes. Master Info. Complexity Space 1/26
Space Complexity Master Informatique Université Paris 5 René Descartes 2016 Master Info. Complexity Space 1/26 Outline Basics on Space Complexity Main Space Complexity Classes Deterministic and Non-Deterministic
More informationTheory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death
Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer Science University of Virginia www.cs.virginia.edu/~njb2b/theory
More informationON FIRST-ORDER CONS-FREE TERM REWRITING AND PTIME
ON FIRST-ORDER CONS-FREE TERM REWRITING AND PTIME CYNTHIA KOP Department of Computer Science, Copenhagen University e-mail address: kop@diku.dk Abstract. In this paper, we prove that (first-order) cons-free
More informationLecture 8: Complete Problems for Other Complexity Classes
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 8: Complete Problems for Other Complexity Classes David Mix Barrington and Alexis Maciel
More informationChapter 1 - Time and Space Complexity. deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE
Chapter 1 - Time and Space Complexity deterministic and non-deterministic Turing machine time and space complexity classes P, NP, PSPACE, NPSPACE 1 / 41 Deterministic Turing machines Definition 1.1 A (deterministic
More informationLecture 11: Proofs, Games, and Alternation
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 11: Proofs, Games, and Alternation David Mix Barrington and Alexis Maciel July 31, 2000
More informationCSE200: Computability and complexity Space Complexity
CSE200: Computability and complexity Space Complexity Shachar Lovett January 29, 2018 1 Space complexity We would like to discuss languages that may be determined in sub-linear space. Lets first recall
More informationOn Elementary Linear Logic and polynomial time (Extended Abstract)
On Elementary Linear Logic and polynomial time (Extended Abstract) Patrick Baillot ENS Lyon, Université de Lyon, LIP (UMR 5668 CNRS-ENSL-INRIA-UCBL) 1 Introduction Linear logic (LL) [Gir87] has been used
More informationPrimitive recursive functions: decidability problems
Primitive recursive functions: decidability problems Armando B. Matos October 24, 2014 Abstract Although every primitive recursive (PR) function is total, many problems related to PR functions are undecidable.
More informationwhere Q is a finite set of states
Space Complexity So far most of our theoretical investigation on the performances of the various algorithms considered has focused on time. Another important dynamic complexity measure that can be associated
More informationMore Complexity. Klaus Sutner Carnegie Mellon University. Fall 2017
More Complexity Klaus Sutner Carnegie Mellon University Fall 2017 1 Below NP Parallelism Above NP Where Are We? 3 We have a somewhat elaborate zoo of low complexity classes. For the flagship P and NP,
More informationDatabase Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler
Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler
More informationInternship Report Game Semantics and Normalization by Evaluation for Brouwer Ordinals
Internship Report Game Semantics and Normalization by Evaluation for Brouwer Ordinals Léo Exibard August 28, 2015 Abstract P. Clairambault and P. Dybjer developed a Normalization by Evaluation (NbE) algorithm
More informationan efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.
1 More on NP In this set of lecture notes, we examine the class NP in more detail. We give a characterization of NP which justifies the guess and verify paradigm, and study the complexity of solving search
More informationIV. Turing Machine. Yuxi Fu. BASICS, Shanghai Jiao Tong University
IV. Turing Machine Yuxi Fu BASICS, Shanghai Jiao Tong University Alan Turing Alan Turing (23Jun.1912-7Jun.1954), an English student of Church, introduced a machine model for effective calculation in On
More informationContinuity. Chapter 4
Chapter 4 Continuity Throughout this chapter D is a nonempty subset of the real numbers. We recall the definition of a function. Definition 4.1. A function from D into R, denoted f : D R, is a subset of
More informationLogarithmic space. Evgenij Thorstensen V18. Evgenij Thorstensen Logarithmic space V18 1 / 18
Logarithmic space Evgenij Thorstensen V18 Evgenij Thorstensen Logarithmic space V18 1 / 18 Journey below Unlike for time, it makes sense to talk about sublinear space. This models computations on input
More informationLogarithmic Space and Permutations
Logarithmic Space and Permutations Clément Aubert and Thomas Seiller Abstract In a recent work, Girard [6] proposed a new and innovative approach to computational complexity based on the proofs-as-programs
More informationTopology in Denotational Semantics
Journées Topologie et Informatique Thomas Ehrhard Preuves, Programmes et Systèmes (PPS) Université Paris Diderot - Paris 7 and CNRS March 21, 2013 What is denotational semantics? The usual stateful approach
More informationNotes on Computer Theory Last updated: November, Circuits
Notes on Computer Theory Last updated: November, 2015 Circuits Notes by Jonathan Katz, lightly edited by Dov Gordon. 1 Circuits Boolean circuits offer an alternate model of computation: a non-uniform one
More informationCS151 Complexity Theory
Introduction CS151 Complexity Theory Lecture 5 April 13, 2004 Power from an unexpected source? we know PEXP, which implies no polytime algorithm for Succinct CVAL poly-size Boolean circuits for Succinct
More informationCS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP
CS 301 - Lecture 29 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of
More informationThe complexity of recursive constraint satisfaction problems.
The complexity of recursive constraint satisfaction problems. Victor W. Marek Department of Computer Science University of Kentucky Lexington, KY 40506, USA marek@cs.uky.edu Jeffrey B. Remmel Department
More informationLecture 3: Reductions and Completeness
CS 710: Complexity Theory 9/13/2011 Lecture 3: Reductions and Completeness Instructor: Dieter van Melkebeek Scribe: Brian Nixon Last lecture we introduced the notion of a universal Turing machine for deterministic
More informationQuantum Computing Lecture 8. Quantum Automata and Complexity
Quantum Computing Lecture 8 Quantum Automata and Complexity Maris Ozols Computational models and complexity Shor s algorithm solves, in polynomial time, a problem for which no classical polynomial time
More informationClosure under the Regular Operations
Closure under the Regular Operations Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have
More informationLocal computation of β-reduction A concrete presentation of Game Semantics
1 2 3 4 Local computation of β-reduction A concrete presentation of Game Semantics William Blum and C.H. Luke Ong Oxford University Computing Laboratory 5 6 Abstract We show that... Key words: Lambda calculus,
More informationLecture 14: IP = PSPACE
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 14: IP = PSPACE David Mix Barrington and Alexis Maciel August 3, 2000 1. Overview We
More informationBuilding a (sort of) GoI from denotational semantics: an improvisation
Building a (sort of) GoI from denotational semantics: an improvisation Damiano Mazza Laboratoire d Informatique de Paris Nord CNRS Université Paris 13 Workshop on Geometry of Interaction, Traced Monoidal
More informationThe P versus NP Problem. Dean Casalena University of Cape Town CSLDEA001
The P versus NP Problem Dean Casalena University of Cape Town CSLDEA001 dean@casalena.co.za Contents 1. Introduction 2. Turing Machines and Syntax 2.1 Overview 2.2 Turing Machine Syntax. 2.3 Polynomial
More informationComputational Complexity: A Modern Approach. Draft of a book: Dated January 2007 Comments welcome!
i Computational Complexity: A Modern Approach Draft of a book: Dated January 2007 Comments welcome! Sanjeev Arora and Boaz Barak Princeton University complexitybook@gmail.com Not to be reproduced or distributed
More informationGames and Weak-Head Reduction for Classical PCF
Games and Weak-Head Reduction for Classical PCF Hugo Herbelin To cite this version: Hugo Herbelin. Games and Weak-Head Reduction for Classical PCF. Philippe de Groote and J. Roger Hindley. Typed Lambda
More informationPrinciples of Knowledge Representation and Reasoning
Principles of Knowledge Representation and Reasoning Complexity Theory Bernhard Nebel, Malte Helmert and Stefan Wölfl Albert-Ludwigs-Universität Freiburg April 29, 2008 Nebel, Helmert, Wölfl (Uni Freiburg)
More informationSoft Linear Logic and the Polynomial Hierarchy (Extended Abstract)
Soft Linear Logic and the Polynomial Hierarchy (Extended Abstract) Brian F. Redmond Department of Computing, Mathematics and Statistical Sciences Grande Prairie Regional College 10726-106 Avenue, Grande
More informationComplexity, P and NP
Complexity, P and NP EECS 477 Lecture 21, 11/26/2002 Last week Lower bound arguments Information theoretic (12.2) Decision trees (sorting) Adversary arguments (12.3) Maximum of an array Graph connectivity
More informationComputability THEORY OF COMPUTATION
11/27/14 9-1 Computability 1 Computability THEORY OF COMPUTATION Formal Languages, Automata, and Complexity J. Glenn Brokshear The Benjamin/Cummings Pub. Comp., Inc. 1989 1.1 Foundation of Recursive Function
More informationReductions to Graph Isomorphism
Reductions to raph Isomorphism Jacobo Torán Institut für Theoretische Informatik Universität Ulm D-89069 Ulm, ermany jacobo.toran@uni-ulm.de June 13, 2008 Keywords: Computational complexity, reducibilities,
More informationECE 695 Numerical Simulations Lecture 2: Computability and NPhardness. Prof. Peter Bermel January 11, 2017
ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness Prof. Peter Bermel January 11, 2017 Outline Overview Definitions Computing Machines Church-Turing Thesis Polynomial Time (Class P)
More informationParallel Time and Proof Complexity. Klaus Aehlig
Parallel Time and Proof Complexity Klaus Aehlig ii Abstract Consider the following variant of quantified propositional logic. A new, parallel extension rule is introduced. This rule is aware of independence
More informationTree Automata and Rewriting
and Rewriting Ralf Treinen Université Paris Diderot UFR Informatique Laboratoire Preuves, Programmes et Systèmes treinen@pps.jussieu.fr July 23, 2010 What are? Definition Tree Automaton A tree automaton
More informationTime-bounded computations
Lecture 18 Time-bounded computations We now begin the final part of the course, which is on complexity theory. We ll have time to only scratch the surface complexity theory is a rich subject, and many
More informationUmans Complexity Theory Lectures
Umans Complexity Theory Lectures Lecture 12: The Polynomial-Time Hierarchy Oracle Turing Machines Oracle Turing Machine (OTM): Deterministic multitape TM M with special query tape special states q?, q
More informationFriday Four Square! Today at 4:15PM, Outside Gates
P and NP Friday Four Square! Today at 4:15PM, Outside Gates Recap from Last Time Regular Languages DCFLs CFLs Efficiently Decidable Languages R Undecidable Languages Time Complexity A step of a Turing
More informationIntroduction to Computational Complexity
Introduction to Computational Complexity George Voutsadakis 1 1 Mathematics and Computer Science Lake Superior State University LSSU Math 400 George Voutsadakis (LSSU) Computational Complexity September
More informationCOMPUTATIONAL COMPLEXITY
COMPUTATIONAL COMPLEXITY A Modern Approach SANJEEV ARORA Princeton University BOAZ BARAK Princeton University {Щ CAMBRIDGE Щ0 UNIVERSITY PRESS Contents About this book Acknowledgments Introduction page
More informationChap. 4 Computability
THEORY OF COMPUTATION Formal Languages, Automata, and Complexity Chap. 4 Computability J. Glenn Brokshear The Benjamin/Cummings Pub. Comp., Inc. 1989 1 4.1 Foundation of Recursive Function Theory computation
More information6-1 Computational Complexity
6-1 Computational Complexity 6. Computational Complexity Computational models Turing Machines Time complexity Non-determinism, witnesses, and short proofs. Complexity classes: P, NP, conp Polynomial-time
More information1 Introduction (January 21)
CS 97: Concrete Models of Computation Spring Introduction (January ). Deterministic Complexity Consider a monotonically nondecreasing function f : {,,..., n} {, }, where f() = and f(n) =. We call f a step
More informationPost s Theorem and Blockchain Languages
Post s Theorem and Blockchain Languages A Short Course in the Theory of Computation Russell O Connor roconnor@blockstream.com BPASE, January 26, 2017 1 / 35 morpheus (logician): Tell me Neo, what is the
More informationLecture 2: From Classical to Quantum Model of Computation
CS 880: Quantum Information Processing 9/7/10 Lecture : From Classical to Quantum Model of Computation Instructor: Dieter van Melkebeek Scribe: Tyson Williams Last class we introduced two models for deterministic
More informationHierarchy theorems. Evgenij Thorstensen V18. Evgenij Thorstensen Hierarchy theorems V18 1 / 18
Hierarchy theorems Evgenij Thorstensen V18 Evgenij Thorstensen Hierarchy theorems V18 1 / 18 Comparing functions To prove results like TIME(f(n)) TIME(g(n)), we need a stronger notion of one function growing
More informationDecidability: Church-Turing Thesis
Decidability: Church-Turing Thesis While there are a countably infinite number of languages that are described by TMs over some alphabet Σ, there are an uncountably infinite number that are not Are there
More informationLecture 3. 1 Terminology. 2 Non-Deterministic Space Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, 2005.
Notes on Complexity Theory: Fall 2005 Last updated: September, 2005 Jonathan Katz Lecture 3 1 Terminology For any complexity class C, we define the class coc as follows: coc def = { L L C }. One class
More informationIntroduction to Turing Machines. Reading: Chapters 8 & 9
Introduction to Turing Machines Reading: Chapters 8 & 9 1 Turing Machines (TM) Generalize the class of CFLs: Recursively Enumerable Languages Recursive Languages Context-Free Languages Regular Languages
More informationTime to learn about NP-completeness!
Time to learn about NP-completeness! Harvey Mudd College March 19, 2007 Languages A language is a set of strings Examples The language of strings of all a s with odd length The language of strings with
More informationThe purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational
1 The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational model. We'll remind you what a Turing machine is --- you
More informationCS154, Lecture 10: Rice s Theorem, Oracle Machines
CS154, Lecture 10: Rice s Theorem, Oracle Machines Moral: Analyzing Programs is Really, Really Hard But can we more easily tell when some program analysis problem is undecidable? Problem 1 Undecidable
More informationNormalization by Evaluation
Normalization by Evaluation Andreas Abel Department of Computer Science and Engineering Chalmers and Gothenburg University PhD Seminar in Mathematical Engineering EAFIT University, Medellin, Colombia 9
More information1 From previous lectures
CS 810: Introduction to Complexity Theory 9/18/2003 Lecture 11: P/poly, Sparse Sets, and Mahaney s Theorem Instructor: Jin-Yi Cai Scribe: Aparna Das, Scott Diehl, Giordano Fusco 1 From previous lectures
More informationTuring Machines (TM) The Turing machine is the ultimate model of computation.
TURING MACHINES Turing Machines (TM) The Turing machine is the ultimate model of computation. Alan Turing (92 954), British mathematician/engineer and one of the most influential scientists of the last
More informationTheory of Computation CS3102 Spring 2015 A tale of computers, math, problem solving, life, love and tragic death
Theory of Computation CS3102 Spring 2015 A tale of computers, math, problem solving, life, love and tragic death Robbie Hott www.cs.virginia.edu/~jh2jf Department of Computer Science University of Virginia
More informationΤαουσάκος Θανάσης Αλγόριθμοι και Πολυπλοκότητα II 7 Φεβρουαρίου 2013
Ταουσάκος Θανάσης Αλγόριθμοι και Πολυπλοκότητα II 7 Φεβρουαρίου 2013 Alternation: important generalization of non-determinism Redefining Non-Determinism in terms of configurations: a configuration lead
More informationFinite Model Theory and Descriptive Complexity
3 Finite Model Theory and Descriptive Complexity Erich Grädel This chapter deals with the relationship between logical definability and computational complexity on finite structures. Particular emphasis
More information