Login

Welcome, Guest. Please login or register.

November 01, 2025, 10:47:55 am

Author Topic: Help with min spanning trees  (Read 935 times)  Share 

0 Members and 1 Guest are viewing this topic.

almostdonewithschooling

  • Forum Regular
  • **
  • Posts: 87
  • Respect: 0
Help with min spanning trees
« on: October 22, 2018, 05:43:01 pm »
0
The answer is 94 km, but does anyone know how they got that?

PhoenixxFire

  • VIC MVP - 2018
  • Honorary Moderator
  • ATAR Notes Legend
  • *******
  • Posts: 3695
  • They/them/theirs
  • Respect: +3102
Re: Help with min spanning trees
« Reply #1 on: October 22, 2018, 11:52:34 pm »
+1
The answer is 94 km, but does anyone know how they got that?
So to work out a minimum spanning tree you pick a vertex and then draw a line from that vertex down the edge with the least weighting (ie. the smallest number next to it). Then you look at both of the vertexes and pick the edge with the least weighting off either of those.
-Every vertex needs to be connected
-Disregard loops
-You don't need to connect vertexes to multiple other vertexes. If A is connected to B and C, then B and C don't need to be connected to each other - just disregard that edge.

Give this a shot and see if it gives you 94km.
2019: B. Environment and Sustainability/B. Science @ ANU
2020: Just Vibing
2021: B. Paramedicine/B. Nursing @ ACU Canberra