Space Complexity Costas Busch - LSU.

Slides:



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

Giorgi Japaridze Theory of Computability Savitch’s Theorem Section 8.1.
CSCI 4325 / 6339 Theory of Computation Zhixiang Chen.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
Complexity 12-1 Complexity Andrei Bulatov Non-Deterministic Space.
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
Computability and Complexity 14-1 Computability and Complexity Andrei Bulatov Cook’s Theorem.
P and NP Sipser (pages ). CS 311 Fall Polynomial time P = ∪ k TIME(n k ) … P = ∪ k TIME(n k ) … TIME(n 3 ) TIME(n 2 ) TIME(n)
Prof. Busch - LSU1 Decidable Languages. Prof. Busch - LSU2 Recall that: A language is Turing-Acceptable if there is a Turing machine that accepts Also.
Computability and Complexity 19-1 Computability and Complexity Andrei Bulatov Non-Deterministic Space.
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.Moshkovitz 1 Turing Machines. Complexity ©D.Moshkovitz 2 Motivation Our main goal in this course is to analyze problems and categorize them.
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY Read sections 7.1 – 7.3 of the book for next time.
Recursively Enumerable and Recursive Languages
Complexity 1 The Padding Argument. Complexity 2 Motivation: Scaling-Up Complexity Claims space + non-determinism We have: space + determinism can be simulated.
Alternating Turing Machine (ATM) –  node is marked accept iff any of its children is marked accept. –  node is marked accept iff all of its children.
Fall 2005Costas Busch - RPI1 Recursively Enumerable and Recursive Languages.
Fall 2004COMP 3351 Time Complexity We use a multitape Turing machine We count the number of steps until a string is accepted We use the O(k) notation.
Courtesy Costas Busch - RPI1 Reducibility. Courtesy Costas Busch - RPI2 Problem is reduced to problem If we can solve problem then we can solve problem.
Fall 2006Costas Busch - RPI1 The Chomsky Hierarchy.
Fall 2003Costas Busch - RPI1 Turing Machines (TMs) Linear Bounded Automata (LBAs)
Prof. Busch - LSU1 Turing Machines. Prof. Busch - LSU2 The Language Hierarchy Regular Languages Context-Free Languages ? ?
Prof. Busch - LSU1 Reductions. Prof. Busch - LSU2 Problem is reduced to problem If we can solve problem then we can solve problem.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Definition: Let M be a deterministic Turing Machine that halts on all inputs. Space Complexity of M is the function f:N  N, where f(n) is the maximum.
חישוביות וסיבוכיות Computability and Complexity Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A AAAA.
Computational Complexity Theory Lecture 2: Reductions, NP-completeness, Cook-Levin theorem Indian Institute of Science.
Computability NP complete problems. Space complexity. Homework: [Post proposal]. Find PSPACE- Complete problems. Work on presentations.
Costas Busch - LSU1 Turing’s Thesis. Costas Busch - LSU2 Turing’s thesis (1930): Any computation carried out by mechanical means can be performed by a.
Costas Busch - LSU1 Time Complexity. Costas Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
1 Time Complexity We use a multitape Turing machine We count the number of steps until a string is accepted We use the O(k) notation.
NP-complete Languages
Complexity ©D.Moshkovitz 1 Our First NP-Complete Problem The Cook-Levin theorem A B C.
Prof. Busch - LSU1 Time Complexity. Prof. Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
Theory of Computational Complexity Yuji Ishikawa Avis lab. M1.
Fall 2006Costas Busch - RPI1 RE languages and Enumerators.
NP-Completeness A problem is NP-complete if: It is in NP
Turing’s Thesis Costas Busch - LSU.
Recursively Enumerable and Recursive Languages
Part VI NP-Hardness.
Busch Complexity Lectures: Turing Machines
Time Complexity Costas Busch - LSU.
Busch Complexity Lectures: Reductions
Linear Bounded Automata LBAs
Undecidable Problems Costas Busch - LSU.
Reductions Costas Busch - LSU.
Turing’s Thesis Costas Busch - RPI.
Busch Complexity Lectures: Undecidable Problems (unsolvable problems)
Undecidable Problems (unsolvable problems)
Turing acceptable languages and Enumerators
CSE322 The Chomsky Hierarchy
Non-Deterministic Finite Automata
Non-Deterministic Finite Automata
Computational Complexity
Decidable Languages Costas Busch - LSU.
Time Complexity We use a multitape Turing machine
The Off-Line Machine Input File read-only (once) Input string
Turing acceptable languages and Enumerators
Undecidable problems:
CLASSES P AND NP.
Theory of Computability
More Applications of the Pumping Lemma
Umans Complexity Theory Lectures
Our First NP-Complete Problem
Formal Definitions for Turing Machines
The Chomsky Hierarchy Costas Busch - LSU.
Intro to Theory of Computation
CS151 Complexity Theory Lecture 4 April 8, 2004.
Presentation transcript:

Space Complexity Costas Busch - LSU

for deterministic Turing machine: Space complexity for deterministic Turing machine: Maximum number of cells that the machine scans on any input string of size …… …… …… …… input string total space used Costas Busch - LSU

for non-deterministic Turing machine: Space complexity for non-deterministic Turing machine: Maximum number of cells that the machine scans on any input string of size in any computation path …… …… …… …… input string total space used Costas Busch - LSU

all deterministic decidable languages that use space all non-deterministic decidable languages that use space Costas Busch - LSU

Example linear space problem SAT: given a formula check in linear space each possible assignment to variables Costas Busch - LSU

An interesting problem: it is not known if it is in NP However, the problem is in Costas Busch - LSU

Savitch’s Theorem Costas Busch - LSU

Given NTM that decides in space Build DTM that decides in space Costas Busch - LSU

Assume NTM clears the tape when it aceepts and enters a special configuration Costas Busch - LSU

Does configuration yield in steps? Key idea: Does configuration yield in steps? Costas Busch - LSU

Recursion Costas Busch - LSU

recursion Possibilities for : Costas Busch - LSU

Info stored at each tree level: Run: Depth of search tree: Info stored at each tree level: Total space: Costas Busch - LSU

Checks also if space used by NTM is more than f(n) Difficulty: is not known Guess it: Checks also if space used by NTM is more than f(n) Costas Busch - LSU

Trivially: From Savitch theorem: Costas Busch - LSU

Costas Busch - LSU