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 the primary property of a Max Heap?
Think about the structure of a Max Heap.
How are heaps filled?
Visualize how a tree grows.
In a Max Heap, which is true?
Think about the definition of a Max Heap.
True or False: Insertion in a Max Heap can occur anywhere in the tree.
Recall the ordering rules of heaps.
You have a Max Heap containing the elements {30, 20, 10}. If we insert 25, what is the new configuration of the heap?
Consider where 25 would sit and check upward for correctness.
Explain the worst-case time complexity of insertion and deletion in a Max Heap, and demonstrate one operation.
Use examples to illustrate how many swaps might occur.
5 more questions in this section. Enroll free to practise them all.
Enroll free