CS 601 (Autumn 2009): Quiz 2 solutions
November 3, 2009
Problem 1
Part (a)
For each item i we have a 0/1 integer variable xi , where xi = 1 indicates that item i is picked while xi = 0 indicates that
Data Structures and Algorithms
K. Viswanathan Iyer
NP-Completeness of Independent Set
Let G = (V, E) be a simple undirected graph. We say a subset I V in G is an independent set if no two vertices in
CS601: HW 6 Solutions
October 6, 2009
1 (a) KT11.1 Give an example where the greedy algorithm does not use the minimum possible weights. Sol. Weights: 4,3,2,1 K = 5. Optimal is 2 but greedy uses 3 tru
Greedy algorithm for Set cover
Input: Collection C of sets S1 ; :; Sm over a universe U . Weight wi for each set Si . Output: a subcollection C H of smallest possible total weight whose union is also
CS 601/IITB
Linear Programming
Abhiram Ranade
A linear programming problem in \canonical form" is dened as follows. The input consists of an m n matrix A, m 1 vector b, and an n 1 vector c. The output
CS601: HW 4 Solutions
3 Sept, 2009
1 (a) Prove Independent Set p Diverse Subset Sol. Given an instance of Independent Set problem, a graph G = (V, E ), we can convert to an instance of Diverse Subset
CS 601/IITB
Randomizd algorithm for 3 SAT
Abhiram Ranade
The obvious algorithm is to try out all 2n assignments. For
(2n) time. Since the problem is extremely important, exponential time algorithms h
Algorithms-Complexity Homework-8
Prateek Sharma - 09305910 November 10, 2009
1
Problem 1 - 3-Coloring
We use similar techniques like we did for the MAX-3-SAT randomized algorithm. Pick any vertex and
CS 601/IITB
Global Min Cut
Abhiram Ranade
How easy is it to disconnect a network? This problem is formalized as the min-cut problem. It also arises as a subproblem in many optimization problems.
Input
0.1
Introduction
Here are some of the typical uses of randomness in parallel computation. The rst use is for coordinating processors; usually random methods are faster than deterministic ones, or in s
50 marks
You have about one minute per mark. Keep this in mind while deciding how long you need to write. Crisp answers will receive more credit. You need not repeat anything proved in the book or in
CS 60] Quiz 1 Algorithms and Complexity
Important: Be clear and precise.
You get points for what we make of what you have written. Make reasonable assumptions
when necessary, though we reserve the rig