Comparison between two spanning tree algorithms