Heaps (W7D5) - Learning Objectives
Heaps
- Explain and implement a Heap.
- What is a max (or min) heap?
- How is a binary heap different from a binary search tree?
- What is a complete tree? How does it relate to heaps?
- What is a commmon way to represent heaps in JavaScript?
- In this representation, how can we find any particular node’s parent or children?
- What processes do we need to follow when we insert an element into a heap?
- What processes do we need to follow when we remove then root of a heap?
- Given an array, determine if it represents a max (or min) heap.