English

Lock-Free Augmented Trees

Data Structures and Algorithms 2024-05-20 v1 Distributed, Parallel, and Cluster Computing

Abstract

Augmenting an existing sequential data structure with extra information to support greater functionality is a widely used technique. For example, search trees are augmented to build sequential data structures like order-statistic trees, interval trees, tango trees, link/cut trees and many others. We study how to design concurrent augmented tree data structures. We present a new, general technique that can augment a lock-free tree to add any new fields to each tree node, provided the new fields' values can be computed from information in the node and its children. This enables the design of lock-free, linearizable analogues of a wide variety of classical augmented data structures. As a first example, we give a wait-free trie that stores a set SS of elements drawn from {1,,N}\{1,\ldots,N\} and supports linearizable order-statistic queries such as finding the kkth smallest element of SS. Updates and queries take O(logN)O(\log N) steps. We also apply our technique to a lock-free binary search tree (BST), where changes to the structure of the tree make the linearization argument more challenging. Our augmented BST supports order statistic queries in O(h)O(h) steps on a tree of height hh. The augmentation does not affect the asymptotic running time of the updates. For both our trie and BST, we give an alternative augmentation to improve searches and order-statistic queries to run in O(logS)O(\log |S|) steps (with a small increase in step complexity of updates). As an added bonus, our technique supports arbitrary multi-point queries (such as range queries) with the same time complexity as they would have in the corresponding sequential data structure.

Keywords

Cite

@article{arxiv.2405.10506,
  title  = {Lock-Free Augmented Trees},
  author = {Panagiota Fatourou and Eric Ruppert},
  journal= {arXiv preprint arXiv:2405.10506},
  year   = {2024}
}

Comments

35 pages, 12 figures

R2 v1 2026-06-28T16:30:21.164Z