NP-Complete

1. Prove that the following problem is NP-Complete.
Input: Set S, Collection Ai,...,Am of subsets of S, positive integer k.
Output: Is there a sub-collection of size k such that they are pair-wise disjoint? In other words, among the collection of m subsets of S, are there k that are pairwise disjoint?


2. Prove that the following problem is NP-Complete.
Input: Graph G, positive k1 and k2
Output: Does G contain both a clique of size k1 and an independent set of size k2?


3. The subgraph isomorphism problem takes as input two undirected graphs G1 and G2 and asks whether G1 is a subgraph of G2. In other words,the problem asks whether there is a one-to-one function f mapping the vertices of G1 to the vertices of G2 ,such that edge (u, v) exists in G1 iff (f(u)f(v)) exists in G2.
Show that the subgraph isomorphism problem is NP-complete


4. A feedback vertex set in a directed graph G = (V,E) is a subset V' of V , such that V' contains at least one vertex from each directed cycle in G. The feedback vertex set problem (FVS) is: given a directed graph G and an integer k, does G have a feedback vertex set with at most k vertices? Prove FVS is NP-Complete.


<< Back to Tech Archives