

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
A handout for homework 4 in the algorithm design and analysis course at pennsylvania state university, cse 565, fall 2008. It includes exercises on minimum spanning trees with negative-weight edges, recursion-tree method for solving recurrences, and minimum spanning tree algorithms for large input with limited workspace.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Please refer to the general information handout for the full homework policy and options.
Reminders
Exercises These should not be handed in, but the material they cover may appear on exams:
e∈F we^ is minimized. Note that^ F^ need not be a tree.
Problems to be handed in
Page limits: The answer to each problem should fit in 2 pages (or one double-sided sheet) of paper. Longer answers will be penalized.
∑n i=1 ri^ or^
∑n i=1 i.) (a) T (n) = 7T (n/2) + cn, where c ≥ 0 is a constant. (b) T (n) = T (n − 1) + c log^2 (n), where c ≥ 0 is a constant. (c) T (n) = T (n/5) + 4T (4n/5) + cn, where c ≥ 0 is a constant.
(a) Suppose G is a connected, undirected graph in which all edge weights we are positive but not necessarily distinct. Let S ⊂ V be a cut in the graph, and let ES be the set of least- weight edges with exactly one endpoint in S (there may be several such edges since edge weights are not distinct). Prove or disprove: for every edge e in ES , there exists a minimum spanning tree T for G containing e. (b) KT, Chapter 4, Problem 19 (bottlenecks).
Note on the motivation for this model: Data sets are often too large to fit into main memory. For example, AT&T’s phone call graph has millions of vertices (users) and trillions of edges (phone calls). Storing a spanning tree for such a graph would require only megabytes of space, whereas storing all edge of the graph requires terabytes! The algorithms you are asked to design here use a small amount of main memory to process a large secondary memory via a single pass. Alternatively, you can think of edges arriving in real time (say, as phone calls are made), and the system keeping track only of the MST of the graph rather than all its edges.