Expand description
Interval Tree Clock (ITC) data structures.
Implements the ID tree, Event tree, and Stamp types from: Almeida, Baquero & Fonte (2008) “Interval Tree Clocks”.
Idrepresents a partition of the interval [0, 1) among agents.Eventrepresents causal history as a binary tree of counters.Stampcombines an ID tree and Event tree into an ITC stamp.
Trees are automatically normalized to their minimal representation. Operations (fork, join, event, peek, leq) are in a separate module.
Structs§
- Stamp
- An ITC stamp: a pair of (ID tree, Event tree).