Arbitrary-length analogs to de Bruijn sequences
Combinatorics
2022-06-24 v2 Discrete Mathematics
Data Structures and Algorithms
Information Theory
math.IT
Abstract
Let be a length- cyclic sequence of characters from a size- alphabet such that the number of occurrences of any length- string on as a substring of is or . When for any positive integer , is a de Bruijn sequence of order , and when , shares many properties with de Bruijn sequences. We describe an algorithm that outputs some for any combination of and in time using space. This algorithm extends Lempel's recursive construction of a binary de Bruijn sequence. An implementation written in Python is available at https://github.com/nelloreward/pkl.
Keywords
Cite
@article{arxiv.2108.07759,
title = {Arbitrary-length analogs to de Bruijn sequences},
author = {Abhinav Nellore and Rachel Ward},
journal= {arXiv preprint arXiv:2108.07759},
year = {2022}
}
Comments
18 pages, 3 algorithms, 1 table; v2 refines language and fixes references