Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a priority queue?
Focus on the order of task processing.
Define 'delete max' in the context of a priority queue.
Think about the top task in the queue.
What is the primary function of a priority queue?
Recall how job scheduling works.
True or False: In an unsorted priority queue, it takes constant time to delete the maximum element.
Think of how you'd locate the maximum.
You have a list of 100 jobs with different priorities. Which data structure would you recommend for maintaining an efficient priority queue and why?
Consider the operational efficiencies discussed.
Given a job with a lower priority arrives while a high-priority job is being processed, how does the priority queue manage this situation?
Think of how scheduling functions normally.
5 more questions in this section. Enroll free to practise them all.
Enroll free