Lecture 1-2 Time and Space of DTM

Slides:



Advertisements
Similar presentations
Part VI NP-Hardness. Lecture 23 Whats NP? Hard Problems.
Advertisements

Lecture 3 Universal TM. Code of a DTM Consider a one-tape DTM M = (Q, Σ, Γ, δ, s). It can be encoded as follows: First, encode each state, each direction,
Lecture 16 Deterministic Turing Machine (DTM) Finite Control tape head.
Lecture 23 Space Complexity of DTM. Space Space M (x) = # of cell that M visits on the work (storage) tapes during the computation on input x. If M is.
Lecture 24 Time and Space of NTM. Time For a NDM M and an input x, Time M (x) = the minimum # of moves leading to accepting x if x ε L(M) = infinity if.
Resource-Bounded Computation Previously: can it be done? Now: how efficiently can it be done? Goal: conserve computational resources: Time, space, other.
Umans Complexity Theory Lectures Lecture 2a: Reductions & Completeness.
Nathan Brunelle Department of Computer Science University of Virginia Theory of Computation CS3102 – Spring 2014 A tale.
Complexity 7-1 Complexity Andrei Bulatov Complexity of Problems.
Complexity 12-1 Complexity Andrei Bulatov Non-Deterministic Space.
Computability and Complexity 22-1 Computability and Complexity Andrei Bulatov Hierarchy Theorem.
Complexity 13-1 Complexity Andrei Bulatov Hierarchy Theorem.
P, NP, PS, and NPS By Muhannad Harrim. Class P P is the complexity class containing decision problems which can be solved by a Deterministic Turing machine.
Complexity ©D.Moshkovits 1 Space Complexity Complexity ©D.Moshkovits 2 Motivation Complexity classes correspond to bounds on resources One such resource.
Computability and Complexity 20-1 Computability and Complexity Andrei Bulatov Class NL.
1 Slides: Asaf Shapira & Oded Schwartz; Sonny Ben-Shimon & Yaniv Nahum. Sonny Ben-Shimon & Yaniv Nahum. Notes: Leia Passoni, Reuben Sumner, Yoad Lustig.
Fall 2003Costas Busch - RPI1 Turing Machines (TMs) Linear Bounded Automata (LBAs)
CS 310 – Fall 2006 Pacific University CS310 Complexity Section 7.1 November 27, 2006.
Lecture 18 Various TMs. Allow the head not move Theorem. If the head is allowed to stay at the cell in each move, then every function computed by the.
CS 461 – Nov. 21 Sections 7.1 – 7.2 Measuring complexity Dividing decidable languages into complexity classes. Algorithm complexity depends on what kind.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
Theory of Computing Lecture 15 MAS 714 Hartmut Klauck.
Ding-Zhu Du Office: ECSS 3-611, M 3:15-4:30 Lecture: ECSS 2.311, MW 12:30-1:45.
Complexity theory and combinatorial optimization Class #2 – 17 th of March …. where we deal with decision problems, finite automata, Turing machines pink.
Theory of Computing Lecture 17 MAS 714 Hartmut Klauck.
Theory of Computing Lecture 21 MAS 714 Hartmut Klauck.
Hierarchy theorems Section 9.1 Giorgi Japaridze Theory of Computability.
Lecture 22. Time of DTM. Time of DTM Time M (x) = # of moves that DTM M takes on input x. Time M (x) < infinity iff x ε L(M).
Umans Complexity Theory Lectures Lecture 1c: Robust Time & Space Classes.
Fall 2013 CMU CS Computational Complexity Lecture 2 Diagonalization, 9/12/2013.
Lecture 4 Hierarchy Theorem. Space Hierarchy Theorem.
Umans Complexity Theory Lectures Lecture 1b: Turing Machines & Halting Problem.
Lecture 2 Time and Space of DTM. Time of DTM Time M (x) = # of moves that DTM M takes on input x. Time M (x) < infinity iff x ε L(M).
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
1 8.4 Extensions to the Basic TM Extended TM’s to be studied: Multitape Turing machine Nondeterministic Turing machine The above extensions make no increase.
Recall last lecture and Nondeterministic TMs Ola Svensson.
Chapter 7 Introduction to Computational Complexity.
The Church-Turing Thesis
CSCI 2670 Introduction to Theory of Computing November 15, 2005.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
Design and Analysis of Approximation Algorithms
Turing’s Thesis.
Turing’s Thesis Costas Busch - LSU.
Computational Complexity Theory
Lecture 1-2 Time and Space of DTM
Space Complexity Complexity ©D.Moshkovits.
Complexity & the O-Notation
Time complexity Here we will consider elements of computational complexity theory – an investigation of the time (or other resources) required for solving.
Part VI NP-Hardness.
Turing Machines Space bounds Reductions Complexity classes
Polynomial time The Chinese University of Hong Kong Fall 2010
Umans Complexity Theory Lectures
Turing’s Thesis Costas Busch - RPI.
HIERARCHY THEOREMS Hu Rui Prof. Takahashi laboratory
CSE322 The Chomsky Hierarchy
Intractable Problems Time-Bounded Turing Machines Classes P and NP
Intro to Theory of Computation
Chapter 14 Time Complexity.
CS154, Lecture 12: Time Complexity
Part II Theory of Nondeterministic Computation
Recall last lecture and Nondeterministic TMs
CS21 Decidability and Tractability
Umans Complexity Theory Lectures
CS21 Decidability and Tractability
CS151 Complexity Theory Lecture 1 April 2, 2019.
DSPACE Slides By: Alexander Eskin, Ilya Berdichevsky
CS6382 Theory of Computation
The Chomsky Hierarchy Costas Busch - LSU.
Intro to Theory of Computation
Presentation transcript:

Lecture 1-2 Time and Space of DTM

Model Multitape TM with write-only output.

Time of DTM

Time Bound M is said to have a time bound t(n) if for every x with |x| < n, TimeM(x) < max {n+1, t(n)}

Theorem For any multitape DTM M, there exists a one-tape DTM M’ to simulate M within time TimeM’(x) < c + (TimeM(x)) c is a constant. 2

Complexity Class A language L has a (deterministic) time-complexity t(n) if there is a multitape DTM M accepting L, with time bound t(n). DTIME(t(n)) = {L | L has a time bound t(n)}

Linear Speed Up

1--m Bee dance 3m q

1--m a b c d e f initial 3m q

1--m a b c d e f 1st bee dance 3m c d q

1--m a b c d e f 1st bee dance 3m c d e f q

1--m a b c d e f 1st bee dance 3m c d e f q

1--m a b c d e f 1st bee dance 3m a b c d e f q

1--m a b c d e f 3m a’ b’ c’ d’ e’ f’ p

1--m a b c’ d’ e f 2nd bee dance 3m a’ b’ e’ f’ p

1--m a b c’ d’ e’ f’ 2nd bee dance 3m a’ b’ p

1--m a b c’ d’ e’ f’ 2nd bee dance 3m a’ b’ p

1--m a’ b’ c’ d’ e’ f’ 2nd bee dance 3m p

1--m a’ b’ c’ d’ e’ f’ initial 3m p

Model Independent Classes

Space SpaceM(x) = total # of cells that M visits on all working (storage) tapes during the computation on input x. If M is a multitape DTM, then the working tapes do not include the input tape and the write-only output tape.

Multi-tape DTM Input tape (read only) working tapes Output tape (possibly, write only)

Space Bound A DTM with k work tapes is said to have a space bound s(n) if for any input x with |x| < n, SpaceM(x) < max{k, s(n)}.

Time and Space For any DTM with k work tapes, SpaceM(x) < k (TimeM(x) + 1)

Complexity Classes A language L has a space complexity s(n) if it is accepted by a multitape with write-only output tape DTM with space bound s(n). DSPACE(s(n)) = {L | L has space complexity s(n)}

Tape Compression Theorem

1--m 3m

Model Independent Classes P = U c>0 DTIME(n ) EXP = U c > 0 DTIME(2 ) EXPOLY = U c > 0 DTIME(2 ) PSPACE = U c > 0 DSPACE(n ) c cn c n c

Extended Church-Turing Thesis A function computable in polynomial time in any reasonable computational model using a reasonable time complexity measure is computable by a DTM in polynomial time.

P PSPACE SpaceM(x) < k (TimeM(x) + 1)

PSPACE EXPOLY

Input tape (read only) working tapes Output tape (possibly, write only)

“Sufficiently large”

A, B P imply A U B P

A, B P imply AB P

L P implies L* P

All regular sets belong to P

Space Hierarchy Theorem

Space-constructible function s(n) is fully space-constructible if there exists a DTM M such that for sufficiently large n and any input x with |x|=n, SpaceM(x) = s(n).

Space Hierarchy If s2(n) is a fully space-constructible function, s1(n)/s2(n) → 0 as n → infinity, s1(n) > log n, then DSPACE(s2(n)) DSPACE(s1(n)) ≠ Φ

Time Hierarchy

Time-constructible function t(n) is fully time-constructible if there exists a DTM such that for sufficiently large n and any input x with |x|=n, TimeM(x) = t(n).

Time Hierarchy If t1(n) > n+1, t2(n) is fully time-constructible, t1(n) log t1(n) /t2(n) → 0 as n → infinity, then DTIME(t2(n)) DTIME(t1(n)) ≠ Φ

P EXP Could you prove

PSPACE≠EXP