CS3343 -- Fall 2011
P and NP
Carola Wenk Slides courtesy of Piotr Indyk with small changes
11/29/11 CS 3343 Analysis of Algorithms 1
P and NP Carola Wenk Slides courtesy of Piotr Indyk with small - - PowerPoint PPT Presentation
CS3343 -- Fall 2011 P and NP Carola Wenk Slides courtesy of Piotr Indyk with small changes y y g by Carola Wenk 11/29/11 CS 3343 Analysis of Algorithms 1 We have seen so far Algorithms for various problems Running times O( nm 2
11/29/11 CS 3343 Analysis of Algorithms 1
11/29/11 CS 3343 Analysis of Algorithms 2
2
5 8 10 4 2 9 11
9 8 5 3 11 6
7
11/29/11 CS 3343 Analysis of Algorithms 3
11/29/11 CS 3343 Analysis of Algorithms 4
11/29/11 CS 3343 Analysis of Algorithms 5
11/29/11 CS 3343 Analysis of Algorithms 6
11/29/11 CS 3343 Analysis of Algorithms 7
11/29/11 CS 3343 Analysis of Algorithms 8
2( )
11/29/11 CS 3343 Analysis of Algorithms 9
11/29/11 CS 3343 Analysis of Algorithms 10
11/29/11 CS 3343 Analysis of Algorithms 11
11/29/11 CS 3343 Analysis of Algorithms 12
11/29/11 CS 3343 Analysis of Algorithms 13
11/29/11 CS 3343 Analysis of Algorithms 14
11/29/11 CS 3343 Analysis of Algorithms 15
11/29/11 CS 3343 Analysis of Algorithms 16
11/29/11 CS 3343 Analysis of Algorithms 17
11/29/11 CS 3343 Analysis of Algorithms 18
11/29/11 CS 3343 Analysis of Algorithms 19
11/29/11 CS 3343 Analysis of Algorithms 20
11/29/11 CS 3343 Analysis of Algorithms 21
11/29/11 CS 3343 Analysis of Algorithms 22
11/29/11 CS 3343 Analysis of Algorithms 23
11/29/11 CS 3343 Analysis of Algorithms 24
Follow from Cook’s Theorem (thanks, Steve ☺ )
11/29/11 CS 3343 Analysis of Algorithms 25
11/29/11 CS 3343 Analysis of Algorithms 26
11/29/11 CS 3343 Analysis of Algorithms 27
11/29/11 CS 3343 Analysis of Algorithms 28
x1 ¬x2 ¬ x3 x2 x3 x2 ¬ x1
11/29/11 CS 3343 Analysis of Algorithms 29
x1 ¬x2 ¬ x3
x2 x3
3
x2
¬ x1
11/29/11 CS 3343 Analysis of Algorithms 30
x1 ¬x2 ¬ x3
x2 x3
3
x2
¬ x1
11/29/11 CS 3343 Analysis of Algorithms 31
11/29/11 CS 3343 Analysis of Algorithms 32
11/29/11 CS 3343 Analysis of Algorithms 33
11/29/11 CS 3343 Analysis of Algorithms 34
11/29/11 CS 3343 Analysis of Algorithms 35
11/29/11 CS 3343 Analysis of Algorithms 36