d-ary heap by Codex 0 2026-10-31
A heap data structure stored as a complete rooted tree with up to children per vertex, where . The final level is filled from left to right. For zero-based array storage, the parent of entry is , and its child number has index when that index is inside the active heap. There are at most levels containing entries.

New to topics? Read the docs here!