Overview
A skew heap is a heap-ordered binary tree with no explicit balance metadata. Its meld operation recursively merges right paths and swaps children, giving good amortized behavior through self-adjustment.
Maintains a self-adjusting mergeable heap by swapping children during every meld.
Compact metadata for implementation and discovery.
A skew heap is a heap-ordered binary tree with no explicit balance metadata. Its meld operation recursively merges right paths and swaps children, giving good amortized behavior through self-adjustment.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(log n)
Worst
O(n)
Space
O(n)
Show self-adjusting heap merges by swapping children along the merge path on a small meldable priority queue example.
Skew heaps are simple but should be described with amortized, not strict per-operation, guarantees.
What each reference supports for this entry.
Data-structures reference for Skew Heap self-adjusting meldable heap operations.
Good next jumps from the relationship graph, ranked for useful discovery.
Skew heaps avoid leftist null-path metadata by self-adjusting during meld.
Both are pointer-based heaps with simple meld operations.
A skew heap is a self-adjusting priority queue.