Intro to Theory of Computation

Slides:



Advertisements
Similar presentations
NP-Hard Nattee Niparnan.
Advertisements

The Theory of NP-Completeness
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
Computability and Complexity 13-1 Computability and Complexity Andrei Bulatov The Class NP.
Transitivity of  poly Theorem: Let ,  ’, and  ’’ be three decision problems such that   poly  ’ and  ’  poly  ’’. Then  poly  ’’. Proof:
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
CS Master – Introduction to the Theory of Computation Jan Maluszynski - HT Lecture NP-Completeness Jan Maluszynski, IDA, 2007
February 25, 2015CS21 Lecture 211 CS21 Decidability and Tractability Lecture 21 February 25, 2015.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 31.
11/3/10 A. Smith; based on slides by E. Demaine, C. Leiserson, S. Raskhodnikova, K. Wayne Adam Smith Algorithm Design and Analysis L ECTURES NP-completeness.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
Polynomial-time reductions We have seen several reductions:
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
30.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
1 How to establish NP-hardness Lemma: If L 1 is NP-hard and L 1 ≤ L 2 then L 2 is NP-hard.
LIMITATIONS OF ALGORITHM POWER
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
CSE 421 Algorithms Richard Anderson Lecture 29 Complexity Theory NP-Complete P.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Theory of NP-Completeness
NP-Completeness A problem is NP-complete if: It is in NP
Data Structures and Algorithm Analysis Lecture 24
Chapter 10 NP-Complete Problems.
Computational Complexity Theory
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Great Theoretical Ideas in Computer Science
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
Richard Anderson Lecture 25 Min Cut Applications and NP-Completeness
CS21 Decidability and Tractability
Intro to Theory of Computation
Great Ideas in Computing Complexity Theory
Intro to Theory of Computation
ICS 353: Design and Analysis of Algorithms
Intro to NP Completeness
Intro to Theory of Computation
Richard Anderson Lecture 25 NP-Completeness
Intro to Theory of Computation
Richard Anderson Lecture 28 NP-Completeness
Richard Anderson Lecture 29 NP-Completeness
Richard Anderson Lecture 29 Complexity Theory
Chapter 34: NP-Completeness
Richard Anderson Lecture 30 NP-Completeness
Richard Anderson Lecture 27 NP Completeness
NP-completeness The Chinese University of Hong Kong Fall 2008
CS 3343: Analysis of Algorithms
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness Yin Tat Lee
The Theory of NP-Completeness
NP-Completeness Lecture for CS 302.
Richard Anderson Lecture 27 Survey of NP Complete Problems
Trevor Brown DC 2338, Office hour M3-4pm
Richard Anderson Lecture 25 NP Completeness
Lecture 24 Classical NP-hard Problems
Instructor: Aaron Roth
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Intro to Theory of Computation
Lecture 23 NP-Hard Problems
Presentation transcript:

Intro to Theory of Computation LECTURE 27 Last time Polynomial-time reductions NP-completeness Cook-Levin theorem Today Examples of NP-complete problems CS 464 Sofya Raskhodnikova 11/22/2018 S. Raskhodnikova; based on slides by N. Hopper and K. Wayne.

The class NP NP is the class of languages that have polynomial-time verifiers. 11/22/2018

I-clicker question (frequency: AC) Recall: The running time of a verifier V( 〈𝑤,𝑐〉 ) is measured only in terms of length of w. If we allowed a verifier to run in time polynomial in the length of 𝑤,𝑐 , 𝐭𝐡𝐞 𝐜𝐥𝐚𝐬𝐬 𝐍𝐏 would be smaller be the same contain more (decidable only) languages contain more (even undecidable) languages none of the above t(n)= n log n 3/17/2016

I-clicker question (frequency: AC) 3SAT is an example of a problem that cannot be solved by an algorithm. True False It is an open question None of the above t(n)= n log n 3/17/2016

I-clicker question (frequency: AC) 3SAT is an example of a problem that cannot be solved by a polynomial time algorithm. True False It is an open question None of the above t(n)= n log n 3/17/2016

A language B is NP-complete if Hardest problems in NP A language B is NP-complete if B∈𝐍𝐏 B is NP-hard,i.e., every language in NP is poly-time reducible to B. P NP B 11/22/2018

Establishing NP-completeness Once we establish first "natural" NP-complete problems, others fall like dominoes. Recipe to establish NP-completeness of problem Y. Step 1. Show that Y is in NP. Step 2. Choose an NP-complete problem X (e.g., 3SAT). Step 3. Prove that X  p Y. 11/22/2018

SUBSET-SUM SSUM = { 𝑆,𝑡 ∣𝑆={ 𝑥 1 ,…, 𝑥 𝑟 }, and for some 𝑦 1 ,…, 𝑦 𝑟′ ⊆ 𝑥 1 ,…, 𝑥 𝑟 , we have 𝑦 1 +…+ 𝑦 𝑟′ =𝑡} Repetitions allowed. Examples: 5, 7, 23 ,46 〉 SSUM ∈ NP ∈𝑆𝑆𝑈𝑀 5, 15, 25 ,46 〉 ∉𝑆𝑆𝑈𝑀 Warning: should remove ``repetitions allowed’’. Otherwise, the reduction in the book does not work. Certificate: 𝑦 1 ,…, 𝑦 𝑟′ 11/22/2018

3SAT ≤ 𝒑 SUBSET-SUM SSUM = { 𝑆,𝑡 ∣𝑆={ 𝑥 1 ,…, 𝑥 𝑟 }, and for some 𝑦 1 ,…, 𝑦 𝑟′ ⊆ 𝑥 1 ,…, 𝑥 𝑟 , we have 𝑦 1 +…+ 𝑦 𝑟′ =𝑡} ``On input 〈𝜙〉, where 𝜙 is a 3CFN formula with variables 𝑥 1 ,…, 𝑥 ℓ and clauses 𝑐 1 ,…, 𝑐 𝑘 , Output a set S of numbers and target number t (constructed on the board) ’’ 11/22/2018

TSP (Traveling Salesman) NP-Completeness All problems below are NP-complete and hence poly-time reduce to one another! by definition of NP-completeness CIRCUIT-SAT 3SAT 3SAT reduces to INDEPENDENT SET INDEPENDENT SET HAMPATH GRAPH 3-COLOR SUBSET-SUM Karp analyzed most juicy open problem in discrete math – showed most were NP-complete x -> y means x reduces to y (if you can solve y, then you can solve x) Then to join the NP complete club, you need a reduction from SAT (or any other current member) to you VERTEX COVER UHAMPATH PLANAR 3-COLOR SCHEDULING SET COVER TSP (Traveling Salesman) 11/22/2018

Some NP-Complete Problems Six basic genres of NP-complete problems and paradigmatic examples. Packing problems: SET-PACKING, INDEPENDENT SET. Covering problems: SET-COVER, VERTEX-COVER. Constraint satisfaction problems: SAT, 3-SAT. Sequencing problems: HAMPATH, TSP. Partitioning problems: 3D-MATCHIN,G 3-COLOR. Numerical problems: SUBSET-SUM, KNAPSACK. Most NP problems are either known to be in P or NP-complete. Notable exceptions. Factoring, graph isomorphism, Nash equilibrium. Nash equilibria in two-person non-zero-sum game always exist, but major open question to *find* such a solution in poly-time. [Is there a corresponding decision problem or is only the search problem interesting from a computational complexity viewpoint?] 11/22/2018

An encyclopedia of NP-complete problems 11/22/2018