Documentation

CslibFrontier.Algorithms.WordRAM.Dijkstra.Fibonacci

Dijkstra's Algorithm with a Fibonacci Heap in O(m + n (⌊log₂ n⌋ + 1)) Time #

The unchanged reachable-vertex and textbook endpoint statements now follow from Cslib.Algorithms.Lean.Dijkstra.Native.Fibonacci.exists_program_state. One native exact-basis flat program and instruction factor precede every graph and word size. The original graph encoding, word envelope and shortest-path semantics are unchanged. Its actual input prefix, body and halt are charged, and the stronger endpoint retains the complete final source memory and frontier. Initialization reserves the input's zero tail without a linear clearing pass.

The old fibDijkstra implementation and its implementation-specific fibDijkstra_spec, fibonacciSpec and fibonacciLinearSpec helpers at coefficient 640 are superseded. That coefficient is not asserted for the native witness; the original public statements already quantify over one uniform factor. The separate indexed Fibonacci execution core is retained for its remaining clients.

Main results #

References #

Reachable-vertex Fibonacci-heap Dijkstra theorem.

Fibonacci-heap Dijkstra main theorem. Some word-RAM program over the exact basis computes all shortest-path distances from the source of a weighted directed graph with n vertices and m edges, given by adjacency lists, within O(m + n (⌊log₂ n⌋ + 1)) instructions.