摘要

Pick any length n binary string b(1)b(2)...b(n) and remove the first bit b(1). If b(2)b(3)...b(n)1 is a necklace, then append the complement of b(1) to the end of the remaining string; otherwise append b(1). By repeating this process, eventually all 2(n) binary strings will be visited cyclically. This shift rule leads to a new de Bruijn sequence construction that can be generated in 0(1)-amortized time per bit.

  • 出版日期2016-1-6