Graphs - Study Mode
[#96] Which algorithm is used to find the minimum spanning tree in a graph?
Correct Answer
(D) Kruskal's Algorithm
[#97] In a weighted graph, what does a negative weight cycle indicate for shortest path algorithms?
Correct Answer
(C) The shortest path cannot be computed reliably.
[#98] What is the time complexity of the BFS algorithm for a graph represented using an adjacency list?
Correct Answer
(B) O(V + E)
[#99] How does the Floyd-Warshall algorithm compute shortest paths in a graph?
Correct Answer
(C) By considering all pairs of vertices and iteratively updating shortest paths.
[#100] What is the primary purpose of using a priority queue in graph algorithms like Dijkstra's?
Correct Answer
(D) To efficiently extract the vertex with the minimum distance.