© 1988 by British Computer Society
Efficient Implementation of Binary Trees in LISP Systems
Dipartimento di Elettrotecnica, Elettronica, Informatica, Università di Trieste, Italy
Received 1 December 1986; revised 1 November 1987
In this paper, I consider how to implement the basic data structure of LISP programming, the binary tree. I show that, for the compact encoding of LISP trees, three-pointer cells are preferable to the conventional two-pointer ones. The result is one I reported previously, but here the analysis is done more elegantly, using the methods of probabilistic grammars. I also present a detailed implementation of LISP operators for the case in which multi-pointer cells are adopted.