arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.06507cs.DC
收藏

基于 Swap 的共识问题的空间复杂度

The Space Complexity of Consensus from Swap

Sean Ovens

AI总结:

针对基于无历史对象的共识问题,本文首次给出了 $Ω(n)$ 的空间复杂度下界,证明了基于 swap 对象和可读 swap 对象的无障碍共识及 $k$-set agreement 算法所需的最小对象数,并提供了匹配的算法上界。

摘要:

大约三十年前,研究表明需要 $Ω(\sqrt{n})$ 个寄存器来解决 $n$ 个进程之间的无障碍共识问题。该下界在 2018 年被改进为 $n$ 个寄存器,恰好与最佳上界相匹配。$Ω(\sqrt{n})$ 的空间复杂度下界实际上适用于一类被称为无历史对象(historyless objects)的对象,其中包括寄存器、test-and-set 对象和可读 swap 对象。然而,每个已知的基于无历史对象的 $n$ 进程无障碍共识算法都使用了 $Ω(n)$ 个对象。\n 我们针对两类无历史对象的共识算法给出了首个 $Ω(n)$ 空间复杂度下界。首先,我们证明了任何基于 swap 对象的无障碍共识算法至少使用 $n-1$ 个对象。更一般地,我们证明了任何基于 swap 对象的无障碍 $k$-set agreement 算法至少使用 $\lceil \frac{n}{k}\rceil - 1$ 个对象。这是当 $k > 1$ 时,使用 swap 对象解决 $k$-set agreement 问题的空间复杂度的首个非常数下界。我们还提出了一个使用 $n-k$ 个 swap 对象的无障碍 $k$-set agreement 算法,在 $k=1$ 时恰好匹配我们的下界。\n 其次,我们证明了任何基于域大小为 $b$ 的可读 swap 对象的无障碍二进制共识算法至少使用 $\frac{n-2}{3b+1}$ 个对象。由于任何无历史对象都可以由具有相同域大小的可读 swap 对象模拟,我们的结果意味着任何基于域大小为 $b$ 的无历史对象的无障碍共识算法至少使用 $\frac{n-2}{3b+1}$ 个对象。对于 $b = 2$,我们证明了一个稍好的下界 $n-2$。已知的最佳基于域大小为 $2$ 的可读 swap 对象的无障碍二进制共识算法使用 $2n-1$ 个对象,在渐近意义上与我们的下界相匹配。

英文摘要:

Nearly thirty years ago, it was shown that $Ω(\sqrt{n})$ registers are needed to solve obstruction-free consensus among $n$ processes. This lower bound was improved to $n$ registers in 2018, which exactly matches the best upper bound. The $Ω(\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 $n$-process obstruction-free consensus algorithm from historyless objects uses $Ω(n)$ objects. We give the first $Ω(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 $n-1$ objects. More generally, we prove that any obstruction-free $k$-set agreement algorithm from swap objects uses at least $\lceil \frac{n}{k}\rceil - 1$ objects. This is the first non-constant lower bound on the space complexity of solving $k$-set agreement with swap objects when $k > 1$. We also present an obstruction-free $k$-set agreement algorithm from $n-k$ swap objects, exactly matching our lower bound when $k=1$. Second, we show that any obstruction-free binary consensus algorithm from readable swap objects with domain size $b$ uses at least $\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 $b$ uses at least $\frac{n-2}{3b+1}$ objects. For $b = 2$, we show a slightly better lower bound of $n-2$. The best known obstruction-free binary consensus algorithm from readable swap objects with domain size $2$ uses $2n-1$ objects, asymptotically matching our lower bound.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑