Question
A programmer needs event simulation and shortest-path algorithms, and the chosen structure has the property that the highest- or lowest-priority item is served first. Which choice fits best?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Priority Queue
Explanation:
Priority Queue fits because it supports event simulation and shortest-path algorithms and the highest- or lowest-priority item is served first.
Both clues point to this choice.
Leave a Reply