arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1506.07898cs.DScs.DMmath.CO
收藏

中间层格雷码的高效计算

Efficient computation of middle levels Gray codes

Torsten Mütze, Jerri Nummenpalo

摘要:

对于任何整数$n\geq 1$,中间级格雷码是具有等于1的$n$或$n+1$条目的长度为$2n+1$的所有位串的循环列表,使得列表中的任何两个连续位串恰好相差一个位。在过去的30年里,对于每个$n\geq 1$是否都存在这样一个格雷码的问题一直是深入研究的主题,直到最近才得到肯定的回答[T. Mütze.中间层猜想的证明。Proc. London Math. Soc.,112(4):677- 713,2016]。在这项工作中,我们提供了第一个有效的算法来计算一个中间层格雷码。对于一个给定的位串,我们的算法在时间$\mathcal{O}(n\ell(1+\frac{n}{\ell}))$上计算格雷码中的下一个$\ell$位串,如果是$\ell=Ω(n)$,则平均每个位串是$\mathcal{O}(n)$。

英文摘要:

For any integer $n\geq 1$ a middle levels Gray code is a cyclic listing of all bitstrings of length $2n+1$ that have either $n$ or $n+1$ entries equal to 1 such that any two consecutive bitstrings in the list differ in exactly one bit. The question whether such a Gray code exists for every $n\geq 1$ has been the subject of intensive research during the last 30 years, and has been answered affirmatively only recently [T. Mütze. Proof of the middle levels conjecture. Proc. London Math. Soc., 112(4):677--713, 2016]. In this work we provide the first efficient algorithm to compute a middle levels Gray code. For a given bitstring, our algorithm computes the next $\ell$ bitstrings in the Gray code in time $\mathcal{O}(n\ell(1+\frac{n}{\ell}))$, which is $\mathcal{O}(n)$ on average per bitstring provided that $\ell=Ω(n)$.

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

↑