1 1 vote First statement is False because complexity will be O(E2). I think the second statement is true? But not sure Algorithms algorithms minimum-spanning-tree time-complexity prims-algorithm + – Shivam Chauhan 1.4k views answer comment Share Follow Print See all 6 Comments 6 6 Comments reply Show 3 previous comments Shivam Chauhan commented Nov 2, 2017 reply Follow flag Second statement is true Because For Prim at each step we have connected tree. For Kruskal at each step we have disconnected tree. Code from Cormen We make separate sets for each vertex and add edges one by one to connect different trees. (always we have a forest). 0 0 replyShare joshi_nitish commented Nov 2, 2017 reply Follow flag @Shivam, apply kruskal in this graph you will get only single connected tree at every connected 2 2 replyShare Shivam Chauhan commented Nov 2, 2017 reply Follow flag Thanks @joshi_nitish I got the answer. 0 0 replyShare Please log in or register to add a comment.