Question 10668 – Time-Complexity
February 13, 2024
Question 10494 – Time-Complexity
February 13, 2024
Question 10668 – Time-Complexity
February 13, 2024
Question 10494 – Time-Complexity
February 13, 2024

Question 10528 – Time-Complexity

Choose the correct alternatives (more than one may be correct) and write the corresponding letters only:
Kruskal’s algorithm for finding a minimum spanning tree of a weighted graph
G with vertices and m edges has the time complexity of:

Correct Answer: F

Question 31 Explanation: 
Though the edges are sorted still due to finding union operation complexity is O(m log n).
→ Where m is no. of edges and n is number of vertices then n = O(m2)
→ O(m logn) < O(mn)
A
O(n2)
B
O(mn)
C
O(m+n)
D
O(m log n)
E
O(m2
F
B, D and E
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!