2
$\begingroup$

How can I give a set of transitions sufficient to transform any spanning tree into any another spanning tree in a finite number of steps via spanning trees? I was wondering if someone help me.Thanks.

$\endgroup$
1
  • 1
    $\begingroup$ What do you mean by a transition? You could just consider the group of bijections on the set of spanning trees, but I imagine this isn't what you had in mind. $\endgroup$
    – Pat Devlin
    Commented Dec 10, 2016 at 20:53

1 Answer 1

2
$\begingroup$

I assume that by a transition you mean adding one edge and removing another. Then it seems that a simple algorithm works: Add an edge from the new tree. This will create a cycle so just remove one edge from the cycle that is not in the new tree. Such an edge must exist, since there are no cycles in the new tree. The running time is just the number of edges in the new cycle that are not in the original one.

$\endgroup$
1
  • $\begingroup$ @user123 your question doesn't sound appropriate for this forum. But to answer your question, add an edge that you need and then just remove an edge from the formed cycle that you don't need. This will work in at most $n-1$ steps. $\endgroup$
    – Pat Devlin
    Commented Dec 11, 2016 at 0:59

Not the answer you're looking for? Browse other questions tagged .