6: P and NP Reductions Flashcards
What is verification?
Checking that a proposed solution to a problem is correct.
?? missing part of lecture slides
??
What is a graph clique?
A graph is a clique of size n if it has n nodes and edges connecting each possible pairing of the n nodes.
What is a subgraph?
A graph whose nodes and edges are subsets of another parent graph.
What does DSPACE mean?
NSPACE is the space used by a deterministic (Turing) machine to solve a certain problem.
What is a satisfiability problem?
Given a logical formula, can we assign T/F values to the variables in it such that the value of the whole formula becomes true?
?? missing part of lecture slides
??
How do you prove a problem is in P?
Provide a proof that it is deterministically solvable within polynomial time - usually just an algorithm to do so.
What does P = NP boil down to?
If there are problems that are solvable in polynomial time nondeterministically (and sometimes verifiable in polynomial time deterministically) that cannot be solved within polynomial time deterministically.
What are reductions? What are reductions aka?
Using an algorithm for one problem as a subroutine to solve another problem, especially if done to improve the time complexity of doing so, often aiming to reduce it to polynomial time. Reductions are aka transformations.
What is Cook’s Theorem?
The Cook–Levin theorem states that SAT (the Boolean Satisfiability problem) is NP-complete.
NP-completeness means that any other problem in NP can be reduced to it, so allows easier proving that other problems are in NP.
What are 3-SAT problems?
SAT Problems are satisfiability problems given in CNF format. 3-SAT problems are further restricted SAT problems such that clauses may hold no more than 3 literals. You can also define k-SAT for any such maximum number of k literals per clause.
What are Directed Graph Reachability problems?
Finding if there is a path along edges between given end nodes on a given graph.
What are polynomial Karp reductions?
Karp reductions change a problem into an instance of another one within polynomial time.
Under how many colours are graph-colouring problems “difficult”?
Any planar graph can be coloured with 4 colours, and finding whether any planar graph can be coloured with 2 colours is polynomial.
Finding whether a planar graph is colourable with 3 colours is NP-complete.
How do you transform from undirected Hamiltonian Circuit (UHC) problems into directed Hamiltonian Circuit (DHC) problems?
Given an undirected graph, replace every edge (v,w) with 2 new edges: (v, w) and (w, v). The resulting directed graph will have a Hamiltonian Circuit if and only if the original undirected graph did.