What is tree and spanning tree?
In this regard, what is Spanning Tree with example?
Given a graph G=(V,E), a subgraph of G that is connects all of the vertices and is a tree is called a spanning tree . For example, suppose we start with this graph: We can remove edges until we are left with a tree: the result is a spanning tree. Clearly, a spanning tree will have |V|-1 edges, like any other tree.
In this manner, what is meant by spanning tree?
A spanning tree is a subset of Graph G, which has all the vertices covered with minimum possible number of edges. By this definition, we can draw a conclusion that every connected and undirected Graph G has at least one spanning tree.
Real Life Applications Minimum spanning trees are used for network designs (i.e. telephone or cable networks). They are also used to find approximate solutions for complex mathematical problems like the Traveling Salesman Problem. Other, diverse applications include: Cluster Analysis.