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 heap?
Think about its purpose in managing priorities.
What makes a max heap?
Recall the definition of a max heap.
What operation retrieves the maximum element from a heap?
Think about which operation deals with the priority.
Is it true that any binary tree is a heap?
Remember the properties of a heap.
Design a heap from the numbers [15, 10, 2, 1, 8, 5]. Describe the steps you take to build it.
Be cautious about rearranging numbers as you insert.
If you have a valid heap and remove the max element. What must happen next? Create a list of steps showing the process.
Visualize how the last element fills the void.
5 more questions in this section. Enroll free to practise them all.
Enroll free