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.
Define a max heap.
Think about the relationship between parents and children in a tree.
What is the structural property of a heap?
How do nodes fill up in a perfect binary tree?
What is a max heap?
Focus on the relationship between parent and child values.
True or False: Heaps can have missing nodes in their structure.
Recall what defines a complete binary tree.
Given a sequence of values [40, 30, 20, 10, 50], create a max heap. Then demonstrate the insert operation by adding a new value of 35.
Remember the insertion order for heaps.
Design a tree structure that violates max heap property and then explain how to fix it. Provide the new correct structure.
Use the bubble-up mechanism to reestablish the max heap property.
5 more questions in this section. Enroll free to practise them all.
Enroll free