NP-Complete. L1
L2 and L2
NP
L2
NP-Complete
Proof:
If proc L2 runs in det. poly. time then so does proc. L1.
But L1 is NP-complete.
Therefore P = NP.
Any instance of satisfiability (CNF) F = c1
Construct an instance of CDP
V = {< x, i > | x is a literal in clause ci}
E = {(< x, i >, < y, j >) | i
The graph contains 6 cliques of size 2. Consider the clique with vertices { x1, ¯x¯2 }. By setting x1 = true and ¯x¯2 = true (i.e., x2 = false), F is satisfied. The x3 can be either true or false
another example
G can be constructed from F in deterministic polynomial time
Claim: F is satisfiable iff G has a clique of size at least k
Proof: ==> Suppose F is satisfiable.
Consider any truth assignment for literals which satisfies F.
Let S = {< x, i > | x is true in ci} be a set containing exactly one true literal from clause i
S is a subset of nodes in G.
<== Suppose G has a clique of size at least k.
Let S be the set of nodes in the clique.
Since S cannot contain more than one node which came from the same clause in F, |S| = k.
G = (V,E) - undirected
V'
|V'| = size of node cover
Node cover decision problem:
Given G = (V,E) and k, does G contain a node cover of size at most k?
Maximization - at least (maybe more but at least...) - no less than - so often want big for "best" (like glb)
Clique (CDP)
G' = (V,E')
Claim: G has a clique of size at least | VC | iff G' has a node cover of size at most | VN | (could be less, but cannot be more - since any more would start needing nodes of the clique to cover)
| V | = n, | VC | = k , | VN |= n-k i.e., k is the clique size of G and n-k is the node cover size of G'
Ok, since there are no edges in E' connecting 2 vertices in VC (i.e., no edges in the clique (with VC vertices) are in the compliment by our partition of G) , the remaining n-k vertices in VN must cover all edges in E' (a graph and its compliment will be all possible edges between all vertices).
The figure shows a graph G and its complement G'. In this figure G' has a node cover of {4,5}, since every edge of G' is incident either on the node 4 or on the node 5. Thus, G has a clique of size 5-2=3 consisting of nodes 1,2,3.
Try the reduction on these graphs (clique size given)
Satisfiability Therefore Satisfiability
Directed Hamiltonian Cycle (DHC)
G = (V, E) - directed graph
Hamiltonian cycle: cycle passing through all nodes in V.
DHC
Recall (we did): Non-deterministic polynomial time algorithm
Satisfiability Proof next time
Satisfiability
clique decision problem (CDP)
c2
. . .
ck
G = (V,E)
Ex: F = (x1 V x2 V x3)
j
x
¯y¯}
(¯x¯1 V ¯x¯2 V ¯x¯3)

Then at least one true literal in each clause
Let < x, i > and < y, j > belong to S.
DONE
Node cover
V is a node cover if for all e
E, at least one end point of e lies in V'.
Are there others in this graph?
A graph with a clique of size at least 3 may also have one of 4
Minimization - at most - (maybe less but no more than...)- so want small for "best" at most (like lub)
A graph with a node cover of size 4 might also have one of size 2
node cover (NCDP)


Where E' = {(u,v) | (u,v)
E} (basically we are looking at the complement) (the example above is not the complete complement or we would have a complete mess in the drawing - each node in the VC would connect to the nodes to which it is not originally connected - in this particular case to each of those in VN.)
More specifically: example 11.13 in text
clique decision problem (CDP) ;
Clique
node cover decision problem (NCDP)
node cover and hence, the node cover decision problem is NP-Hard (what to do for NP-Complete?)
See for more
No H.C.
NP
DHC