在有加法的RAM模型中,哪些算术运算可以在常数时间内完成?
Which arithmetic operations can be performed in constant time in the RAM model with addition?
摘要:
在算法的文献中,具体的计算模型往往是不明确的,因为它是假设的计算模型是RAM(随机存取机)模型。然而,RAM模型本身在文献中是站不住脚的,有不同的定义,没有统一的结果。本文的目标是从头开始建立RAM模型,展示一个RAM模型,享有有趣的算法特性和其复杂性类的鲁棒性,特别是LIN,线性时间可计算问题的类,或现在众所周知的CONST-DELAY-lin类枚举问题可计算线性时间预处理后的常数延迟,我们定义的计算模型是一个RAM,它的内容和寄存器地址是$O(N)$,其中$N$是输入的大小(寄存器的数量),每条指令的时间成本是1(单位成本标准)。我们的RAM模型的基础的关键将是证明,即使添加是唯一的原始操作,这样的RAM仍然可以计算所有的基本算术运算在恒定的时间后,线性时间预处理。此外,虽然RAM只处理每个寄存器中的$O(N)$整数,但我们将证明,我们的RAM可以处理$O(N^d)$整数,对于任何固定的d,通过将它们存储在$O(d)$寄存器中,我们将有令人惊讶的算法来计算作用于这些“多项式”整数的许多运算--加、减、乘、除、指数、整数对数、整数平方根(或$c$ -th root,对于任何整数$c$)、按位逻辑运算,以及更一般地,在元胞自动机上在线性时间内可计算的任何运算-在线性时间预处理之后在恒定时间内。
英文摘要:
In the literature of algorithms, the specific computation model is often not explicit as it is assumed that the model of computation is the RAM (Random Access Machine) model. However, the RAM model itself is ill-founded in the literature, with disparate definitions and no unified results. The ambition of this paper is to found the RAM model from scratch by exhibiting a RAM model that enjoys interesting algorithmic properties and the robustness of its complexity classes, notably LIN, the class of linear-time computable problems, or the now well-known CONST-DELAY-lin class of enumeration problems computable with constant delay after linear-time preprocessing, The computation model that we define is a RAM whose contents and addresses of registers are $O(N)$, where $N$ is the size (number of registers) of the input, and where the time cost of each instruction is 1 (unit cost criterion). The key to the foundation of our RAM model will be to prove that even if addition is the only primitive operation, such a RAM can still compute all the basic arithmetic operations in constant time after a linear-time preprocessing. Moreover, while the RAM handles only $O(N)$ integers in each register, we will show that our RAM can handle $O(N^d)$ integers, for any fixed d, by storing them on $O(d)$ registers and we will have surprising algorithms that computes many operations acting on these "polynomial" integers -- addition, subtraction, multiplication, division, exponential, integer logarithm, integer square root (or $c$-th root, for any integer $c$), bitwise logical operations, and, more generally, any operation computable in linear time on a cellular automaton -- in constant time after a linear-time preprocessing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。