Counting overlapping pairs of strings

Eric Rivals, Pengfei Wang
{"title":"Counting overlapping pairs of strings","authors":"Eric Rivals, Pengfei Wang","doi":"arxiv-2405.09393","DOIUrl":null,"url":null,"abstract":"A correlation is a binary vector that encodes all possible positions of\noverlaps of two words, where an overlap for an ordered pair of words (u,v)\noccurs if a suffix of word u matches a prefix of word v. As multiple pairs can\nhave the same correlation, it is relevant to count how many pairs of words\nshare the same correlation depending on the alphabet size and word length n. We\nexhibit recurrences to compute the number of such pairs -- which is termed\npopulation size -- for any correlation; for this, we exploit a relationship\nbetween overlaps of two words and self-overlap of one word. This theorem allows\nus to compute the number of pairs with a longest overlap of a given length and\nto show that the expected length of the longest border of two words\nasymptotically diverges, which solves two open questions raised by Gabric in\n2022. Finally, we also provide bounds for the asymptotic of the population\nratio of any correlation. Given the importance of word overlaps in areas like\nword combinatorics, bioinformatics, and digital communication, our results may\nease analyses of algorithms for string processing, code design, or genome\nassembly.","PeriodicalId":501216,"journal":{"name":"arXiv - CS - Discrete Mathematics","volume":"41 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-05-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Discrete Mathematics","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2405.09393","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

A correlation is a binary vector that encodes all possible positions of overlaps of two words, where an overlap for an ordered pair of words (u,v) occurs if a suffix of word u matches a prefix of word v. As multiple pairs can have the same correlation, it is relevant to count how many pairs of words share the same correlation depending on the alphabet size and word length n. We exhibit recurrences to compute the number of such pairs -- which is termed population size -- for any correlation; for this, we exploit a relationship between overlaps of two words and self-overlap of one word. This theorem allows us to compute the number of pairs with a longest overlap of a given length and to show that the expected length of the longest border of two words asymptotically diverges, which solves two open questions raised by Gabric in 2022. Finally, we also provide bounds for the asymptotic of the population ratio of any correlation. Given the importance of word overlaps in areas like word combinatorics, bioinformatics, and digital communication, our results may ease analyses of algorithms for string processing, code design, or genome assembly.
计算字符串的重叠对
相关性是一个二进制向量,它编码了两个单词重叠的所有可能位置,其中,如果单词 u 的后缀与单词 v 的前缀相匹配,则有序单词对 (u,v) 会发生重叠。由于多个单词对可能具有相同的相关性,因此,根据字母表大小和单词长度 n 来计算有多少单词对具有相同的相关性是非常重要的。为此,我们利用了两个词的重叠和一个词的自重叠之间的关系。利用这一定理,我们可以计算出具有给定长度的最长重叠的词对数量,并证明两个词的最长边界的预期长度近似发散,从而解决了加布里克在 2022 年提出的两个悬而未决的问题。最后,我们还给出了任何相关性的人口比率的渐近边界。鉴于单词重叠在单词组合学、生物信息学和数字通信等领域的重要性,我们的结果可能有助于分析字符串处理、代码设计或基因组组装的算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信