minimum spanning tree
given an undirected, connected and weighted graph
. let
be a spanning tree of
. the weight of
is the sum of weights of its edges. i.e.
the tree
is a minimum spanning tree if for every other spanning tree
of
, the following is true:

a graph may have multiple mst's
let
be an undirected simple non-negatively weighted graph. let
be a simple cycle in
. let
be the edge with the absolutely biggest weight in the cycle
. then there isnt an mst in
that contains
.
assume in contradiction that there exists an mst
that contains
. according to lem-spantree-1: upon the removal of
from
we get a cut.
and
are found on different sides of the cut. we go through
from
to
, at some point we have to go through a cut edge
(one partition on the side of
and the other on the side of
) so
. upon the addition of
we get another mst
according to lem-spantree-1.
which results in a contradiction with the fact that
is an mst
let
be an undirected connected non-negatively weighted simple graph whose weights are different from one another, let
be the edges with the smallest, biggest weights, respectively, prove:
- in each mst
has to appear
- prove/disprove
has to appear/not in every mst
assume in contradiction that
is an mst such that
, according to lem-spantree-2, upon the addition of
to
we get a single cycle. upon the removal of any edge
from the cycle we again get an mst.
we know
because all of the weights are different
which means
which is a contradiction because
is supposed to be an mst
we know
let
be an undirected connected non-negatively weighted graph in which each edge has a different weight and let
be the edge with the biggest weight, then:
doesnt belong to any cycle
is in every mst
we prove the implication from right to left, i.e.
is in every mst
doesnt belong to any cycle
assume
belongs to every mst, let
be an mst of
. we know
assume in contradiction
where
is a cycle
according to [[blk:minimum_spanning_tree_lemma_3][lemma 3]] this is a contradiction
assume
assume in contradiction
according to [[blk:minimum_spanning_tree_lemma_3][lemma 3]] this is a contradiction
we prove the implication from left to right
assume
belongs to no cycles.
assume in contradiction that there exists an mst
such that
. according to lem-spantree-2 upon the addition of
to
we get a cycle, so we've arrived at a contradiction
assume
assume in contradiction that there exists an mst
given
is an undirected non-negatively weighted graph. let
be 2 mst's of
. then there exists a sequence of mst's
and between every 2 adjacent mst's and its possible to go from one to the other by adding an edge and removing another of the same weight. there exists an mst
that is received from
by addition/removal of edges of the same weight and
is closer to
than
(by length not weight)
let
be a spanning tree of
, then
denotes the number of edges with weight
in 
let the histogram of weight frequency is the same for all mst's of a given graph