Unit-4 2019 v2
Unit-4 2019 v2
Trees
For animations :
www.visualgo.net
http://oscar.iitb.ac.in/availableanimations.do
Definitions : Let G = (V,E) be loop-free undirected
graph. The Graph G is called Tree if G is
connected and contains no cycles.
Ex:
(a) (c)
(b)
(e)
(d) Forest
Theorem 1: In a tree, there is one and only one
path between every pair of vertices.
Ex:
Theorem: A connected graph is a tree if and
only if it is minimally connected.
Ex:
How many edges must be removed from a
connected graph with v vertices and e edges to
produce a spanning tree?
Ans: e-v+1