CSE 421: Introduction to Algorithms
Assignment #4
January 30, 2002
Due: Wednesday, February 6
Reading Assignment: Kleinberg and Tardos, chapter 4.
Problems
- Let G=(V,E) be a connected, undirected, weighted graph, where
c(e) is the cost on edge e for any edge e Î E. Let
s be a particular node in V. For any T which is a spanning tree of G rooted at s, we define the total path length of T, denoted P(T), to be
where dT(s,v) is the sum of the
costs along the path between s and v in the tree T. Give an
algorithm for finding a spanning tree T of G rooted at s that
minimizes P(T).
- Kleinberg and Tardos, page 92, problem 10.
- Kleinberg and Tardos, page 92, problem 11.
- Extra Credit: Kleinberg and Tardos, page 94, problem 15.
- Extra Credit: Feedback on Sections 3.3-3.4 and 4.1 in book. Please submit this by email to both Erik and Anna.
For all problems on this homework, prove that your algorithm is correct, and analyse the worst-case complexity of your algorithm.
File translated from
TEX
by
TTH,
version 3.04.
On 7 Feb 2002, 17:30.