Arbitrary-length analogs to de Bruijn sequences

Abhinav Nellore, Rachel A. Ward
{"title":"Arbitrary-length analogs to de Bruijn sequences","authors":"Abhinav Nellore, Rachel A. Ward","doi":"10.4230/LIPIcs.CPM.2022.9","DOIUrl":null,"url":null,"abstract":"Let $\\widetilde{\\alpha}$ be a length-$L$ cyclic sequence of characters from a size-$K$ alphabet $\\mathcal{A}$ such that the number of occurrences of any length-$m$ string on $\\mathcal{A}$ as a substring of $\\widetilde{\\alpha}$ is $\\lfloor L / K^m \\rfloor$ or $\\lceil L / K^m \\rceil$. When $L = K^N$ for any positive integer $N$, $\\widetilde{\\alpha}$ is a de Bruijn sequence of order $N$, and when $L \\neq K^N$, $\\widetilde{\\alpha}$ shares many properties with de Bruijn sequences. We describe an algorithm that outputs some $\\widetilde{\\alpha}$ for any combination of $K \\geq 2$ and $L \\geq 1$ in $O(L)$ time using $O(L \\log K)$ 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.","PeriodicalId":236737,"journal":{"name":"Annual Symposium on Combinatorial Pattern Matching","volume":"15 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-08-17","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Annual Symposium on Combinatorial Pattern Matching","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4230/LIPIcs.CPM.2022.9","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Let $\widetilde{\alpha}$ be a length-$L$ cyclic sequence of characters from a size-$K$ alphabet $\mathcal{A}$ such that the number of occurrences of any length-$m$ string on $\mathcal{A}$ as a substring of $\widetilde{\alpha}$ is $\lfloor L / K^m \rfloor$ or $\lceil L / K^m \rceil$. When $L = K^N$ for any positive integer $N$, $\widetilde{\alpha}$ is a de Bruijn sequence of order $N$, and when $L \neq K^N$, $\widetilde{\alpha}$ shares many properties with de Bruijn sequences. We describe an algorithm that outputs some $\widetilde{\alpha}$ for any combination of $K \geq 2$ and $L \geq 1$ in $O(L)$ time using $O(L \log K)$ 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.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
与德布鲁因序列类似的任意长度序列
让$\widetilde{\alpha}$是一个长度- $L$的循环字符序列,从一个大小- $K$的字母表$\mathcal{A}$,这样任何长度- $m$字符串在$\mathcal{A}$上作为$\widetilde{\alpha}$的子字符串出现的次数是$\lfloor L / K^m \rfloor$或$\lceil L / K^m \rceil$。对于任意正整数$N$,当$L = K^N$时,$\widetilde{\alpha}$是一个顺序为$N$的de Bruijn序列;当$L \neq K^N$时,$\widetilde{\alpha}$与de Bruijn序列共享许多属性。我们描述了一个算法,该算法使用$O(L \log K)$空间在$O(L)$时间内为$K \geq 2$和$L \geq 1$的任意组合输出一些$\widetilde{\alpha}$。该算法扩展了Lempel二元德布鲁因序列的递归构造。用Python编写的实现可在https://github.com/nelloreward/pkl获得。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Optimal LZ-End Parsing is Hard From Bit-Parallelism to Quantum String Matching for Labelled Graphs Order-Preserving Squares in Strings Sliding Window String Indexing in Streams Parameterized Algorithms for String Matching to DAGs: Funnels and Beyond
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1