Richard Anderson Lecture 29 NP-Completeness and course wrap-up

Slides:



Advertisements
Similar presentations
NP-Hard Nattee Niparnan.
Advertisements

What is Intractable? Some problems seem too hard to solve efficiently. Question 1: Does an efficient algorithm exist?  An O(a ) algorithm, where a > 1,
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
Five Problems CSE 421 Richard Anderson Winter 2009, Lecture 3.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Introduction to Approximation Algorithms Lecture 12: Mar 1.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
Approximation Algorithms Lecture for CS 302. What is a NP problem? Given an instance of the problem, V, and a ‘certificate’, C, we can verify V is in.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Lecture 22 More NPC problems
CSEP 521 Applied Algorithms Richard Anderson Lecture 10 NP Completeness.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
CSE332: Data Abstractions Lecture 24.5: Interlude on Intractability Dan Grossman Spring 2012.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
NP-Complete problems.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Introduction to NP Instructor: Neelima Gupta 1.
2016/3/13Page 1 Semester Review COMP3040 Dept. Computer Science and Technology United International College.
CSE 421 Algorithms Richard Anderson Lecture 28 Survey of NP Complete Problems NP-Complete P.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Algorithms Classroom Activities Richard Anderson University of Washington July 3, 20081IUCEE: Algorithm Activities.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
Complexity Classes.
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
Richard Anderson Lectures NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
Lecture 22 Complexity and Reductions
Richard Anderson Lecture 25 Min Cut Applications and NP-Completeness
Richard Anderson Lecture 23 Network Flow
P and NP CISC4080, Computer Algorithms CIS, Fordham Univ.
OVERVIEW 1-st Midterm: 3 problems 2-nd Midterm 3 problems
Graph Algorithm.
CS154, Lecture 16: More NP-Complete Problems; PCPs
ICS 353: Design and Analysis of Algorithms
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Richard Anderson Lecture 25 NP-Completeness
Richard Anderson Lecture 28 NP-Completeness
Richard Anderson Lecture 28 Coping with NP-Completeness
Richard Anderson Lecture 29 NP-Completeness
Richard Anderson Lecture 29 Complexity Theory
CSE 421 Richard Anderson Autumn 2016, Lecture 3
Autumn 2015 Lecture 10 Minimum Spanning Trees
Richard Anderson Lecture 30 NP-Completeness
Richard Anderson Lecture 28 NP Completeness
CSE 421 Richard Anderson Autumn 2015, Lecture 3
Richard Anderson Lecture 27 NP Completeness
Richard Anderson Lecture 26 NP-Completeness
Richard Anderson Winter 2009 Lecture 6
CS154, Lecture 16: More NP-Complete Problems; PCPs
Richard Anderson Lecture 27 Survey of NP Complete Problems
CSE 421, University of Washington, Autumn 2006
CSE 589 Applied Algorithms Spring 1999
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
CSE 421 Richard Anderson Winter 2019, Lecture 3
Richard Anderson Lecture 25 NP Completeness
Richard Anderson Winter 2019 Lecture 6
Richard Anderson Lecture 5 Graph Theory
Our old list of problems
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
Review for Final Neil Tang 05/01/2008
Richard Anderson Autumn 2015 Lecture 6
Lecture 22 Complexity and Reductions
CSE 421 Richard Anderson Autumn 2019, Lecture 3
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Richard Anderson Lecture 29 NP-Completeness and course wrap-up CSE 421 Algorithms Richard Anderson Lecture 29 NP-Completeness and course wrap-up

Today NP-completeness Course summary Evaluations Reductions Problem Thresholds Number problems What is NP? What we don’t know about NP-completeness Course summary Evaluations

NP-Completeness Reductions If X is NP-Complete, Y is in NP, and X <P Y, then Y is NP-Complete

Hamiltonian Circuit, Hamiltonian Path How do you show that Hamiltonian Path is NP-Complete?

Local Modification Convert G to G’ Pick a vertex v Replace v by v’ and v’’ If (u,v) is an edge, include edges (u, v’), (u, v’’) G’ has a Hamiltonian Path from v’ to v’’ iff G has a Hamiltonian Circuit

HamPath <P DirHamPath How do you show that Directed Hamiltonian Path is NP-Complete?

Problem definition Given a graph G, does G have an independent set? Given a graph G, does G have an independent set of size 7? Given a graph G, and an integer K, does G have an independent set of size K?

Graph Coloring NP-Complete Polynomial Graph K-coloring

Number Problems Subset sum problem Subset sum problem is NP-Complete Given natural numbers w1,. . ., wn and a target number W, is there a subset that adds up to exactly W? Subset sum problem is NP-Complete Subset Sum problem can be solved in O(nW) time

Subset sum problem The reduction to show Subset Sum is NP-complete involves numbers with n digits In that case, the O(nW) algorithm is an exponential time and space algorithm

What is NP? Problems where ‘yes’ instances can be efficiently verified Hamiltonian Circuit 3-Coloring 3-SAT Succinct certificate property

What about ‘negative instances’ How do you show that a graph does not have a Hamiltonian Circuit How do you show that a formula is not satisfiable?

What we don’t know P vs. NP NP-Complete NP = P NP P

Course summary What did we cover in the last 29 lectures? Stable Matching (2) Models of computation and efficiency (1) Basic graph algorithms BFS, Bipartiteness, SCC, Cycles, Topological Sort (2) Greedy Algorithms (2) Interval Scheduling, HW Scheduling Correctness proofs Dijkstra’s Algorithm (1) Minimum Spanning Trees (2) Recurrences (2) Divide and Conquer Algorithms (3) Closest Pair, FFT Dynamic Programming (7) Weighted interval scheduling, subset sum, knapsack, longest common subsequence, shortest paths Network Flow (5) Ford Fulkerson, Maxflow/mincut, Applications NP-Completeness (3) Number of lectures on each topic in parentheses