首页> 外文会议>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的范围内的灰色代码,该灰度代码在0到N - 1的范围内,即置换,1,...,n - 1?其中每个数量与前面的数字不同,只有一个位 - 其中n是无约束的。第一个方法产生不循环的灰色代码:序列中的第一个和最后一个数字在多个比特中不同。如果n是偶数,则第二种方法产生循环灰度码,使得第一和最后一个数字仅在一位中不同,以稍微复杂的过程。这两种方法都基于标准二进制反射的灰码,并且如在二进制反射的格雷码中,输出序列中的每个数字都可以在序列中仅为其索引提供恒定数量的单词操作。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号