Docsity

Randomized Algorithms Final Exam, Spring 2003: Questions and Answers - Prof. Aravind Srini, Exams of Computer Science

Toggle sidebar
bg1
CMSC 858T, Randomized Algorithms, Spring 2003: Final Exam
Instructions: There are three questions. If you think you have some ideas that deserve partial
credit, please itemize them concisely. Also, if you are unable to solve a problem but can do so
by making some assumptions, state these assumptions clearly and proceed. Good luck!
1. We are given some positive constant c < 1/2.
(a) Show that there are positive constants aand b(which may be functions of c) such that
for all large enough n, there is a graph G= (V, E ) on nvertices such that the following two
properties hold. (i) The number of edges in Gis at most an, and (ii) for any two disjoint sets of
vertices Aand Bsuch that |A|=|B|=cn, there are at least bn edges which have one end-point
in Aand one end-point in B. (Hint: Consider the random graph model G(n, p) where pis of
the form Θ(1/n).) (8points)
(b). Next, show that there is a graph Gsatisfying all the requirements of part (a), such that G
has the additional property that it has no triangles. (5points)
2. Let u= (u1, u2, . . . , ud), v= (v1, v2, . . . , vd), and w= (w1, w2, . . . , wd) be three points in
d-dimensional space, where all the ui,viand wilie in the set {0,1}.
(a) Call the ordered triple (u, v, w)bad if the dot product (v−u)·(w−u) equals zero. Using
the fact that all the ui,viand wilie in {0,1}, give a simple necessary and sufficient condition
for (u, v, w) to be bad. (Hint: Can (v−u)·(w−u) ever be negative?) (3points)
(b) For as large a function f(d) as you can come up with, show the following: there is a set
Sof f(d) points in d-dimensional space where each point has all its co-ordinates lying in the
set {0,1}, such that for any ordered triple of three distinct points (u, v, w) chosen from S, the
triple (u, v, w) is not bad. Justify your answer. (8points)
3. We consider the Maximum Satisfiability problem (MAX-SAT) here. Given a Boolean formula
F=C1∧C2∧ · · · ∧ Cmin conjunctive normal form with nBoolean variables x1, x2, . . . , xnand
mclauses C1, C2, . . . , Cm, the objective is to find a Boolean assignment to the variables that
maximizes the total number of satisfied clauses. Note that each Ciis an “or” of some of the
literals: e.g., Cicould be x4∨x7∨x9∨x14. Let |Ci|denote the number of literals in Ci; let P(i)
be the set of indices of the unnegated variables appearing in Ci, and N(i) be the set of indices
of the negated variables in Ci. (For instance, if Ciis “x4∨x7∨x9∨x14”, then |Ci|= 4, P(i) =
{4,9,14}, and N(i) = {7}.) Convince yourself that the following is a valid integer programming
formulation for MAX-SAT. We have variables y1, y2, . . . , ynand z1, z2, . . . , zm, all constrained
to lie in {0,1}. For each zi, we have the constraint “zi≤(Pj∈P(i)yj) + (Pj∈N(i)(1 −yj))”.
Subject to these constraints, the objective is to maximize Pizi.
Consider the LP relaxation of this formulation obtained by relaxing each yjand zito be a
real lying in [0,1]. Let {y∗
j, z∗
i}be the values of the variables in an optimal solution to the LP.
Our randomized rounding process will be, independently for each j, to set xj:= 1 (i.e., make
variable xjTrue) with probability y∗
jand xj:= 0 (make variable xjFalse) with the remaining
probability of 1 −y∗
j.
(a). For any clause Ci, show that Pr[Cisatisfied] ≥1−(1 −z∗
i/|Ci|)|Ci|.(5points)
(b). Let Zbe the random variable denoting the number of satisfied clauses, and let v∗denote
the optimal objective function value of the LP relaxation. Assuming the result of part (a) to
be true, prove that E[Z]≥c·v∗for as large a constant cas you can. (6points)
– End of exam –
1

Partial preview of the text

Download Randomized Algorithms Final Exam, Spring 2003: Questions and Answers - Prof. Aravind Srini and more Exams Computer Science in PDF only on Docsity!

CMSC 858T, Randomized Algorithms, Spring 2003: Final Exam

Instructions: There are three questions. If you think you have some ideas that deserve partial credit, please itemize them concisely. Also, if you are unable to solve a problem but can do so by making some assumptions, state these assumptions clearly and proceed. Good luck!

  1. We are given some positive constant c < 1 /2.

(a) Show that there are positive constants a and b (which may be functions of c) such that for all large enough n, there is a graph G = (V, E) on n vertices such that the following two properties hold. (i) The number of edges in G is at most an, and (ii) for any two disjoint sets of vertices A and B such that |A| = |B| = cn, there are at least bn edges which have one end-point in A and one end-point in B. (Hint: Consider the random graph model G(n, p) where p is of the form Θ(1/n).) ( 8 points)

(b). Next, show that there is a graph G satisfying all the requirements of part (a), such that G has the additional property that it has no triangles. ( 5 points)

  1. Let u = (u 1 , u 2 ,... , ud), v = (v 1 , v 2 ,... , vd), and w = (w 1 , w 2 ,... , wd) be three points in d-dimensional space, where all the ui, vi and wi lie in the set { 0 , 1 }.

(a) Call the ordered triple (u, v, w) bad if the dot product (v − u) · (w − u) equals zero. Using the fact that all the ui, vi and wi lie in { 0 , 1 }, give a simple necessary and sufficient condition for (u, v, w) to be bad. (Hint: Can (v − u) · (w − u) ever be negative?) ( 3 points)

(b) For as large a function f (d) as you can come up with, show the following: there is a set S of f (d) points in d-dimensional space where each point has all its co-ordinates lying in the set { 0 , 1 }, such that for any ordered triple of three distinct points (u, v, w) chosen from S, the triple (u, v, w) is not bad. Justify your answer. ( 8 points)

  1. We consider the Maximum Satisfiability problem (MAX-SAT) here. Given a Boolean formula F = C 1 ∧ C 2 ∧ · · · ∧ Cm in conjunctive normal form with n Boolean variables x 1 , x 2 ,... , xn and m clauses C 1 , C 2 ,... , Cm, the objective is to find a Boolean assignment to the variables that maximizes the total number of satisfied clauses. Note that each Ci is an “or” of some of the literals: e.g., Ci could be x 4 ∨ x 7 ∨ x 9 ∨ x 14. Let |Ci| denote the number of literals in Ci; let P (i) be the set of indices of the unnegated variables appearing in Ci, and N (i) be the set of indices of the negated variables in Ci. (For instance, if Ci is “x 4 ∨ x 7 ∨ x 9 ∨ x 14 ”, then |Ci| = 4, P (i) = { 4 , 9 , 14 }, and N (i) = { 7 }.) Convince yourself that the following is a valid integer programming formulation for MAX-SAT. We have variables y 1 , y 2 ,... , yn and z 1 , z 2 ,... , zm, all constrained to lie in { 0 , 1 }. For each zi, we have the constraint “zi ≤ ( ∑ j∈P (i) yj^ ) + (

∑ j∈N (i)(1^ −^ yj^ ))”. Subject to these constraints, the objective is to maximize

∑ i zi. Consider the LP relaxation of this formulation obtained by relaxing each yj and zi to be a real lying in [0, 1]. Let {y∗ j , z∗ i } be the values of the variables in an optimal solution to the LP. Our randomized rounding process will be, independently for each j, to set xj := 1 (i.e., make variable xj True) with probability y j∗ and xj := 0 (make variable xj False) with the remaining probability of 1 − y j∗.

(a). For any clause Ci, show that Pr[Ci satisfied] ≥ 1 − (1 − z∗ i /|Ci|)|Ci|. ( 5 points)

(b). Let Z be the random variable denoting the number of satisfied clauses, and let v∗^ denote the optimal objective function value of the LP relaxation. Assuming the result of part (a) to be true, prove that E[Z] ≥ c · v∗^ for as large a constant c as you can. ( 6 points)

  • End of exam –