Q.

Kruskal’s algorithm is a              

A. divide and conquer algorithm
B. dynamic programming algorithm
C. greedy algorithm
D. approximation algorithm
Answer» C. greedy algorithm
Explanation: kruskal’s algorithm uses a greedy algorithm approach to find the mst of the connected weighted graph. in the greedy method, we attempt to find an optimal solution in stages.
4k
0
Do you find this helpful?
29

Discussion

No comments yet