{"title":"A simple grammar-based index for finding approximately longest common substrings.","authors":"Travis Gagie, Sana Kashgouli, Gonzalo Navarro","doi":"10.1007/978-3-031-43980-3_19","DOIUrl":null,"url":null,"abstract":"<p><p>We show how, given positive constants <math><mi>ϵ</mi></math> and <math><mi>δ</mi></math> , and an <math><mi>α</mi></math> -balanced straight-line program with <math><mi>g</mi></math> rules for a text <math><mi>T</mi> <mo>[</mo> <mn>1</mn> <mo>.</mo> <mo>.</mo> <mi>n</mi> <mo>]</mo></math> , we can build an <math><mi>O</mi> <mo>(</mo> <mi>g</mi> <mo>)</mo></math> -space index that, given a pattern <math><mi>P</mi> <mo>[</mo> <mn>1</mn> <mo>.</mo> <mo>.</mo> <mi>m</mi> <mo>]</mo></math> , in <math><mi>O</mi> <mfenced><mrow><mi>m</mi> <mspace></mspace> <msup><mrow><mtext>log</mtext></mrow> <mrow><mi>δ</mi></mrow> </msup> <mspace></mspace> <mi>g</mi></mrow> </mfenced> </math> time finds w.h.p. a substring of <math><mi>P</mi></math> that occurs in <math><mi>T</mi></math> and whose length is at least a ( <math><mn>1</mn> <mo>-</mo> <mi>ϵ</mi></math> ) fraction of the longest common substring of <math><mi>P</mi></math> and <math><mi>T</mi></math> . The correctness can be ensured within the same expected query time.</p>","PeriodicalId":520001,"journal":{"name":"International Symposium on String Processing and Information Retrieval : SPIRE ... : proceedings. SPIRE (Symposium)","volume":"14240 ","pages":"246-252"},"PeriodicalIF":0.0000,"publicationDate":"2023-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12700360/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Symposium on String Processing and Information Retrieval : SPIRE ... : proceedings. SPIRE (Symposium)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1007/978-3-031-43980-3_19","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2023/9/20 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
We show how, given positive constants and , and an -balanced straight-line program with rules for a text , we can build an -space index that, given a pattern , in time finds w.h.p. a substring of that occurs in and whose length is at least a ( ) fraction of the longest common substring of and . The correctness can be ensured within the same expected query time.