Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Balanced spanning tree (T) from undirected graph

I have connected undirected graph. I am looking for the way to construct the balanced spanning tree (T) of a graph

The specific about balanced spanning tree, I could define as follows:

  1. If the root of the tree is r .All nodes could be divided to the levels.I.e all the nodes which distance from the r (in T) is j are in the level Lj,etc.
  2. For each node w one can define for a sub-tree T_w of T,such that w is its root.
  3. The goal is to define spanning tree in such a way that for each level Li,for every two nodes u and v in level Li the number of nodes in the T_u and T_v is maximally equivalent.

Does anybody can advice any algorithm/s for building such “relatively” balanced spanning tree?

Thank you in advance.

like image 419
Yakov Avatar asked Jan 25 '11 16:01

Yakov


People also ask

What is a spanning tree in an undirected graph?

A spanning tree is a sub-graph of an undirected connected graph, which includes all the vertices of the graph with a minimum possible number of edges.

How do you draw a spanning tree from a graph?

For any complete graph, the number of spanning trees is nn-2. In a complete graph, we can create a spanning tree by removing a maximum of E-N+1 edges. Here, E = Number of edges and N = Number of nodes/vertices. For a simple connected graph, its spanning tree will have N-1 edges, where N is the number of vertices.

Does every undirected graph have a spanning tree?

By this definition, we can draw a conclusion that every connected and undirected Graph G has at least one spanning tree. A disconnected graph does not have any spanning tree, as it cannot be spanned to all its vertices. We found three spanning trees off one complete graph.


1 Answers

I am not sure about your expression "maximally equivalent."

This problem may not have a perfect solution, so the obvious thing is how much better can we do?

This problem in generality seems to be NP-Complete. Some greedy approaches might result in constant approx algorithms, if you are lucky.

like image 83
singhsumit Avatar answered Sep 23 '22 02:09

singhsumit