English

Constant Time with Minimal Preprocessing, a Robust and Extensive Complexity Class

Data Structures and Algorithms 2025-09-15 v1 Computational Complexity

Abstract

In this paper, we study the class cstPP\mathtt{cstPP} of operations op:NkN\mathtt{op}: \mathbb{N}^k\to\mathbb{N}, of any fixed arity k1k\ge 1, satisfying the following property: for each fixed integer d1d\ge 1, there exists an algorithm for a RAM machine which, for any input integer N2N\ge 2, - pre-computes some tables in O(N)O(N) time, - then reads kk operands x1,,xk<Ndx_1,\ldots,x_k<N^d and computes op(x1,,xk)\mathtt{op}(x_1,\dots,x_k) in constant time. We show that the cstPP\mathtt{cstPP} class is robust and extensive and satisfies several closure properties. It is invariant depending on whether the set of primitive operations of the RAM is {+}\{+\}, or {+,,×,div,mod}\{+,-,\times,\mathtt{div},\mathtt{mod}\}, or any set of operations in cstPP\mathtt{cstPP} provided it includes ++. We prove that the cstPP\mathtt{cstPP} class is closed under composition and, for fast-growing functions, is closed under inverse. We also show that in the definition of cstPP\mathtt{cstPP} the constant-time procedure can be reduced to a single return instruction. Finally, we establish that linear preprocessing time is not essential in the definition of the cstPP\mathtt{cstPP} class: this class is not modified if the preprocessing time is increased to O(Nc)O(N^c), for any fixed c>1c>1, or conversely, is reduced to NεN^{\varepsilon}, for any positive ε<1\varepsilon<1 (provided the set of primitive operation includes ++, div\mathtt{div} and mod\mathtt{mod}). To complete the picture, we demonstrate that the cstPP\mathtt{cstPP} class degenerates if the preprocessing time reduces to No(1)N^{o(1)}.

Cite

@article{arxiv.2509.10188,
  title  = {Constant Time with Minimal Preprocessing, a Robust and Extensive Complexity Class},
  author = {Étienne Grandjean and Louis Jachiet},
  journal= {arXiv preprint arXiv:2509.10188},
  year   = {2025}
}

Comments

In Honor of Yuri Gurevich on the occasion of his 85th Birthday

R2 v1 2026-07-01T05:33:23.946Z