Discrete Mathematics with Graph Theory (3rd Edition) 340

# Discrete Mathematics with Graph Theory (3rd Edition) 340 -...

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

338 Solutions to Exercises on edges of the subgraph are all less than the weights on all other edges. In either case, Kruskal's algorithm selects first the edges of the sub graph since these have weights smaller than other edges and there are no circuits among them. 9. (a) If the graph is unweighted, put a weight of 1 on edge e = uv and 2 on every other edge. If the graph is weighted, ensure (by temporarily changing weights if necessary) that the weights of the edges different from e are all larger than the weight of e. In either case, if Prim's algorithm starts at u or v, it will select e first and, if it starts at any other vertex, then as soon as the first of u, v is included in one of the sequence of growing trees (to be specific, suppose this is u and the tree is 'T), edge e will be selected since it is eligible for selection ('T U {e} is also a tree) and e is the edge of least weight in the graph. (b) If the graph is unweighted, put weights of 1 on the edges of the subgraph and 2 on all other edges.
This is the end of the preview. Sign up to access the rest of the 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