# hwk2 - edges(all costs> 0 Now we construct a new graph G...

This preview shows page 1. Sign up to view the full content.

Spring 2011 CMSC 451: Homework 1 Clyde Kruskal Due at the start of class Thursday, October 13, 2011. Problem 1. Do Exercise 3 on pages 189-190 of Kleinberg and Tardos. But use “our favorite method” for the proof. Problem 2. (a) Show that Prim’s algorithm is correct using “our favorite method”. (b) Show that Prim’s algorithm is correct using mathematical induction. Warning: The two solutions should look very similar to each other. Problem 3. Suppose we are given a graph G (connected, undirected) with costs on the
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: edges (all costs > 0). Now we construct a new graph G ′ , which is the same as G , except for the costs. The cost of an edge e is deFned to be 1 /c e where c e is the cost of e in G . 1. Is the Minimum cost spanning tree in G , the Maximum cost spanning tree in G ′ ? Prove or disprove. 2. Suppose that P is the shortest path from s to v in G . Is P the longest simple path from s to v in G ′ ? Prove, or disprove. Problem 4. Do Exercise 16 on pages 196-197 of Kleinberg and Tardos. 1...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern