English

An Efficient Generalized Shift-Rule for the Prefer-Max De Bruijn Sequence

Discrete Mathematics 2019-05-17 v2

Abstract

One of the fundamental ways to construct De Bruijn sequences is by using a shift-rule. A shift-rule receives a word as an argument and computes the symbol that appears after it in the sequence. An optimal shift-rule for an (n,k)(n,k)-De Bruijn sequence runs in time O(n)O(n). We propose an extended notion we name a generalized-shift-rule, which receives a word, ww, and an integer, cc, and outputs the cc symbols that comes after ww. An optimal generalized-shift-rule for an (n,k)(n,k)-De Bruijn sequence runs in time O(n+c)O(n+c). We show that, unlike in the case of a shift-rule, a time optimal generalized-shift-rule allows to construct the entire sequence efficiently. We provide a time optimal generalized-shift-rule for the well-known prefer-max and prefer-min De Bruijn sequences.

Cite

@article{arxiv.1801.10091,
  title  = {An Efficient Generalized Shift-Rule for the Prefer-Max De Bruijn Sequence},
  author = {Gal Amram and Amir Rubin},
  journal= {arXiv preprint arXiv:1801.10091},
  year   = {2019}
}
R2 v1 2026-06-23T00:04:05.220Z