Examveda

What is the primary use of a priority queue in graph algorithms?

A. To store all vertices of the graph.

B. To keep track of the visited nodes.

C. To efficiently manage and retrieve the minimum or maximum element.

D. To represent the adjacency matrix.

Answer: Option C


This Question Belongs to Data Structure >> Graphs

Join The Discussion

Related Questions on Graphs

What is a cycle in a graph?

A. A path that starts and ends at the same vertex with no other repetitions.

B. A path that includes all vertices exactly once.

C. A path with no edges.

D. A complete traversal of all vertices.