arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0907.3873math.CO
收藏

二元划分上的Gray路

A Gray path on binary partitions

Thomas Colthurst, Michael Kleber

摘要:

正整数$n$的二进制划分是$n$的划分,其中每个部分的大小为2的幂。本文首先在$n$的二元划分集上构造一个Gray序列。这是每个$n$(或所有$n$)的二进制分区集合的排序,使得相邻分区通过一个小的初等变换集合中的一个而不同;这里允许的变换是将$2^k+2^k$替换为$2^{k+1}$,反之亦然(或添加新的+1)。接下来,我们给出了一个纯粹的本地条件,以找到这个序列中任何分区的后继者;规则是如此简单,连续的转换可以在恒定的时间内执行。最后给出了如何直接计算$k$与序列中第$k$项之间的双射。这回答了Donald Knuth在《计算机编程的艺术》第7.2.1节中提出的一个问题。

英文摘要:

A binary partition of a positive integer $n$ is a partition of $n$ in which each part has size a power of two. In this note we first construct a Gray sequence on the set of binary partitions of $n$. This is an ordering of the set of binary partitions of each $n$ (or of all $n$) such that adjacent partitions differ by one of a small set of elementary transformations; here the allowed transformatios are replacing $2^k+2^k$ by $2^{k+1}$ or vice versa (or addition of a new +1). Next we give a purely local condition for finding the successor of any partition in this sequence; the rule is so simple that successive transitions can be performed in constant time. Finally we show how to compute directly the bijection between $k$ and the $k$th term in the sequence. This answers a question posed by Donald Knuth in section 7.2.1 of The Art of Computer Programming.

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

↑