In a heap array the root is at index 0. Where are the children of index 1?
A priority queue holds several tasks. Which task comes out first?
In a min heap, every parent is no larger than its children, so the smallest item sits at the root.
Circle one: True False
The root is removed from a heap with several items left. What is the repair?
A new item lands in a heap and breaks the value rule with its parent. What do you do?
In a heap array with the root at index 0, a node sits at index 2. What index holds its left child?
Answer: ______________
A teammate keeps a sorted list and calls removal instant but inserts painful. What do you suggest?
Why do heap insert and extract each cost log n?