Hostname: page-component-77c78cf97d-bzm8f Total loading time: 0 Render date: 2026-05-03T05:08:56.141Z Has data issue: false hasContentIssue false

A generalization of the trie data structure

Published online by Cambridge University Press:  04 March 2009

Richard H. Connelly
Affiliation:
Department of Mathematics and Computer Science, Providence College, River and Eaton Streets, Providence, Rhode Island 02918, USA. Email: rconnell@sequent1.providence.edu
F. Lockwood Morris
Affiliation:
School of Computer and Information Science, 4–116 Center for Science and Technology, Syracuse University, Syracuse, New York 13244–4100, USA. Email: lockwood@top.cis.syr.Edu

Abstract

Tries, a form of string-indexed look-up structure, are generalized, in a manner first discovered by Wadsworth, to permit indexing by terms built according to an arbitrary signature. The construction is parametric with respect to the type of data to be stored as values; this is essential, because the recursion that defines tries appeals from one value type to others. ‘Trie’ (for any fixed signature) is then a functor, and the corresponding look-up function is a natural isomorphism.

The trie functor is in principle definable by the ‘initial fixed point’ semantics of Smyth and Plotkin. We simplify the construction, however, by introducing the ‘category-cpo’, a class of category within which calculations can retain some domain-theoretic flavor. Our construction of tries extends easily to many-sorted signatures.

Information

Type
Research Article
Copyright
Copyright © Cambridge University Press 1995

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable