Question 21
What is the time complexity of Prim's algorithm using a Binary Min-Heap for a graph with V vertices and E edges?
Extracting minimum vertex V times takes O(V log V) and updating edge key values E times takes O(E log V), total O((V + E) log V).