Numerical representations as purely functional data structures: a new approach

被引:0
|
作者
Ivanovic, M
机构
[1] Univ Novi Sad, Fac Sci & Math, YU-21000 Novi Sad, Yugoslavia
[2] MIT, Comp Sci Lab, Cambridge, MA 02139 USA
关键词
data structures; purely functional language; random-accesss list; program derivation; recursive slowdown;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
This paper is concerned with design, implementation and verification of persistent purely functional data structures which are motivated by the representation of natural numbers using positional number systems. A new implementation of random-access list based on redundant segmented binary numbers is described. It uses 4 digits and an invariant which guarantees constant worst-case bounds for cons, head, and tail list operations as well as logarithmic time for lookup and update. The relationship of random-access list with positional number system is formalized and benefits of this analogy are demonstrated.
引用
收藏
页码:163 / 176
页数:14
相关论文
共 50 条