A surprisingly simple de Bruijn sequence construction

نویسندگان

  • Joe Sawada
  • Aaron Williams
  • Dennis Wong
چکیده

Pick any length n binary string b1b2 · · · bn and remove the first bit b1. If b2b3 · · · bn1 is a necklace then append the complement of b1 to the end of the remaining string; otherwise append b1. By repeating this process, eventually all 2 binary strings will be visited cyclically. This shift rule leads to a new de Bruijn sequence construction that can be generated in O(1)-amortized time per bit. 1 A new de Bruijn sequence construction A de Bruijn sequence of order n is a cyclic sequence of length 2n where each substring of length n is a unique binary string. As an example, the cyclic sequence 0000100110101111 of length 16 is a de Bruijn sequence for n = 4. The 16 unique substrings of length 4 when considered cyclicly are: 0000, 0001, 0010, 0100, 1001, 0011, 0110, 1101, 1010, 0101, 1011, 0111, 1111, 1110, 1100, 1000. As illustrated in this example, a de Bruijn sequence of order n induces a very specific type of cyclic order of the length n binary strings: the length n − 1 suffix of a given binary string is the same as the length n− 1 prefix of the next string in the ordering. The number of unique de Bruijn sequences for a given n is 22 n−1−n [3]; however, only a few efficient constructions are known. In particular, there are . a shift generation approach based on primitive polynomials by Golomb [9], . three different algorithms to generate the lexicographically smallest de Bruijn sequence (also known as the Ford sequence): a Lyndon word concatenation algorithm by Fredricksen and Maiorana [8], a successor rule approach by Fredricksen [5], and a block concatenation algorithm by Ralston [12], . a lexicographic composition concatenation algorithm by Fredricksen and Kessler [7], . three different pure cycle concatenation algorithms by Fredricksen [6], Etizon and Lempel [4], and Huang [10] respectively, and . cool-lex based constructions by Sawada, Stevens and Williams [13] and Sawada, Williams and Wong [14]. Each algorithm requires only O(n) space and generates their de Bruijn sequences in O(n) time per bit, except the pure cycle concatenation algorithm by Etizon and Lempel which requires O(n2) space. The ∗School of Computer Science, University of Guelph, Canada. Research supported by NSERC. email: [email protected] †Division of Science, Mathematics, and Computing, Bard College at Simon‘s Rock, USA. email: [email protected] ‡School of Computer Science, University of Guelph, Canada. email: [email protected]

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A simple shift rule for k-ary de Bruijn sequences

A k-ary de Bruijn sequence of order n is a cyclic sequence of length k in which each k-ary string of length n appears exactly once as a substring. A shift rule for a de Bruijn sequence of order n is a function that maps each length n substring to the next length n substring in the sequence. We present the first known shift rule for k-ary de Bruijn sequences that runs in O(1)-amortized time per ...

متن کامل

A method for constructing decodable de Bruijn sequences

In this paper we present two related methods of construction for de Bruijn sequences, both based on interleaving “smaller” de Bruijn sequences. Sequences obtained using these construction methods have the advantage that they can be “decoded” very efficiently, i.e., the position within the sequence of any particular “window” can be found very simply. Sequences with simple decoding algorithms are...

متن کامل

Construction of de Bruijn sequences of minimal complexity

It is well known that the linear complexity of a de Bruijn sequence S of length 2 " is bounded below by 2 "-' + n for n > 3. It is shown that this lower bound is attainable for all n.

متن کامل

Cryptographic D-morphic Analysis and Fast Implementations of Composited De Bruijn Sequences

Recently, Mandal and Gong [23] refined and analyzed the recursive method by Lempel and Mykkeltveit et al. for generating de Bruijn sequences, where the recursive feedback function is the sum of a feedback function with k-th order composition and a sum of (k + 1) product-of-sum terms. In this paper we first determine the linear complexity of a composited de Bruijn sequence. We then conduct a pro...

متن کامل

Spans of preference functions for de Bruijn sequences

A nonbinary Ford sequence is a de Bruijn sequence generated by simple rules that determine the priorities of what symbols are to be tried first, given an initial word of size n which is the order of the sequence being generated. This set of rules is generalized by the concept of a preference function of span n − 1, which gives the priorities of what symbols to appear after a substring of size n...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Discrete Mathematics

دوره 339  شماره 

صفحات  -

تاریخ انتشار 2016