NP and NP completeness 姚鹏晖

Slides:



Advertisements
Similar presentations
Time Complexity P vs NP.
Advertisements

CS 345: Chapter 9 Algorithmic Universality and Its Robustness
Variants of Turing machines
JAYASRI JETTI CHINMAYA KRISHNA SURYADEVARA
Cook’s Theorem The Foundation of NP-Completeness.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
NP Completeness Tractability Polynomial time Computation vs. verification Power of non-determinism Encodings Transformation & reducibilities P vs. NP “Completeness”
Complexity 25-1 Complexity Andrei Bulatov #P-Completeness.
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 · L 2 means: For some polynomial time computable map r : 8 x: x 2 L 1 iff.
Computability and Complexity 14-1 Computability and Complexity Andrei Bulatov Cook’s Theorem.
1 Introduction to Computability Theory Lecture11: Variants of Turing Machines Prof. Amos Israeli.
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.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
Courtesy Costas Busch - RPI1 Turing’s Thesis. Courtesy Costas Busch - RPI2 Turing’s thesis: Any computation carried out by mechanical means can be performed.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
Lecture 5 Turing Machines
1 Other Models of Computation. 2 Models of computation: Turing Machines Recursive Functions Post Systems Rewriting Systems.
NP-complete and NP-hard problems
1 Variations of the Turing Machine part2. 2 Standard Machine--Multiple Track Tape track 1 track 2 one symbol.
Computability and Complexity 3-1 Turing Machine Computability and Complexity Andrei Bulatov.
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.
Fall 2004COMP 3351 Turing’s Thesis. Fall 2004COMP 3352 Turing’s thesis: Any computation carried out by mechanical means can be performed by a Turing Machine.
Final Exam Review Cummulative Chapters 0, 1, 2, 3, 4, 5 and 7.
1 Turing Machines. 2 A Turing Machine Tape Read-Write head Control Unit.
חישוביות וסיבוכיות Computability and Complexity Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A AAAA.
Internet Engineering Czesław Smutnicki Discrete Mathematics – Computational Complexity.
Complexity theory and combinatorial optimization Class #2 – 17 th of March …. where we deal with decision problems, finite automata, Turing machines pink.
Computational Complexity Theory Lecture 2: Reductions, NP-completeness, Cook-Levin theorem Indian Institute of Science.
Integer Programming I.5. Computational Complexity  Nemhauser and Wolsey, p Ref: Computers and Intractability: A Guide to the Theory of NP-
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
Complexity 25-1 Complexity Andrei Bulatov Counting Problems.
1 P P := the class of decision problems (languages) decided by a Turing machine so that for some polynomial p and all x, the machine terminates after at.
Lecture 12 P and NP Introduction to intractability Class P and NP Class NPC (NP-complete)
NP-completeness Class of hard problems. Jaruloj ChongstitvatanaNP-complete Problems2 Outline  Introduction  Problems and Languages Turing machines and.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
Umans Complexity Theory Lectures Lecture 1c: Robust Time & Space Classes.
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.
1 Section 13.1 Turing Machines A Turing machine (TM) is a simple computer that has an infinite amount of storage in the form of cells on an infinite tape.
1 Turing Machines and Equivalent Models Section 13.1 Turing Machines.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
1 Finite Model Theory Lecture 5 Turing Machines and Finite Models.
1 Introduction to Turing Machines
Recall last lecture and Nondeterministic TMs Ola Svensson.
Turing Machines CS 130 Theory of Computation HMU Textbook: Chap 8.
Modeling Arithmetic, Computation, and Languages Mathematical Structures for Computer Science Chapter 8 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesTuring.
Turing’s Thesis.
NP-Completeness NP-Completeness Graphs 5/7/ :49 PM x x x x x x x
Busch Complexity Lectures: Turing Machines
CSCI 2670 Introduction to Theory of Computing
COSC 3340: Introduction to Theory of Computation
OTHER MODELS OF TURING MACHINES
Turing’s Thesis Costas Busch - RPI.
NP-Completeness NP-Completeness Graphs 11/16/2018 2:32 AM x x x x x x
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
Automata and Formal Languages (Final Review)
NP-Completeness NP-Completeness Graphs 12/3/2018 2:46 AM x x x x x x x
Computational Complexity
The Off-Line Machine Input File read-only (once) Input string
Variations of the Turing Machine
CS154, Lecture 13: P vs NP.
Recall last lecture and Nondeterministic TMs
Turing Machines Complexity ©D.Moshkovitz.
Umans Complexity Theory Lectures
Our First NP-Complete Problem
The Polynomial Hierarchy Enumeration Problems 7.3.3
Instructor: Aaron Roth
Hopcroft, Motawi, Ullman, Chap 8
Theory of Computation Lecture 23: Turing Machines III
Presentation transcript:

NP and NP completeness 姚鹏晖 Email: pyao@nju.edu.cn 助教: 刘明谋 liu.mingmou@smail.nju.edu.cn 答疑时间: 周四 2pm-4pm, 计算机科学与技术楼 502

What we have learnt Turing machines: a mathematical model of computational processes. Church-Turing thesis. The existence of universal Turing machines. The existence of uncomputable functions. Halting problem. The complexity class P, which captures all the problems that are efficiently solvable. Robustness of the definition of Turing machines. Strong Church-Turing thesis.

Definition of NP

Examples in NP

Examples in NP

Relation between NP and P

Deterministic Turing machines

Nondeterministic Turing machines

Nondeterministic Turing machines

Nondeterministic Turing machines

Reducibility and NP-Completeness

Reducibility and NP-Completeness

Reducibility and NP-Completeness

Reducibility and NP-Completeness

The Cook-Levin Theorem

The Cook-Levin Theorem

Computation is local ? It can be verified locally

Must accept within p(n) steps. Variables interpretation Numbers Expression Interpretation Numbers Initial contents of the cells Initial state of M 1 Initial position of the heads At most one symbol per cell At least one symbol per cell Cells remain unchanged unless written Only one state at a time Only one head position at a time Possible transitions step t when the head of i-th tape is at position j Must accept within p(n) steps.

The Cook-Levin Theorem

The Cook-Levin Theorem

Examples in NP

Examples in NP

Decision vs. Search

Must accept within p(n) steps. Variables interpretation Numbers Expression Interpretation Numbers Initial contents of the cells Initial state of M 1 Initial position of the heads At most one symbol per cell At least one symbol per cell Cells remain unchanged unless written Only one state at a time Only one head position at a time Possible transitions step t when the head of i-th tape is at position j Must accept within p(n) steps.

CoNP

NEXP

What if P=NP?

What if P≠NP?