Notes

Search

Search IconIcon to open search

Heaps

Last updated Dec 31, 2022

Heaps are a pretty famous data structure. Note that they’re not at all related to ’the heap’, something you’d learn in an operating systems class.

Introducing the Heap

It is a binary tree with the following properties:

Heap Operations

Insert

Delete Smallest

Get Smallest