MultiQueue 的一种简单而精确的分析
A Simple yet Exact Analysis of the MultiQueue
AI总结:
本文通过识别底层马尔可夫链稳定分布,精确分析 MultiQueue 的长期秩误差,得到期望为 5/6n−1+1/(6n),并推广至 c 个随机队列取最优的删除方案。
摘要:
MultiQueue 是一种松弛并发优先队列,由 n 个内部优先队列组成:插入操作使用一个随机队列,删除操作则考察两个随机队列,并从最小元素较小的那个队列中删除最小元素。删除的秩误差是 MultiQueue 中更小元素的数量。Alistarh 等人[2]通过一个复杂的势函数论证表明,在很长的删除序列中,期望秩误差始终保持在 O(n) 的界限内。本文给出了一种更简单的分析:通过识别底层马尔可夫链的稳定分布,并借此精确得到秩误差的长期分布。随后通过简单计算揭示,长期期望秩误差为 5/6 n−1+1/(6n)。我们的论证可推广到如下删除方案:从给定队列删除的概率仅取决于该队列的秩。具体而言,这包括对任意 c>1,从 c 个随机选择队列中最优者进行删除的情形。
英文摘要:
The MultiQueue is a relaxed concurrent priority queue consisting of $n$ internal priority queues, where an insertion uses a random queue and a deletion considers two random queues and deletes the minimum from the one with the smaller minimum. The rank error of the deletion is the number of smaller elements in the MultiQueue. Alistarh et al. [2] have demonstrated in a sophisticated potential argument that the expected rank error remains bounded by $O(n)$ over long sequences of deletions. In this paper we present a simpler analysis by identifying the stable distribution of an underlying Markov chain and with it the long-term distribution of the rank error exactly. Simple calculations then reveal the expected long-term rank error to be $\tfrac{5}{6}n-1+\tfrac{1}{6n}$. Our arguments generalize to deletion schemes where the probability to delete from a given queue depends only on the rank of the queue. Specifically, this includes deleting from the best of $c$ randomly selected queues for any $c>1$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。