{"title":"计算字符串的重叠对","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":"{\"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}","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
摘要
相关性是一个二进制向量,它编码了两个单词重叠的所有可能位置,其中,如果单词 u 的后缀与单词 v 的前缀相匹配,则有序单词对 (u,v) 会发生重叠。由于多个单词对可能具有相同的相关性,因此,根据字母表大小和单词长度 n 来计算有多少单词对具有相同的相关性是非常重要的。为此,我们利用了两个词的重叠和一个词的自重叠之间的关系。利用这一定理,我们可以计算出具有给定长度的最长重叠的词对数量,并证明两个词的最长边界的预期长度近似发散,从而解决了加布里克在 2022 年提出的两个悬而未决的问题。最后,我们还给出了任何相关性的人口比率的渐近边界。鉴于单词重叠在单词组合学、生物信息学和数字通信等领域的重要性,我们的结果可能有助于分析字符串处理、代码设计或基因组组装的算法。
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.