FAILURE MAP
← Case archive

FA-40608 / Heap invariants / Member archive

Complete binary heap has one unary internal node only at positive even size · case 03

The bounded bottomup schedule certificate reports an incorrect unpaired parent.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

For building a complete zero-based binary heap of n nodes, report descending internal-node repair schedule, leaf indices, level spans as inclusive [start,end], right-child-less internal node, parent dependency edges [child,parent], and number of internal nodes. This describes the build work graph, not sorted output.

Why this case matters

This isolates an internal heap representation or priority-structure invariant using deterministic finite records.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression certificate 3{"dependencies": [], "internal_count": 1, "leaves": [1], "levels": [[0, 0], [1, 1]], "schedule": [0], "unpaired_parent": 1}{"dependencies": [], "internal_count": 1, "leaves": [1], "levels": [[0, 0], [1, 1]], "schedule": [0], "unpaired_parent": 0}Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗