Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
4951308 | Journal of Discrete Algorithms | 2017 | 16 Pages |
Abstract
We present practical algorithms for ranking k-ary necklaces and Lyndon words of length n. The algorithms are based on simple counting techniques. By repeatedly applying the ranking algorithms, both necklaces and Lyndon words can be efficiently unranked. Then, explicit details are given to rank and unrank the length n substrings of the lexicographically smallest de Bruijn sequence of order n.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Joe Sawada, Aaron Williams,