Download presentation
Presentation is loading. Please wait.
Published byLee Ford Modified over 9 years ago
1
The Minimum Connector Problem: Finding the shortest way to link all the vertices in a graph. Method: Find a minimum spanning tree An example would be joining up several towns with an oil pipeline. Each town does not have to be joined to every other but they all have to be joined into the pipe line.
2
NorwichYarmouthLowestoftBeccles Norwich-202515 Yarmouth20-817 Lowestoft258-10 Beccles151710- Using Prim`s Algorithm if the data is in a chart/matrix Find the minimum length of telephone cable required to join up the exchanges in the towns.
3
Choose any column vertex and delete the row corresponding to this vertex Circle the chosen vertex i.e. choose Yarmouth column - delete Yarmouth row NorwichYarmouthLowestoftBeccles Norwich-202515 Yarmouth20-817 Lowestoft258-10 Beccles151710-
4
Ring the smallest entry in the column corresponding to this vertex i.e. 8 mls to Lowestoft in the Yarmouth column. Ring it. Delete the Lowestoft row and circle the Lowestoft column. NorwichYarmouthLowestoftBeccles Norwich-202515 Yarmouth20-817 Lowestoft258-10 Beccles151710- Y 8 L
5
Look for the smallest entry in the columns corresponding to these 2 vertices i.e. the Yarmouth and Lowestoft column 10 is the smallest in the Beccles row. Ring it. Delete the Beccles row and circle the Beccles column. NorwichYarmouthLowestoftBeccles Norwich-202515 Yarmouth20-817 Lowestoft258-10 Beccles151710- Y B 8 L Y 8 L
6
Look for the smallest entry in the columns corresponding to these 3 vertices i.e. the Yarmouth, Lowestoft and Beccles column. 15 is the smallest in the Norwich row. Ring it NorwichYarmouthLowestoftBeccles Norwich-202515 Yarmouth20-817 Lowestoft258-10 Beccles151710- Y B 8 L Y 15 B 10 8 L N The minimum length of cable = 33mls
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.