MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Prims Algorithm Multiple Choice knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following is false about Prim s algorithm? |
| A. | It is a greedy algorithm |
| B. | It constructs MST by selecting edges in increasing order of their weights |
| C. | It never accepts cycles in the MST |
| D. | It can be implemented using the Fibonacci heap |
| Answer» C. It never accepts cycles in the MST | |
| 2. |
Prim s algorithm can be efficiently implemented using _____ for graphs with greater density. |
| A. | d-ary heap |
| B. | linear search |
| C. | fibonacci heap |
| D. | binary search |
| Answer» B. linear search | |
| 3. |
Prim s algorithm is also known as __________ |
| A. | Dijkstra Scholten algorithm |
| B. | Bor vka s algorithm |
| C. | Floyd Warshall algorithm |
| D. | DJP Algorithm |
| Answer» E. | |
| 4. |
Kruskal s algorithm is best suited for the sparse graphs than the prim s algorithm. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 5. |
Prim s algorithm resembles Dijkstra s algorithm. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 6. |
Prim s algorithm is a ______ |
| A. | Divide and conquer algorithm |
| B. | Greedy algorithm |
| C. | Dynamic Programming |
| D. | Approximation algorithm |
| Answer» C. Dynamic Programming | |
| 7. |
Worst case is the worst case time complexity of Prim s algorithm if adjacency matrix is used? |
| A. | O(log V) |
| B. | O(V<sup>2</sup>) |
| C. | O(E<sup>2</sup>) |
| D. | O(V log E) |
| Answer» C. O(E<sup>2</sup>) | |