Revision:Minimum Connector Problems - The Student Room
The Student Room

Revision:Minimum Connector Problems

TSR Wiki > Study Help > Subjects and Revision > Revision Notes > Mathematics > Minimum Connector Problems



The aim of minimum connector problems is to find the spanning tree of minimum weight.

Contents

Prim's algorithm

  1. Select any node the be the first node of the minimum spanning tree, T.
  2. Consider the arcs connecting the nodes currently in T to those outside of T. Pick the one of minimum weight. Add this arc and node to T.
  3. Repeat step 2 until all nodes are within T.

Advantages

  • Simple

Disadvantages

  • Time taken to check for smallest weight arc makes it slow for large numbers of nodes
  • Difficult to program, though it can be programmed in matrix form.

Matrix formulation of Prim's algorithm

  1. Select any node to be the first node of T
  2. Circle the new node of T in the top row, and cross out the row corresponding to this new node.
  3. Find the smallest weight left in the columns with circled headings. Circle this weight. Then choose the node whose weight the row is in to join T.
  4. Repeat until T contains every node.

Example

Kruskal's algorithm

For a graph with n nodes.

  1. Choose the arc of least weight
  2. From the remaining arcs, choose the one of least weight that does not form a cycle with already chosen arcs
  3. Repeat until n-1 arcs have been chosen

Advantages

  • Simple

Disadvantages

  • Difficulty of checking whether arcs form cycles makes it slow and hard to program.

Also See

See the other D1 notes:

  1. Algorithms
  2. Sorting algorithms
  3. Packing algorithms
  4. Graphs and networks
  5. Minimum connector problems
  6. The shortest path
  7. Route inspection
  8. The travelling salesman problem
  9. Linear programming
  10. The simplex algorithm

Comments

Discussions Toggle
Truth or Feelings?
started by: ckingalt
forum: Society
replies: 2
last post: 1 Minute Ago
Is this too sexy and slutty for valentine's day?
started by: quiritacontini
forum: Fashion and Beauty
replies: 3
last post: 1 Minute Ago
Italy?
started by: sylvie92
forum: International Lounge
replies: 596
last post: 2 Minutes Ago
What are you listening to now? V
started by: tehforum
forum: Music
replies: 714
last post: 2 Minutes Ago
Who are your idols from history?
started by: Gurmeet.Kapoor
forum: History
replies: 64
last post: 7 Minutes Ago
Training Contract for GDL/General advice
started by: The99Call
forum: Legal
replies: 0
last post: 8 Minutes Ago
St Andrews Applicants 2012
started by: such_a_lady
forum: St Andrews University
replies: 1368
last post: 9 Minutes Ago
Attractive hairstyles on men
started by: WdA04
forum: Hair care and Hair styles
replies: 45
last post: 12 Minutes Ago
Squat problems.
started by: The99Call
forum: Fitness
replies: 3
last post: 16 Minutes Ago
Oct/Nov iGCSE exams ?
started by: waquikhan
forum: GCSEs
replies: 55
last post: 24 Minutes Ago
Top 5 regrets of the dying
started by: Raving_Hippy
forum: Advice on Everyday Issues
replies: 4
last post: 24 Minutes Ago
Grade boundaries for CIE IGCSE
started by: samsam10
forum: GCSEs
replies: 0
last post: 25 Minutes Ago
Conditional Offer Question
started by: Usernameitis
forum: St Andrews University
replies: 6
last post: 26 Minutes Ago
Depression Society MKVI
started by: Idle
forum: Mental Health
replies: 1901
last post: 26 Minutes Ago
UCL postgraduate applicants 2012/3
started by: teludaa
forum: Postgraduate
replies: 466
last post: 28 Minutes Ago
The Official Glasgow Applicants 2012 Thread!
started by: Alas, poor Yorick
forum: Glasgow Unis
replies: 552
last post: 28 Minutes Ago
What is your dream job?
started by: Roberto-MOr
forum: Careers sectors and Employment
replies: 101
last post: 32 Minutes Ago
Showing pdV is inexact
started by: Sekonda
forum: Physics
replies: 1
last post: 40 Minutes Ago
What is the best clinique foundation?
started by: Bellissima
forum: Fashion and Beauty
replies: 5
last post: 42 Minutes Ago
What to wear? :)
started by: amy19
forum: Fashion and Beauty
replies: 7
last post: 43 Minutes Ago
Article Updates Toggle
Contact Us | Site Rules | Staying Safe on TSR | Advertising | Staff Blog | Essays & Coursework | Terms & Conditions | Top
Customise your TSR | Life Advice | Hobbies and Interests | Debate and Current Affairs | Study Help | University and University courses
Universities and HE Colleges | Careers, Employment and Gap Years | General Discussion

Customise your TSR