2013.01.14-ece595e-l04
TRANSCRIPT
-
7/29/2019 2013.01.14-ECE595E-L04
1/18
ECE 595, Section 10Numerical Simulations
Lecture 4:NP
-hardness
Prof. Peter Bermel
January 14, 2013
-
7/29/2019 2013.01.14-ECE595E-L04
2/18
Outline
Recap from Friday
Class NP
Non-deterministic Turing machines Reducibility
Cook-Levin theorem
Coping with NP Hardness
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
3/18
Recap from Friday
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
4/18
Examples in P
CONNECTED the set of all connected graphs
TRIANGLEFREE the set of all graphs without
a triangle
BIPARTITE the set of all bipartite (distinct)
graphs
TREE the set of all trees
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
5/18
Class NP Definition
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
6/18
Examples ofNP
Independent set find a k-size subset of a given graph Gsvertices
Traveling salesman given a set ofn nodes and pairwisedistances, find a closed circuit that visits every node once of
length no more thank
Linear/integer programming given a set of m linearinequalities for n variables, find a set of rational/integersolutions
Graph isomorphism given two nxn adjacency matrices M1
and M2, decide if they define the same graph Composite numbers decide if number N is prime
Factoring for a number N, find a factor M in the interval[L,U]
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
7/18
Relationship ofP & NP
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
8/18
Relationship ofP & NP
Key open question: does P=NP?
Some NP problems are in P:
Connectivity breadth-first search
Composite numbers Agrawal, Kayal, and Saxena
solved this a few years ago
Linear programming ellipsoidal algorithm of
Khachiyan
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
9/18
Relationship ofP & NP
Problems notshown to be in P:
Independent set
Traveling salesman
Subset sum
Integer programming
This general group is known as NP complete:
i.e., not in P unless P=NP
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
10/18
Non-deterministic Turing machines
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
11/18
Reducibility
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
12/18
NP completeness
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
13/18
Cook-Levin theorem
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
14/18
Web of reductions
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
15/18
Coping with NP-hardness
Approximate/heuristic solutions
Example: traveling salesman
Key considerations: Maximum error
Average-case complexity
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
16/18
Related Complexity Classes
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
17/18
What ifP=NP?
Any decision (or equivalently, search) problem
could be solved in a reasonable amount of
time
Perfectly optimal designs for all areas of
engineering could be chosen
Automated theory generation for
experimental results
No privacy in the digital domain
1/14/2013 ECE 595, Prof. Bermel
-
7/29/2019 2013.01.14-ECE595E-L04
18/18
Next Class
Discussion of solving linear algebraicequations
Please read Chapter 2 of NumericalRecipes by W.H. Press et al.
1/14/2013 ECE 595, Prof. Bermel