Tut 8
Tut 8
Entry No.:2021EE10642
• Lemma 1: Adding an edge(not present in the MST) to a MST will create a single cycle in
the MST.
Proof : Say, the edge added has endpoints v and u, from connectivity property of the MST,
there existed a path between u and v, now this path (say P ) along with the added edge
creates a cycle(Go from u to v via P and from v to u via the added edge).
There will be only one such cycle (Why?), because if there is more than one cycle =⇒ there
was more than one path between u and v, now these two paths will itself form a cycle (take
path 1 from u to v and path 2 from v to u), this violates the property that the MST has no
cycles. ■
• Lemma 2: In the MST of a graph G, for a vertex u ∈ S and v ∈ S̄, the path between u and
v consists of at least one edge e ∈ E(S, S̄)
Proof : Say, this is not the case, so two cases arise:
1) All the edges in the path have there endpoints in S, this means this path can connect
only nodes in S, but this is not true as the path is connecting u and v ∈ / S, thus we have a
contradiction.
2) If all the edges are in S̄, we have a similar proof as the first case.■
Proof by contradiction: Say we have a tree T such that the given edge e ∈ / T.
Now, say, this given edge e connects has endpoints u and v. Take a new graph T ′ = T ∪ {e}, from
Lemma 1, there is a cycle in T ′ formed due to the path between u and v (say P ) in T and the
edge e.
In the path P , there must be an edge e′ ∈ E(S, S̄)(Lemma 2) and weight(e′ ) ≥ weight(e), now
P ∪ {e} forms a cycle (Lemma 1) (say C).
Claim: T ∗ = (T ′ \{e′ }) ∪ {e} is a tree.
Proof :
• There are no cycles in T ∗: As there was only one cycle in T ′ (Lemma 1), and we broke that
cycle by removing e′ .
• All the nodes are connected in T ∗, in T (which is a tree) all the paths (say Pi ’s in which e′
was a component, can now be replaced with (Pi \{e′ }) ∪ (C\{e′ }). The remaining paths stay
the same.
• T ∗ contains the same number of nodes as T : This follows from the fact that we have only
removed an edge (e′ , which connected u and v), this can only possibly exclude the vertices
u or v from T , but after adding the edge e, we have a path (C\{e′ }) between u and v =⇒
the number of nodes in T ∗ and T are the same (and T was a tree).
Assume T is a MST,(say its sum of edges are k), then for any such T (not containing e), we can
produce a tree T ∗ (using the process above) such that it’s sum of edges k − weight(e′ ) + weight(e)
is < k.
=⇒ T is not an MST, hence by contradiction, we are done. ■