【24h】

Trimming and Gluing Gray Codes

机译:修剪和胶合灰色码

获取原文

摘要

We consider the algorithmic problem of generating each subset of [n]:={1,2,...,n} whose size is in some interval [k,l], 0 <= k <= l <= n, exactly once (cyclically) by repeatedly adding or removing a single element, or by exchanging a single element. For k=0 and l=n this is the classical problem of generating all 2^n subsets of [n] by element additions/removals, and for k=l this is the classical problem of generating all n over k subsets of [n] by element exchanges. We prove the existence of such cyclic minimum-change enumerations for a large range of values n, k, and l, improving upon and generalizing several previous results. For all these existential results we provide optimal algorithms to compute the corresponding Gray codes in constant time O(1) per generated set and space O(n). Rephrased in terms of graph theory, our results establish the existence of (almost) Hamilton cycles in the subgraph of the n-dimensional cube Q_n induced by all levels [k,l]. We reduce all remaining open cases to a generalized version of the middle levels conjecture, which asserts that the subgraph of Q_(2k+1) induced by all levels [k-c,k+1+c], c in {0, 1, ..., k}, has a Hamilton cycle. We also prove an approximate version of this conjecture, showing that this graph has a cycle that visits a (1-o(1))-fraction of all vertices.
机译:我们考虑生成[n]:= {1,2,...,n}的每个子集的算法问题,其大小在某个间隔[k,l],0 <= k <= n恰好通过重复添加或移除单个元素,或通过交换单个元素来一次(循环)。对于k = 0和l = n这是通过元素添加/ removals生成[n]的所有2 ^ n子集的经典问题,并且对于k = l这是生成[n的k子集的所有n的经典问题通过元素交换。我们证明存在这种循环最小变化枚举,用于大量的值N,K和L,改善和概括了几个先前的结果。对于所有这些存在的结果,我们提供最佳算法,以计算每个生成的集合和空间O(n)的恒定时间O(1)中的相应灰度代码。在图表理论方面,我们的结果建立了所有级别[k,L]诱导的N维立方Q_N的子图中的存在(差不置)汉密尔顿循环。我们将所有剩余的开放案例减少到中级猜想的广义版本,这归咎于所有级别[KC,K + 1 + 1 + C],C诱导的Q_(2k + 1)的子图,在{0,1,。 ..,k},有汉密尔顿周期。我们还证明了这种猜想的近似版本,表明该图具有访问(1-O(1)) - 所有顶点的分数。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号