[Paper Review] Anonymous Obstruction-free $(n,k)$-Set Agreement with $n-k+1$ Atomic Read/Write Registers
This paper presents an obstruction-free $(n,k)$-set agreement algorithm for $n$ anonymous asynchronous processes using only $n-k+1$ atomic read/write registers, achieving the optimal register count. The algorithm uses a round-based structure with conflict detection and value set propagation to ensure at most $k$ distinct values are decided, even under process crashes.
The $k$-set agreement problem is a generalization of the consensus problem. Namely, assuming each process proposes a value, each non-faulty process has to decide a value such that each decided value was proposed, and no more than $k$ different values are decided. This is a hard problem in the sense that it cannot be solved in asynchronous systems as soon as $k$ or more processes may crash. One way to circumvent this impossibility consists in weakening its termination property, requiring that a process terminates (decides) only if it executes alone during a long enough period. This is the well-known obstruction-freedom progress condition. Considering a system of $n$ {\it anonymous asynchronous} processes, which communicate through atomic {\it read/write registers only}, and where {\it any number of processes may crash}, this paper addresses and solves the challenging open problem of designing an obstruction-free $k$-set agreement algorithm with $(n-k+1)$ atomic registers only. From a shared memory cost point of view, this algorithm is the best algorithm known so far, thereby establishing a new upper bound on the number of registers needed to solve the problem (its gain is $(n-k)$ with respect to the previous upper bound). The algorithm is then extended to address the repeated version of $(n,k)$-set agreement. As it is optimal in the number of atomic read/write registers, this algorithm closes the gap on previously established lower/upper bounds for both the anonymous and non-anonymous versions of the repeated $(n,k)$-set agreement problem. Finally, for $1 \leq x\leq k extless{} n$, a generalization suited to $x$-obstruction-freedom is also described, which requires $(n-k+x)$ atomic registers only.
Motivation & Objective
- Address the open problem of minimizing shared memory cost for anonymous, asynchronous $(n,k)$-set agreement.
- Design an obstruction-free algorithm that guarantees termination if a process runs solo long enough.
- Close the gap between known lower and upper bounds on the number of atomic registers required.
- Extend the solution to repeated $(n,k)$-set agreement and generalized $x$-obstruction-freedom.
- Establish optimality of the register count for both one-shot and repeated versions of the problem.
Proposed method
- Propose a round-based algorithm where processes repeatedly invoke snapshot operations on a shared array of $n-k+1$ atomic registers.
- Each process maintains a local quadruplet containing its proposed value, a round number, a conflict flag, and a value set.
- Use a conflict detection mechanism: if a process detects a conflict (via $\text{cf}_\ell = \text{true}$), it resets its value set to a singleton and starts a new round.
- Leverage a modified Lemma 10 to ensure that after a certain time, all decisions are based on value sets that are subsets or supersets of a common set, limiting decisions to at most $k$ values.
- For repeated $(n,k)$-set agreement, extend the algorithm to maintain state across invocations using additional integers in each register.
- Generalize the algorithm for $x$-obstruction-freedom by adjusting the conflict resolution and round initiation logic to require $n-k+x$ registers.
Experimental results
Research questions
- RQ1Can $(n,k)$-set agreement be solved with only $n-k+1$ atomic registers in an anonymous, asynchronous system with crash failures?
- RQ2Is it possible to achieve obstruction-freedom with minimal shared memory in the anonymous setting?
- RQ3What is the optimal number of atomic registers required for repeated $(n,k)$-set agreement under obstruction-freedom?
- RQ4How does the algorithm scale under $x$-obstruction-freedom, and what is the corresponding register cost?
- RQ5Can the algorithm be designed without simulating SWMR registers, and still achieve optimal register usage?
Key findings
- The proposed algorithm uses exactly $n-k+1$ atomic read/write registers, which is the smallest known upper bound for obstruction-free $(n,k)$-set agreement in anonymous systems.
- The algorithm is optimal for the repeated $(n,k)$-set agreement problem, matching the previously established lower bound of $n-k+1$ registers.
- For $x$-obstruction-freedom, the algorithm requires $n-k+x$ registers, generalizing the result to weaker progress conditions.
- The algorithm achieves $k$-set agreement with correctness guaranteed under validity, agreement, and obstruction-freedom.
- The base algorithm does not require persistent local variables beyond a proposed value, a round number, and two bits per register.
- The algorithm's correctness relies on a refined version of Lemma 10 that ensures value set relationships preserve the $k$-agreement property during execution.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.