Prim’s algorithm can be efficiently implemented using _____ for graphs with greater density.

Prim’s algorithm can be efficiently implemented using _____ for graphs with greater density. Correct Answer d-ary heap

In Prim’s algorithm, we add the minimum weight edge for the chosen vertex which requires searching on the array of weights. This searching can be efficiently implemented using binary heap for dense graphs. And for graphs with greater density, Prim’s algorithm can be made to run in linear time using d-ary heap(generalization of binary heap).

Related Questions

Prim’s algorithm can be implemented using _______