© 1991 by British Computer Society
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Implementation of Flexible Arrays Using Balanced Trees
Department of Computer Science, University of Reading, Whiteknights, Reading RG6 2AX, UK
A method of implementing single-ended flexible arrays (stacks) using a 2-3 tree is studied. This is a step towards studying the possible alternative of using B-trees for allocation within flexible indexible arrays. Two different variants were presented, one using single-heap and the other separate heaps for 2-nodes and 3-nodes. Algorithms are derived for extending and popping an element from a 2-3 tree.
Received September 1987. revised April 1991.
* Department of Computer Science, University of Reading, Whiteknights, Reading RG6 2AX