In the Minimum Spanning Tree, we require to join the edges with minimum weight before we move on to other edges. To perform the join we use the union operation of the UF DS, which joins the representative elements of the disjoint data sets. Is there a guarantee that the representative elements will be the nodes with least edge weight that we intend to join? The join could very well take place at other nodes of the components to be joined, if I am thinking this right.
Thanks