






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Example:
Example :
If T has at least 3 nodes, then
has at least one leaf.
any tree with n nodes has n-1 edges. Proof by induction ( blackboard ).
Lemma : If G is any connected graph,
C is a cycle in G, and one of the edges of C is removed from G, then the graph that remains is still connected.
Theorem : For any positive integer n,
if G is a connected graph with n vertices and n-1 edges, then G is a tree.
Theorem : For any positive integer n,
if G is an acyclic graph with n vertices and n-1 edges, then G is a tree.
Proofs on blackboard.
e
b
c
d
a
e
b
c
d
a
G=(V,E) Min. span. tree: G=(V,E)
Red bold arcs are in E*Docsity.com
Algorithm for solving the Minimum Spanning Tree Problem
connect to its nearest node.
Note : Ties for the closest node are broken arbitrarily.
The algorithm applied to our example
node is node d (3 far from node b). Connect nodes b and d.
arcs give a min. spanning tree.
e
b
c
d
a
e
b
c
d
a