
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The cs 1510 midterm 3 exam from fall 2003. The exam covers topics such as np-completeness, the 3clique problem, the vertex cover problem, and the bahncard problem. Students are expected to demonstrate their understanding of these concepts by providing solutions to the given problems.
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

CS 1510 Midterm 3 Fall 2003
INPUT: A undirected graph G and an integer k. OUTPUT: 1 if G has three vertex disjoint cliques of size k, and 0 otherwise. Show that this problem is N P -hard. Use the fact that the clique problem in N P -complete. The input to the clique problem is an undirected graph H and an integer j. The output should be 1 if H contains a clique of size j and 0 otherwise. Note that a clique is a mutually adjacent collection of vertices. Three cliques are disjoint if no vertex is in more than one clique.
20 + 50 + (.5)(200) + (.5)(200) + (.5)(100) + 200 + 50 + (.5)(600)
Give an O(n^2 ) time algorithm for problem. Significant partial credit will be given for any polynomial time algorithm.