Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What are the two main properties of a heap?
Think about how the tree is structured and how the values are arranged.
Explain what happens when you insert an element into a heap.
Focus on the order of insertion.
What is the primary use of a heap?
Recall how jobs are prioritized.
In a max heap, the value of a parent node is always ____ its child nodes.
Think about the structure maintained in heaps.
Given a series of insertions: 7, 5, 12, 10, construct the heap and explain each step.
Build the max heap step by step, ensuring you bubble up where needed.
Explain why heaps achieve O(log N) time complexity for insertion and deletion operations.
Think about the structure of trees and how many levels there are.
5 more questions in this section. Enroll free to practise them all.
Enroll free