Documentation

CslibFrontier.DataStructure.PriorityQueue.FibonacciHeap.Native.Source

Iteration forms of the Fibonacci heap's memory programs #

These source equations expose the existing record programs to the realization rules. They preserve the entire memory-oracle program, rather than only its result on valid heaps. No instruction or amortized bound is claimed here; those require the method certificates and their reached-state domains.

Main definitions #

Main results #

Scan one consolidation-table slot and return the next degree. The record operations are exactly those in gather; its continuation is exposed for the shared iteration rule.

Scatter one root and retain the next root and largest placed degree. Preparation performs the original parent/mark writes before scattering; the inner scatter keeps its original fuel.

One cascading-cut step. none records the original stop at a root or after marking; some p records the original cut and continuation at its parent.

One consolidation step. An empty slot stops with the updated maximum degree; a collision keeps the old maximum and continues with exactly the root returned by link.

Every consolidation-table scan reads its slot, even when that slot is empty. This is a lower bound on the oracle charge, not an instruction bound or an admissibility assertion.

Every root-list step reads its successor before preparation and the inner scatter. Thus even zero inner fuel cannot turn a fixed iteration into free native control work.