CSCI 256
Design and analysis of algorithms
Assignment 13

Due Wednesday, 5/9/2001


Only turn in problems from the second section.

Practice problems:

  1. Please do problem 36.2-8 on page 929 in CLR.

  2. Please do problem 36.3-1 on page 938 in CLR.

  3. Please do problem 36.3-7 on page 939 in CLR.

  4. Consider the following algorithm to determine whether a graph has a clique of size k. First generate all subsets of the vertices containing exactly k vertices. There are "n choose k" or O(nk) subsets of size k altogether. Then, we check whether any of the subgraphs induced by these subsets is complete. Why is this not a polynomial algorithm for the clique problem, which implies that P = NP?

Problems to be turned in:

  1. Show by reduction from CLIQUE that the INDEPENDENT SET problem is NP-complete. (That is, you may assume that CLIQUE is NP-complete in your proof.)

    INDEPENDENT SET: An independent set in a graph G = (V,E) is a set of vertices, no two of which are connectied. The problem is to determine, given G and an integer k, whether G contains an independent set with >= k vertices.

  2. Please do problem 36.2-5 in CLR. Hint: How can you get the needed certificate?


    Back to:

  3. CS256 home page
  4. Kim Bruce's home page
  5. CS Department home page
  6. kim@cs.williams.edu