Hey there! Sign in to join this conversationNew here? Join for free

D1 kruskal / Prims algorithm Watch

Announcements
    • Thread Starter
    Offline

    16
    ReputationRep:
    Name:  14844174481521770128893.jpg
Views: 35
Size:  415.7 KB hi, I am a bit stuck on part b as I don'tnt get why kruskals algorithm would be the answer. Here is my answer Attachment 611600611602 the answer says the by using kruskal , you can set AB and FI As the starting point but there are arcs with a smaller weightht than AB so I don't get how the arcs can be arranged in an ascending order....

    Thanks
    Attached Images
     
    • Community Assistant
    Offline

    18
    ReputationRep:
    (Original post by coconut64)
    Name:  14844174481521770128893.jpg
Views: 35
Size:  415.7 KB hi, I am a bit stuck on part b as I don'tnt get why kruskals algorithm would be the answer. Here is my answer; the answer says the by using kruskal , you can set AB and FI As the starting point but there are arcs with a smaller weightht than AB so I don't get how the arcs can be arranged in an ascending order....

    Thanks
    Prim's algorithm builds up a network by joining nodes progressively, you can't use prim's algorithm as the arcs that are connected at the start aren't connected by a common node. You can however use kruskal's by just setting AB and FI as mandatory to add to the network and then following the algorithm as usual.
    • Thread Starter
    Offline

    16
    ReputationRep:
    (Original post by NotNotBatman)
    Prim's algorithm builds up a network by joining nodes progressively, you can't use prim's algorithm as the arcs that are connected at the start aren't connected by a common node. You can however use kruskal's by just setting AB and FI as mandatory to add to the network and then following the algorithm as usual.
    Thanks. So you are suggesting that it is not guaranteed that AB and FI will be joined by a common node, but Kruskal definitely will? Just double checkING
    tHANKS
    • Community Assistant
    Offline

    18
    ReputationRep:
    (Original post by coconut64)
    Thanks. So you are suggesting that it is not guaranteed that AB and FI will be joined by a common node, but Kruskal definitely will? Just double checkING
    tHANKS
    You can't start prim's algorithm if there are random arcs connected, as it is supposed to be built up form a single node. Whereas kruskals adds arcs from anywhere on a network, so you can use kruskals.
    • Thread Starter
    Offline

    16
    ReputationRep:
    (Original post by NotNotBatman)
    You can't start prim's algorithm if there are random arcs connected, as it is supposed to be built up form a single node. Whereas kruskals adds arcs from anywhere on a network, so you can use kruskals.
    Thanks a lot for the help
 
 
 
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • Poll
    Will you be richer or poorer than your parents?
    Useful resources

    Make your revision easier

    Maths

    Maths Forum posting guidelines

    Not sure where to post? Read the updated guidelines here

    Equations

    How to use LaTex

    Writing equations the easy way

    Student revising

    Study habits of A* students

    Top tips from students who have already aced their exams

    Study Planner

    Create your own Study Planner

    Never miss a deadline again

    Polling station sign

    Thinking about a maths degree?

    Chat with other maths applicants

    Can you help? Study help unanswered threads

    Groups associated with this forum:

    View associated groups
  • See more of what you like on The Student Room

    You can personalise what you see on TSR. Tell us a little about yourself to get started.

  • The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

    Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

    Quick reply
    Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.