Deterministic time on the word RAM #
Cslib.WordRAM.RAMTIME B enc T is the class of problems decided by one fixed word-RAM program over
the basis B within c * T n + c instructions, for a constant c, on instances whose encoding
under enc has length n, at every word size of at least the logarithmic threshold
logWidth k n, for a constant k > 0. The conventions are those of
Cslib.WordRAM.UniformPolynomialTime in CslibFrontier.Computability.Complexity.Classes.P.WordRAM:
the input words are the bits (enc a).map Bool.toNat, and the size is |enc a|. The program may
read the word size; the time bound does not depend on it.
The two simulations between the word RAM and multi-tape Turing machines relate RAMTIME to
Cslib.Complexity.DTIME:
- RAM ⇒ TM. For a time-constructible
T, a program overBasis.additivein timeO(T)is simulated by a machine in timeO((n + T n + 1) ^ 4 * (log n + 1) ^ 3)(Cslib.WordRAM.RAMTIME_additive_subset_DTIME). This is the explicit overhead ofCslib.WordRAM.Program.DecidesInTime.mem_DTIME, run on the clock(c + 1) * (T n + 1), with the constantscandkabsorbed into theDTIMEconstant. - TM ⇒ RAM. For a polynomially bounded
g, a machine in timeO(g)is simulated by a program overBasis.additivein timeO(g)(Cslib.WordRAM.DTIME_subset_RAMTIME_additive), the simulation ofCslib.WordRAM.OfTuring.executes_simProgram. The polynomial bound is needed for logarithmic words to hold the addresses of the simulated tapes.
Main definitions #
Cslib.WordRAM.RAMTIME: deterministic time on the word RAM.
Main results #
Cslib.WordRAM.RAMTIME_mono,Cslib.WordRAM.RAMTIME_subset_of_hom: monotonicity in the time bound and in the basis.Cslib.WordRAM.RAMTIME_additive_subset_DTIME: word-RAM time in deterministic time.Cslib.WordRAM.DTIME_subset_RAMTIME_additive: deterministic time in word-RAM time.
References #
Deterministic time on the word RAM. The problems decided by one fixed program over the
basis B within c * T n + c instructions, for a constant c, on the bits of an instance whose
encoding under enc has length n, at every word size of at least logWidth k n, for a constant
k > 0.
Word-RAM time in deterministic time #
Word-RAM time in deterministic time. For a time-constructible T, a problem decided by a
fixed program over Basis.additive in time O(T n) at logarithmic word sizes is in
DTIME ((n + T n + 1) ^ 4 * (Nat.size n + 1) ^ 3). For n ≤ T n this is
O(T(n) ^ 4 log³ n).
Deterministic time in word-RAM time #
Deterministic time in word-RAM time. For a polynomially bounded g, a problem in
DTIME g is decided by one fixed program over Basis.additive within O(g n) instructions at
every word size above a logarithmic threshold: the simulator of a machine deciding it
(Cslib.WordRAM.OfTuring.simProgram), run on the bits of the instance.