Flat programs from native Dijkstra memory clients #
The binary-heap and Fibonacci-heap endpoints both realize a memory program that reads the
adjacency-list input words, and both export it through the standard initialized-program
exporter. exists_program_state is that export: a uniform realization, the program's
admissibility and distance outputs, and a bound c G on its memory cost give one flat program
whose halting run computes the distances in O(c G + 1) steps and ends in the program's final
memory. Each endpoint supplies only its cost bound.
Main results #
exists_program_state: the flat export of a native Dijkstra memory client.
The flat export of a native Dijkstra memory client. Let p be uniformly realized on the
input words of every graph at every word size that holds 8 (n + m + 2) (W + 2), and on those
inputs be admissible, leave the encoded distances at the output cells and cost at most c G
memory units. Then one flat exact-basis program, chosen before every graph and word size, halts
within C (c G + 1) steps with the encoded distances at the output cells, its final memory and
frontier being those of p. The prefix installing the input, the body and the halt are charged.