How Does Unique Edge Weighting Guarantee a Singular Minimum Spanning Tree?

  • Context:
  • Thread starter Thread starter find_the_fun
  • Start date Start date
  • Tags Tags
    Graphs
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
find_the_fun
Messages
147
Reaction score
0
Prove that if a weighted graph has unique weights on each edge that there is only 1 minimum spanning tree. Do I need to use an algorithm such as Prim's to show this or do I use properties of weighted graphs?
 
Physics news on Phys.org
Try contradiction. Assume you have two MST's of equal weight. Consider what happens with an edge that's in one MST but not the other (there must be at least one such edge if the MST's are not the same).
 
Kruskal's Algorithm can be used here as follows:

If edge costs are all distinct then running Kruskal's Algorithm on this graph G(say) creates only a unique sequence of (n-1) edges with edge costs in increasing order. Hence G has a unique minimum spanning tree.