A Heap Is Also a Structure in Computing

A heap is an untidy pile. Computer science borrowed the word for two entirely different things.

A heap is an untidy pile of things, and informally a great quantity. Computing uses the word for two unrelated ideas: a *heap* data structure, a tree that keeps the largest or smallest item at the top, and *the heap*, the region of memory used for dynamic allocation. The two share a name by accident and confuse students regularly. *Heaps of* meaning plenty is informal British and Australian, and *heap of trouble* is much older.

Word forms

FormWordExample
NounheapA heap.
PluralheapsHeaps.
VerbheapHeaping.
AdjectiveheapedA heaped spoon.
Old EnglishheapA heap.

Two heaps in computing

Old English *heap*, a pile or multitude, of Germanic origin, related to German *Haufen*.

Are the two computing heaps related?

No. One is a tree structure keeping the extreme value at the root, the other is a region of memory. They share a name by accident.

What is a heaped spoonful?

One piled above the level of the rim, as opposed to a level spoonful scraped flat.

Sources

WhatsAppXTelegramFacebook

More 4-letter words