【24h】

Generating Gray Codes in O(l) Worst-Case Time per Word

机译:每个单词在O(l)最坏情况下生成格雷码

获取原文
获取原文并翻译 | 示例

摘要

We give a definition of Gray code that, unlike the standard "minimal change" definition, is satisfied by the word-lists in the literature called "Gray codes" and we give several examples to illustrate the various concepts of minimality. We show that a non-recursive generation algorithm can be obtained for a word-list such that all the words with the same prefix (or, equivalently, suffix) are consecutive and that the Bitner-Ehrlich-Reingold method of generating each word in a time bounded by a constant works under the additional condition that in the interval of words with the same prefix or suffix the next letter assumes at least two values. Finally we generalize this method so that it works under a weaker condition satisfied by almost all the Gray codes in the literature: if the next letter assumes only one value, then the interval contains only one word.
机译:我们给出了格雷码的定义,与标准的“最小变化”定义不同,格雷码的定义是由文献中称为“格雷码”的单词表满足的,并且给出了一些示例来说明各种最小性概念。我们表明,可以为单词列表获得非递归生成算法,从而使所有具有相同前缀(或等价后缀)的单词都是连续的,并且可以使用Bitner-Ehrlich-Reingold方法生成一个单词列表。由常量限定的时间在以下条件下起作用:在具有相同前缀或后缀的单词间隔中,下一个字母至少采用两个值。最后,我们对这种方法进行了概括,以使其在较弱的条件下起作用,文献中几乎所有格雷码都满足该条件:如果下一个字母仅采用一个值,则该间隔仅包含一个单词。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号