Vidyalelo
Data Structure · Q42

Graphs

Programming · Data Structure · question 42

Q42

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.
Answer
D.
To represent the adjacency matrix.

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board