English

The Space Complexity of Consensus from Swap

Distributed, Parallel, and Cluster Computing 2023-08-04 v2

Abstract

Nearly thirty years ago, it was shown that Ω(n)\Omega(\sqrt{n}) registers are needed to solve obstruction-free consensus among nn processes. This lower bound was improved to nn registers in 2018, which exactly matches the best upper bound. The Ω(n)\Omega(\sqrt{n}) space complexity lower bound actually applies to a class of objects called historyless objects, which includes registers, test-and-set objects, and readable swap objects. However, every known nn-process obstruction-free consensus algorithm from historyless objects uses Ω(n)\Omega (n) objects. We give the first Ω(n)\Omega (n) space complexity lower bounds on consensus algorithms for two kinds of historyless objects. First, we show that any obstruction-free consensus algorithm from swap objects uses at least n1n-1 objects. More generally, we prove that any obstruction-free kk-set agreement algorithm from swap objects uses at least nk1\lceil \frac{n}{k}\rceil - 1 objects. This is the first non-constant lower bound on the space complexity of solving kk-set agreement with swap objects when k>1k > 1. We also present an obstruction-free kk-set agreement algorithm from nkn-k swap objects, exactly matching our lower bound when k=1k=1. Second, we show that any obstruction-free binary consensus algorithm from readable swap objects with domain size bb uses at least n23b+1\frac{n-2}{3b+1} objects. Since any historyless object can be simulated by a readable swap object with the same domain, our results imply that any obstruction-free consensus algorithm from historyless objects with domain size bb uses at least n23b+1\frac{n-2}{3b+1} objects. For b=2b = 2, we show a slightly better lower bound of n2n-2. The best known obstruction-free binary consensus algorithm from readable swap objects with domain size 22 uses 2n12n-1 objects, asymptotically matching our lower bound.

Keywords

Cite

@article{arxiv.2305.06507,
  title  = {The Space Complexity of Consensus from Swap},
  author = {Sean Ovens},
  journal= {arXiv preprint arXiv:2305.06507},
  year   = {2023}
}
R2 v1 2026-06-28T10:31:36.275Z