Software Engineering KB

Home

❯

01 Foundations

❯

00 Data Structures

❯

01 Concept

❯

Heaps

Heaps

Feb 10, 20261 min read

  • data-structures
  • trees
  • heaps

Heaps

← Back to Tree Structures

Complete binary tree satisfying the heap property — parent is always greater (max-heap) or smaller (min-heap) than children. Primary implementation of priority queues.

Key Properties

  • Min-Heap
  • Max-Heap
  • Binary Heap
  • Fibonacci Heap

Complexity

OperationTime Complexity
InsertO(log n)
Extract-min/maxO(log n)
PeekO(1)
Build heapO(n)
Decrease-keyO(log n) [O(1) amortized for Fibonacci]

Related

  • Priority Queues (abstract interface)
  • Queues
  • Heap Sort

data-structures trees heaps


Graph View

  • Heaps
  • Key Properties
  • Complexity
  • Related

Backlinks

  • Software Engineering - Map of Content
  • Tree Structures
  • Binary Trees
  • Queues
  • Binary Heap
  • Fibonacci Heap
  • Max-Heap
  • Min-Heap

Created with Quartz v4.5.2 © 2026

  • GitHub