首页> 外文会议>Fun with algorithms. >The Coolest Order of Binary Strings
【24h】

The Coolest Order of Binary Strings

机译:二进制字符串的最酷顺序

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

摘要

Pick a binary string of length n and remove its first bit b. Now insert 6 after the first remaining 10, or insert b at the end if there is no remaining 10. Do it again. And again. Keep going! Eventually, you will cycle through all 2~n of the binary strings of length n. For example, (■□) are the binary strings of length n = 4, where 1 = □ and 0 = ■. Che bello! And if you only want strings with weight (number of 1s) between ℓ and u? Just insert b instead of b when the result would have too many 1s or too few 1s. For example, (■□) are the strings with n = 4, ℓ = 0 and u = 2. Strabello! This generalizes 'cool-lex' order by Ruskey and Williams (The coolest way to generate combinations, Discrete Mathematics). We use it to construct de Bruijn sequences for (i) ℓ = 0 and any u (maximum specified weight), (ii) any ℓ and u = n (minimum specified weight), and (iii) odd u - ℓ (even size weight range). For example, all binary strings with n = 6, ℓ = 1, and u = 4 appear once (cyclically) in (■□).
机译:选择长度为n的二进制字符串,并删除其第一位b。现在,在剩余的第10个之后插入6;如果没有剩余的10,则在末尾插入b。再次执行。然后再次。继续!最终,您将循环遍历长度为n的所有2〜n个二进制字符串。例如,(■□)是长度为n = 4的二进制字符串,其中1 =□和0 =■。车好!并且,如果您只想让字符串的权重(数字为1s)在ℓ和u之间?当结果会有太多1或太少1时,只需插入b而不是b即可。例如,(■□)是n = 4,ℓ= 0和u = 2的字符串。这概括了Ruskey和Williams的“ cool-lex”顺序(生成组合的最酷方法,即离散数学)。我们用它来构造de Bruijn序列,用于(i)ℓ= 0和任何u(最大指定权重),(ii)任意ℓ和u = n(最小指定权重),以及(iii)奇数u-ℓ(偶数大小)体重范围)。例如,所有n = 6,ℓ= 1和u = 4的二进制字符串在(■□)中(循环)出现一次。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号