Sciweavers

INFORMATICALT
2002

Numerical Representations as Purely Functional Data Structures: a New Approach

13 years 11 months ago
Numerical Representations as Purely Functional Data Structures: a New Approach
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. Key words: data structures, purely functional language, random-accesss list, program derivation, recursive slowdown.
Mirjana Ivanovic, Viktor Kuncak
Added 22 Dec 2010
Updated 22 Dec 2010
Type Journal
Year 2002
Where INFORMATICALT
Authors Mirjana Ivanovic, Viktor Kuncak
Comments (0)