Word-RAM time bounds give deterministic time bounds #
A fixed Basis.additive program that computes f within T n instructions on the bits of an
input of length n, at every word size of at least the logarithmic threshold logWidth k n, gives
f ∈ FTIME encIn encNat (t + (n + T + 1) ^ 4 · (k (size n + 1) + 1) ^ 3), provided the time bound
T n itself is computable from the input in time O(t n). For T n ≥ n this is
O(t n + T(n) ^ 4 log³ n). The decision version gives the same bound in DTIME.
The simulating machine runs at the word size k (size n + 1) = Θ(k log n), and its overhead is the
explicit polynomial of Program.ComputesInTime.computableInO_of_width_additive. The clock
hypothesis on T is needed because the machine computes its own step budget. The exponent 4
comes from the association-list memory of the simulator, whose scans are cubic in the encoded
state; it is not a property of the word-RAM model.
The input convention is that of CslibFrontier.Computability.WordRAM.Invariance: the words are the
bits of encIn a, and the size is |encIn a|. Together with the converse simulations of
CslibFrontier.Computability.WordRAM.OfTuring, this transfers word-RAM running times to the time
classes beyond P.
Main results #
Cslib.WordRAM.Program.ComputesInTime.computableInO_bits: the simulation as aComputableInObound depending only on the input length.Cslib.WordRAM.Program.ComputesInTime.mem_FTIME: word-RAM time gives function time.Cslib.WordRAM.Program.DecidesInTime.mem_DTIME: word-RAM decision time givesDTIME.
References #
The simulation of the bit-list convention at logarithmic word size, with time
O(t n + (n + T n + 1) ^ 4 · (k (size n + 1) + 1) ^ 3) and a space bound depending only on the
input length n.
Word-RAM time gives function time. A Basis.additive program computing f within
T n instructions on the bits of an input of length n, at every word size of at least
logWidth k n, computes a function in FTIME encIn encNat with bound
t n + (n + T n + 1) ^ 4 · (k (size n + 1) + 1) ^ 3, when T n is computable from the input in
time O(t n).
Word-RAM decision time gives deterministic time. A Basis.additive program deciding A
within T n instructions on the bits of an input of length n, at every word size of at least
logWidth k n, puts A in DTIME encIn with bound
t n + (n + T n + 1) ^ 4 · (k (size n + 1) + 1) ^ 3, when T n is computable from the input in
time O(t n).