arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1111.6026cs.CCmath.CO
收藏

无记忆计算:新结果、构造和扩展

Memoryless computation: new results, constructions, and extensions

Maximilien Gadouleau, Soren Riis

摘要:

在本文中,我们对无记忆计算感兴趣,这是一种计算函数的现代范式,它概括了著名的异或交换算法,可以在不使用缓冲区的情况下交换两个变量的内容。这使用了过程程序设计语言的组合框架,其中程序一次只允许更新一个变量。我们首先考虑没有任何内存的程序。我们证明了任何函数的$n$变量可以计算这种方式只有$4n-3$变量更新。然后,我们推导出计算任何变量操作所需的指令的确切数量。这表明,组合变量,而不是简单地移动它们,不仅允许无内存程序,而且还产生更短的程序。其次,我们表明,允许程序使用内存也被纳入无记忆计算框架。然后,我们量化使用内存获得的收益:这会导致更短的程序,并允许我们只使用二进制指令,这是不够的,在一般情况下,当没有使用内存。

英文摘要:

In this paper, we are interested in memoryless computation, a modern paradigm to compute functions which generalises the famous XOR swap algorithm to exchange the contents of two variables without using a buffer. This uses a combinatorial framework for procedural programming languages, where programs are only allowed to update one variable at a time. We first consider programs which do not have any memory. We prove that any function of $n$ variables can be computed this way in only $4n-3$ variable updates. We then derive the exact number of instructions required to compute any manipulation of variables. This shows that combining variables, instead of simply moving them around, not only allows for memoryless programs, but also yields shorter programs. Second, we show that allowing programs to use memory is also incorporated in the memoryless computation framework. We then quantify the gains obtained by using memory: this leads to shorter programs and allows us to use only binary instructions, which is not sufficient in general when no memory is used.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑