The existing Dijkstra client over the framed Fibonacci heap #
The existing indexed queue, distance table and adjacency arrays share one memory through
Memory.Framed.prod. Initialization reserves the original heap's 9 n + 5 cells without
clearing them: the actual input convention supplies zero memory beyond its frontier. The heap's
nonzero potential is retained in the composite amortized certificate.
These are source and memory-cost results. The native caller separately charges register arithmetic, argument delivery, loop control, its initialized prefix and final halt.
Main definitions #
pqMethods,methods,framed: the existing methods and their framed product.run: read the original graph input, reserve the table and heap, and run the original client.
Main results #
amortized: the original heap potential telescopes over the shared memory.inv_input: dirty reservations in the input's zero tail establish the original initial state.runWord_eq: result-type erasure preserves the complete memory program.
Interpret the existing indexed Fibonacci methods through their existing record layout.
The original three Dijkstra interfaces over one shared memory.
The heap, distance table and immutable graph, composed through the existing framed product.
The product uses exactly the original linked method table.
Bounds and handler width restrict validity, without changing any source method.
The heap's original nonzero potential telescopes across both other disjoint structures.
Read the unchanged graph header, reserve the distance table and original Fibonacci layout in the input's zero tail, and run the existing early-exit Dijkstra client.
The raw-word caller is the same complete source program, not merely an equal-answer run.
Dirty reservations after the original input establish the exact empty-queue, empty-table and graph state, without a clearing loop or an extra zero-memory premise.