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

Abstract

In this paper, we study the class cstPP of operations op: Nk, of any fixed arity k 1, satisfying the following property: for each fixed integer d 1, there exists an algorithm for a RAM machine which, for any input integer N 2, - pre-computes some tables in O(N) time, - then reads k operands x1,…,xk<Nd and computes op(x1,…,xk) in constant time. We show that the 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\, or any set of operations in cstPP provided it includes +. We prove that the cstPP class is closed under composition and, for fast-growing functions, is closed under inverse. We also show that in the definition of 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 class: this class is not modified if the preprocessing time is increased to O(Nc), for any fixed c>1, or conversely, is reduced to N, for any positive <1 (provided the set of primitive operation includes +, div and mod). To complete the picture, we demonstrate that the cstPP class degenerates if the preprocessing time reduces to No(1).

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…