×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

In the adjacency matrix representation, the time complexity of Prim's algorithm is ____.

47. In the adjacency matrix representation, the time complexity of Prim's algorithm is ____.

  1. O(V log E)
  2. O(V^3)
  3. O(V^2)
  4. O(E^2)

Answer

The correct answer is: C) O(V^2)

Explanation

When using an adjacency matrix, the time complexity of Prim's algorithm is O(V^2) due to the need to check all edges for the minimum weight edge selection.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.