AlgoViz

Heap properties

easy 16 min

A binary heap is a complete binary tree in which every parent is greater than or equal to its children (max-heap) or less than or equal to them (min-heap).

Check yourself

One question at a time. Each answer explains why.

Question 1 of 10

Score 0
conceptual

What is the relationship between a parent and its children in a max-heap?

Pick an answer to see why.

Flashcards

Say your answer, then reveal it.

Card 1 of 12

Recall

What are the two heap properties?

Say your answer, then reveal it.

These cards come back in Today, just before you would forget them.