Courses
Tracks
All courses
/
Data Structures with Python
Heaps and priority queues check
Heaps and priority queues
15 / 15
Heaps and priority queues
Heaps and priority queues check
Question 1 of 4
25%
Why is bottom-up heapify O(n) rather than O(n log n)?
Every sift-down is constant time
Most nodes are near leaves and can move only a short distance
Heapify sorts only half the values
Submit Answer