首页> 外文会议>Annual Allerton Conference on Communication, Control, and Computing >Dense Gray codes, or easy ways to generate cyclic and non-cyclic Gray codes for the first n whole numbers
【24h】

Dense Gray codes, or easy ways to generate cyclic and non-cyclic Gray codes for the first n whole numbers

机译:密集格雷码,或为前n个整数生成循环和非循环格雷码的简便方法

获取原文

摘要

The standard binary reflected Gray code gives a sequence of binary numbers in the range 0 to n - 1, where n is a power of 2, such that each number in the sequence differs from the preceding number in only one bit. We present two methods to compute Gray codes containing exactly n numbers in the range 0 to n - 1-that is, a permutation of 〈0, 1, ..., n - 1〉 in which each number differs from the preceding number in only one bit-where n is unconstrained. The first method produces a Gray code that is not cyclic: the first and last numbers in the sequence differ in more than one bit. The second method produces a cyclic Gray code if n is even, so that the first and last numbers differ in only one bit, at the expense of a slightly more complicated procedure. Both methods are based on the standard binary reflected Gray code and, as in the binary reflected Gray code, each number in the output sequence can be computed in a constant number of word operations given just its index in the sequence.
机译:标准二进制反射格雷码给出了一个从0到n-1的二进制数序列,其中n是2的幂,因此序列中的每个数字仅在一个位上与前面的数字不同。我们提出了两种方法来计算正好包含0到n-1范围内的n个数字的格雷码,也就是<0,1,...,n-1>的排列,其中每个数字都不同于前面的数字。只有一位,其中n是不受约束的。第一种方法产生非循环的格雷码:序列中的第一个和最后一个数字相差一个以上位。如果n为偶数,则第二种方法会产生循环格雷码,因此第一个和最后一个数字仅相差一个位,这是以稍微复杂一些的过程为代价的。两种方法都基于标准的二进制反射格雷码,就像在二进制反射格雷码中一样,只要给定序列中的索引,就可以用恒定数量的字运算来计算输出序列中的每个数字。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号