retagged by
1,278 views

1 Answer

Best answer
5 votes
5 votes

If we consider strictly Kruskal's algorithm , then we require sorting of edges and if we consider the worst case,

Quicksort will give = O(E2) [Considering the worst case of quicksort and the fact that we need sorting of edges in Kruskal's algo]

Heapsort will give = O(ElogE)

Substituting E = 16 we have ,

using quicksort we have : 16= 256

and using heapsort =       16 log 16 = 64

Hence change in time = 256 - 64 = 192 time units

selected by

Related questions

2 votes
2 votes
2 answers
1
Psy Duck asked Jun 24, 2023
969 views
Can anyone help in solving the question 105 to 109.I don't have answer key I want to confirm my answer ...i will update my answer in the comments.
2 votes
2 votes
3 answers
4
Geet asked Oct 26, 2016
1,632 views
Can Prim's and Kruskal's algorithm yield different minimum spanning trees? Explain why or why not.