Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What operation is used to add a new job to a priority queue?
Think about how we add elements to any list or queue.
What is 'Delete Max' in a priority queue?
Consider what priorities control the order of job execution.
What is the primary function of a priority queue?
Consider the purpose of the term 'priority'.
True or False: In a sorted list implementation of a priority queue, insertion is faster than deletion.
Think about how sorted order affects where you put new elements.
Design a priority queue that can handle 1000 jobs using a two-dimensional array and calculate the maximum and minimum insert/deletion times.
Apply the principles of sorting and organization we discussed.
Explain how shifting to a binary heap could further optimize a system that uses a two-dimensional array for priority management.
Consider how a balanced tree structure changes the complexity of these operations.
4 more questions in this section. Enroll free to practise them all.
Enroll free