# Lecture29 - CSE 421 Algorithms Richard Anderson Lecture 29...

This preview shows pages 1–9. Sign up to view the full content.

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

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Today NP-completeness 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

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
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

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
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?

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Graph Coloring NP-Complete Graph K-coloring Graph 3-coloring Polynomial Graph 2-Coloring
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern