arXiv · cs/0406014
O(1) Reversible Tree Navigation Without Cycles
Abstract
Imperative programmers often use cyclically linked trees in order to achieve O(1) navigation time to neighbours. Some logic programmers believe that cyclic terms are necessary to achieve the same in logic-based languages. An old but little-known technique provides O(1) time and space navigation without cyclic links, in the form of reversible predicates. A small modification provides O(1) amortised time and space editing.
Explore related subjects
Keep this discovery
Richard A. O'Keefe. 2004-06-07. O(1) Reversible Tree Navigation Without Cycles. https://arxiv.org/abs/cs/0406014
Cite the original work for its findings. Save a collection to share your selection of sources.