CS 310 – Fall 2006 Pacific University CS310 P vs NP the steel cage death match Section 7.2 November 29, 2006.

Slides:



Advertisements
Similar presentations
Time Complexity P vs NP.
Advertisements

INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
The class NP Section 7.3 Giorgi Japaridze Theory of Computability.
NP-Completeness Lecture for CS 302. Traveling Salesperson Problem You have to visit n cities You want to make the shortest trip How could you do this?
Complexity class NP Is the class of languages that can be verified by a polynomial-time algorithm. L = { x in {0,1}* | there exists a certificate y with.
Lecture 21 Nondeterministic Polynomial time, and the class NP FIT2014 Theory of Computation Monash University Faculty of Information Technology Slides.
The diagonalization method The halting problem is undecidable Decidability.
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
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)
NP-completeness Sipser 7.4 (pages 271 – 283). CS 311 Mount Holyoke College 2 The classes P and NP NP = ∪ k NTIME(n k ) P = ∪ k TIME(n k )
NP-completeness Sipser 7.4 (pages 271 – 283). CS 311 Fall The classes P and NP NP = ∪ k NTIME(n k ) P = ∪ k TIME(n k )
FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY Read sections 7.1 – 7.3 of the book for next time.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
1 Other Models of Computation. 2 Models of computation: Turing Machines Recursive Functions Post Systems Rewriting Systems.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture 8+9 Time complexity 1 Jan Maluszynski, IDA, 2007
Time Complexity.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
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.
CS 310 – Fall 2006 Pacific University CS310 Complexity Section 7.1 November 27, 2006.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
CS 461 – Nov. 21 Sections 7.1 – 7.2 Measuring complexity Dividing decidable languages into complexity classes. Algorithm complexity depends on what kind.
חישוביות וסיבוכיות Computability and Complexity Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A AAAA.
The class P Section 7.2 CSC 4170 Theory of Computation.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
Complexity Non-determinism. NP complete problems. Does P=NP? Origami. Homework: continue on postings.
Complexity 25-1 Complexity Andrei Bulatov Counting Problems.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Measuring complexity Section 7.1 Giorgi Japaridze Theory of Computability.
Computability Heap exercise. The class P. The class NP. Verifiers. Homework: Review RELPRIME proof. Find examples of problems in NP.
Automata & Formal Languages, Feodor F. Dragan, Kent State University 1 CHAPTER 7 Time complexity Contents Measuring Complexity Big-O and small-o notation.
CSCI 2670 Introduction to Theory of Computing November 17, 2005.
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 7 Time Complexity Some slides are in courtesy.
CS 461 – Nov. 18 Section 7.1 Overview of complexity issues –“Can quickly decide” vs. “Can quickly verify” Measuring complexity Dividing decidable languages.
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.
Computational Complexity Shirley Moore CS4390/5390 Fall 2013 August 27, 2013.
April 13 th Class Notes Hw# 5 will be worth 50 points and it will be posted tonight or tomorrow.
Complexity 24-1 Complexity Andrei Bulatov Counting Problems.
Prof. Busch - LSU1 Time Complexity. Prof. Busch - LSU2 Consider a deterministic Turing Machine which decides a language.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
Theory of Computational Complexity TA : Junichi Teruyama Iwama lab. D3
CSCI 2670 Introduction to Theory of Computing November 15, 2005.
 2005 SDU Lecture14 Mapping Reducibility, Complexity.
NP-Completeness A problem is NP-complete if: It is in NP
CSE 105 theory of computation
Computational Complexity Theory
CSCI 2670 Introduction to Theory of Computing
CSC 4170 Theory of Computation The class P Section 7.2.
CSC 4170 Theory of Computation The class P Section 7.2.
CSCI 2670 Introduction to Theory of Computing
CSCI 2670 Introduction to Theory of Computing
Intro to Theory of Computation
Intro to Theory of Computation
Automata and Formal Languages (Final Review)
Computational Complexity
Time Complexity We use a multitape Turing machine
Section 14.3 Complexity Classes
CSC 4170 Theory of Computation The class NP Section 7.3.
CS154, Lecture 13: P vs NP.
Theory of Computability
CS21 Decidability and Tractability
Time Complexity Classes
CSCI 2670 Introduction to Theory of Computing
CSE 105 theory of computation
Theory of Computability
Theory of Computability
Presentation transcript:

CS 310 – Fall 2006 Pacific University CS310 P vs NP the steel cage death match Section 7.2 November 29, 2006

CS 310 – Fall 2006 Pacific University Polynomial vs Exponential Polynomial: n 3 Exponential: 3 n n=1 to 10 What if n = 1000?

CS 310 – Fall 2006 Pacific University Complexity relationships between models Theorem 7.8: let t(n) >= n, every t(n) time multi-tape TM has an equivalent O((t(n) 2 ) time single-tape TM. –polynomial difference Theorem 7.9: Every t(n) >= n time ND single tape TM has an equivalent 2 O(t(n)) time deterministic single tape TM –exponential difference

CS 310 – Fall 2006 Pacific University The class P P is the class of languages that are decidable in polynomial time on a deterministic, single tape TM Problems in class P –PATH: { | G is a directed graph, find a directed path from s to d } –RELPRIME: { | x and y are relatively prime} Euclidean algorithm Every context-free language is in P

CS 310 – Fall 2006 Pacific University Real Life Problems in class P are usually manageable on a real computer –n K –though k=100 may introduce some practical problems

CS 310 – Fall 2006 Pacific University The class NP NP is the class of languages that are decidable in polynomial time on a nondeterministic single tape TM –Problems in class NP HAMPATH: { | G is a directed graph, with Hamilton path from s to t } (a path that passes through every vertex of a graph exactly once) –These problems are decidable on a deterministic single tape TM in exponential time

CS 310 – Fall 2006 Pacific University Verifier A verifier of a language, A, is an algorithm, V, such that A = { w | V accepts for some string c} where c is a certificate (additional information that provides proof) |c| is polynomial in terms of |w| NP is the class of languages that have polynomial time (in terms of the length of w) verifiers

CS 310 – Fall 2006 Pacific University P vs NP P  NP –unknown if the classes are unequal If P = NP, then all problems in NP can be solved in polynomial time, if we are clever enough to find the right algorithm NP-Completeness –set of problems in NP whose complexity is related to all problems in NP –if an NP-Complete problem can be shown to be in P, then P=NP –boolean satisfiability, for example