Skip to main content
Log in

Representing Trees of Higher Degree

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

This paper focuses on space efficient representations of rooted trees that permit basic navigation in constant time. While most of the previous work has focused on binary trees, we turn our attention to trees of higher degree. We consider both cardinal trees (or k-ary tries), where each node has k slots, labelled {1,...,k}, each of which may have a reference to a child, and ordinal trees, where the children of each node are simply ordered. Our representations use a number of bits close to the information theoretic lower bound and support operations in constant time. For ordinal trees we support the operations of finding the degree, parent, ith child, and subtree size. For cardinal trees the structure also supports finding the child labelled i of a given node apart from the ordinal tree operations. These representations also provide a mapping from the n nodes of the tree onto the integers {1, ..., n}, giving unique labels to the nodes of the tree. This labelling can be used to store satellite information with the nodes efficiently.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to David Benoit, Erik D. Demaine, J. Ian Munro, Rajeev Raman, Venkatesh Raman or S. Srinivasa Rao.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Benoit, D., Demaine, E., Munro, J. et al. Representing Trees of Higher Degree. Algorithmica 43, 275–292 (2005). https://doi.org/10.1007/s00453-004-1146-6

Download citation

  • Received:

  • Revised:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-004-1146-6

Navigation