CSCE423/823 Introduction Proofs of NPC Problems
2pt 0em Computer Science & Engineering 423/823 Design and Analysis of Algorithms
Lecture 08 — NP-Completeness (Chapter 34) Stephen Scott (Adapted from Vinodchandran N. Variyam)
1 / 44
2pt 0em CSCE423/823 Computer Science & Engineering 423/823 - - PowerPoint PPT Presentation
2pt 0em CSCE423/823 Computer Science & Engineering 423/823 Introduction Proofs of NPC Design and Analysis of Algorithms Problems Lecture 08 NP-Completeness (Chapter 34) Stephen Scott (Adapted from Vinodchandran N. Variyam) 1 / 44
CSCE423/823 Introduction Proofs of NPC Problems
1 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
2 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
3 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
4 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
5 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
..
6 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
1
2
7 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
8 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
9 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
1
2
10 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
11 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
12 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
13 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
14 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
1
2
15 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
16 / 44
CSCE423/823 Introduction
Efficiency P vs. NP NP- Completeness Proving NP- Completeness Reductions CIRCUIT-SAT Other NPC Problems
Proofs of NPC Problems
17 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
2
3
18 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
19 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
20 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
21 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
22 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
23 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
2
3
i to get its DNF, then convert it
i
4
i to get three literals in it, yielding 000 i
5
i 000 i
24 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
25 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
26 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
27 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
2
3
28 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
2
3
1
2
3
4
29 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
30 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
31 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
i and vs j are in separate triples
2
i is not the negation of `s j
32 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
33 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
34 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
35 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
36 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
37 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
38 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
2
39 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
1
2
i, each with a 1 in xi’s digit
i if ¬xi in Cj
3
j, where sj has a 1 in Cj’s
j has a 2 in Cj’s digit and 0 elsewhere
40 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
41 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
42 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
43 / 44
CSCE423/823 Introduction Proofs of NPC Problems
SAT 3-CNF-SAT CLIQUE VERTEX- COVER SUBSET-SUM
44 / 44