0 0 votes I think all options are wrong Algorithms algorithms minimum-spanning-tree prims-algorithm virtual-gate-test-series + – Purple 2.3k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Pavan Kumar Munnam commented Dec 29, 2016 reply Follow flag all are wrong options similar ques https://gateoverflow.in/3355/gate2008-it-45 0 0 replyShare Gurdeep Saini commented Nov 6, 2018 reply Follow flag https://gateoverflow.in/98214/virtual-gate same question please merge this two 0 0 replyShare Please log in or register to add a comment.
2 2 votes yup! u r ryt . All options are wrong. Deepak Yadav answered Jan 11, 2017 Deepak Yadav comment Share Follow See 1 comment 1 1 comment reply Chiranjeevi Kanaka commented Jan 7, 2018 reply Follow flag Option C is right answer As edges with least weight are added to the existing tree to make the spanning tree grow. Every step, it remains a spanning tree but not a forest. 2 2 replyShare Please log in or register to add a comment.
0 0 votes Yeah! All are wrong Deepak Raj 1 answered Oct 18, 2017 Deepak Raj 1 comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes https://stackoverflow.com/questions/1787152/prims-mst-does-the-start-node-matter this show that you can start from any vertex https://www.cse.ust.hk/~dekai/271/notes/L07/L07.pdf refer to page 16 they are saying take any vertex and take the minimum edge to that vertices set that dont make cycle repeat this step until you got all vertices in option A (c,d),(d,f) now taking (a,b) edge is wrong in option B they started from the vertex e and grow and each step they took the minimum edge and at the time when choosing the third edge they can choose either of (b,f) and (c,d) they choose (b,f) and move ahead so this is right in option C they started from the vertex e and grow and each step they take the minimum edge and at the time when choosing the third edge they can choose either of (b,f) and (c,d) they choose (c,d) and move ahead this is right in option D (d,f) now taking(d,e ) is wrong Gurdeep Saini answered Nov 6, 2018 Gurdeep Saini comment Share Follow See all 6 Comments 6 6 Comments reply Show 3 previous comments ankitgupta.1729 commented Apr 2, 2019 reply Follow flag In option (B), (a, b) comes before (d, c) 0 0 replyShare Gurdeep Saini commented Apr 2, 2019 reply Follow flag because the weight of (a,b) is less than that of (d,c) 0 0 replyShare ankitgupta.1729 commented Apr 2, 2019 reply Follow flag I am saying should not (d, c) and (b, f) come together and (a, b) after that... And also write that you have considered 'e' as a source... I guess everyone taking 'd' as source vertex 0 0 replyShare Please log in or register to add a comment.