Docsity

Algorithm Design and Analysis: Problem Set 6 for ECS 122A at UC Davis - Prof. Charles U. M, Assignments of Computer Science

Toggle sidebar
bg1
ECS 122A: Algorithm Design and Analysis Handout ??
UC Davis — Charles Martel May 28, 2008
Problem Set 6—Due Wednesday, June 4 3:15PM
15 Problem 1 The book’s vertex cover solution uses fact 10.1 to help stop the search for a vertex
cover when the graph has too many edges to be covered by the remaining vertices in our
“budget”. However, this is a rather weak statement about how many edges can be covered
by kvertices since it only uses the maximum degree. Instead use the actual degrees of the
graph, d1, d2, . . . dnto prove a smaller (and thus better) bound on the number of edges that
can be covered by kvertices.
25 Problem 2. Problem 3 in chapter 10 of the text (page 596). Hint: consider solving problems
of the form: let jbe a vertex other than v1, and Sa subset of vertices {v2, v3, . . . vn−1} − j,
then T(S, j) is true if there is a path from v1to jvisiting every vertex in Sonce and no other
vertices (otherwise false). It is easy to compute this when Sis small (e.g. empty or of size
1). Show how to solve it for successively lager size sets, and then use this to solve the original
problem.
25 Problem 3. Problem 5 a) in chapter 10 (page 597).
15 Problem 4. Problem 1, chapter 13, page 782.

Partial preview of the text

Download Algorithm Design and Analysis: Problem Set 6 for ECS 122A at UC Davis - Prof. Charles U. M and more Assignments Computer Science in PDF only on Docsity!

ECS 122A: Algorithm Design and Analysis Handout ?? UC Davis — Charles Martel May 28, 2008

Problem Set 6—Due Wednesday, June 4 3:15PM

15 Problem 1 The book’s vertex cover solution uses fact 10.1 to help stop the search for a vertex cover when the graph has too many edges to be covered by the remaining vertices in our “budget”. However, this is a rather weak statement about how many edges can be covered by k vertices since it only uses the maximum degree. Instead use the actual degrees of the graph, d 1 , d 2 ,... dn to prove a smaller (and thus better) bound on the number of edges that can be covered by k vertices.

25 Problem 2. Problem 3 in chapter 10 of the text (page 596). Hint: consider solving problems of the form: let j be a vertex other than v 1 , and S a subset of vertices {v 2 , v 3 ,... vn− 1 } − j, then T (S, j) is true if there is a path from v 1 to j visiting every vertex in S once and no other vertices (otherwise false). It is easy to compute this when S is small (e.g. empty or of size 1). Show how to solve it for successively lager size sets, and then use this to solve the original problem.

25 Problem 3. Problem 5 a) in chapter 10 (page 597).

15 Problem 4. Problem 1, chapter 13, page 782.