Timing complexity of Prims Algorithm - Data Structure

Q.  What is the timing complexity of Prim's Algorithm for a graph comprising ' n ' vertices?
- Published on 27 Aug 15

a. O(n)
b. O(n2)
c. O(n3)
d. O(n-1)2

ANSWER: O(n2)

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)