Ch.11: P, NP and Decision Problems
Problem Examples Continued

Lemma :
Given L1 NP-Complete.       L1 L2    and L2 NP          L2 NP-Complete

Proof:

Satisfiability clique decision problem (CDP)

Any instance of satisfiability (CNF)

F = c1 c2 . . . ck

Construct an instance of CDP

Ex: F = (x1 V x2 V x3) (¯x¯1 V ¯x¯2 V ¯x¯3)

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.

<== Suppose G has a clique of size at least k.

DONE

Node cover

G = (V,E) - undirected

V' 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?

|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)
    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

Clique (CDP) node cover (NCDP)

G' = (V,E')
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.)

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).
More specifically: example 11.13 in text

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 clique decision problem (CDP)       ;       Clique node cover decision problem (NCDP)

Therefore Satisfiability node cover       and hence, the node cover decision problem is NP-Hard (what to do for NP-Complete?)
See for more

Directed Hamiltonian Cycle (DHC)

G = (V, E) - directed graph

Hamiltonian cycle: cycle passing through all nodes in V.

    No H.C.

DHC NP

Recall (we did): Non-deterministic polynomial time algorithm

Satisfiability DHC

Proof next time