- Date
- December 2025.
In this file is implemented a concurrent disjoint-set (also called union-find) data structure. It was implemented by Wenzel Jakob and comes from the following repository: https://github.com/wjakob/dset The code was slightly modified. Below can be found the license of the original code.
Related publication
"Wait-free Parallel Algorithms for the Union-Find Problem"
Richard J. Anderson and Heather Woll
STOC 1991. Lock-free parallel disjoint set data structure (aka UNION-FIND) with path compression and union by rank
Supports concurrent find(), same() and unite() calls as described in the paper
"Wait-free Parallel Algorithms for the Union-Find Problem" by Richard J. Anderson and Heather Woll
In addition, this class supports optimistic locking (try_lock/unlock) of disjoint sets and a combined unite+unlock operation.
- Author
- Wenzel Jakob
Definition at line 57 of file dset.h.