TL;DR
This paper introduces an algorithm to generate sequences with properties similar to de Bruijn sequences for any length and alphabet size, extending existing methods to arbitrary lengths efficiently.
Contribution
It presents a novel algorithm that constructs analogs of de Bruijn sequences for arbitrary lengths and alphabet sizes in linear time, extending Lempel's recursive approach.
Findings
Algorithm runs in O(L) time and uses O(L log K) space.
Supports any sequence length L and alphabet size K ≥ 2.
Implementation available in Python at provided URL.
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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
