Tomasz Kociumaka, Gonzalo Navarro, Francisco Olivares
{"title":"Near-Optimal Search Time in \\(\\delta \\)-Optimal Space, and Vice Versa","authors":"Tomasz Kociumaka, Gonzalo Navarro, Francisco Olivares","doi":"10.1007/s00453-023-01186-0","DOIUrl":null,"url":null,"abstract":"<div><p>Two recent lower bounds on the compressibility of repetitive sequences, <span>\\(\\delta \\le \\gamma \\)</span>, have received much attention. It has been shown that a length-<i>n</i> string <i>S</i> over an alphabet of size <span>\\(\\sigma \\)</span> can be represented within the optimal <span>\\(O(\\delta \\log \\tfrac{n\\log \\sigma }{\\delta \\log n})\\)</span> space, and further, that within that space one can find all the <i>occ</i> occurrences in <i>S</i> of any length-<i>m</i> pattern in time <span>\\(O(m\\log n + occ \\log ^\\epsilon n)\\)</span> for any constant <span>\\(\\epsilon >0\\)</span>. Instead, the near-optimal search time <span>\\(O(m+({occ+1})\\log ^\\epsilon n)\\)</span> has been achieved only within <span>\\(O(\\gamma \\log \\frac{n}{\\gamma })\\)</span> space. Both results are based on considerably different locally consistent parsing techniques. The question of whether the better search time could be supported within the <span>\\(\\delta \\)</span>-optimal space remained open. In this paper, we prove that both techniques can indeed be combined to obtain the best of both worlds: <span>\\(O(m+({occ+1})\\log ^\\epsilon n)\\)</span> search time within <span>\\(O(\\delta \\log \\tfrac{n\\log \\sigma }{\\delta \\log n})\\)</span> space. Moreover, the number of occurrences can be computed in <span>\\(O(m+\\log ^{2+\\epsilon }n)\\)</span> time within <span>\\(O(\\delta \\log \\tfrac{n\\log \\sigma }{\\delta \\log n})\\)</span> space. We also show that an extra sublogarithmic factor on top of this space enables optimal <span>\\(O(m+occ)\\)</span> search time, whereas an extra logarithmic factor enables optimal <i>O</i>(<i>m</i>) counting time.</p></div>","PeriodicalId":50824,"journal":{"name":"Algorithmica","volume":"86 4","pages":"1031 - 1056"},"PeriodicalIF":0.9000,"publicationDate":"2023-11-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Algorithmica","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s00453-023-01186-0","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q4","JCRName":"COMPUTER SCIENCE, SOFTWARE ENGINEERING","Score":null,"Total":0}
引用次数: 0
Abstract
Two recent lower bounds on the compressibility of repetitive sequences, \(\delta \le \gamma \), have received much attention. It has been shown that a length-n string S over an alphabet of size \(\sigma \) can be represented within the optimal \(O(\delta \log \tfrac{n\log \sigma }{\delta \log n})\) space, and further, that within that space one can find all the occ occurrences in S of any length-m pattern in time \(O(m\log n + occ \log ^\epsilon n)\) for any constant \(\epsilon >0\). Instead, the near-optimal search time \(O(m+({occ+1})\log ^\epsilon n)\) has been achieved only within \(O(\gamma \log \frac{n}{\gamma })\) space. Both results are based on considerably different locally consistent parsing techniques. The question of whether the better search time could be supported within the \(\delta \)-optimal space remained open. In this paper, we prove that both techniques can indeed be combined to obtain the best of both worlds: \(O(m+({occ+1})\log ^\epsilon n)\) search time within \(O(\delta \log \tfrac{n\log \sigma }{\delta \log n})\) space. Moreover, the number of occurrences can be computed in \(O(m+\log ^{2+\epsilon }n)\) time within \(O(\delta \log \tfrac{n\log \sigma }{\delta \log n})\) space. We also show that an extra sublogarithmic factor on top of this space enables optimal \(O(m+occ)\) search time, whereas an extra logarithmic factor enables optimal O(m) counting time.
期刊介绍:
Algorithmica is an international journal which publishes theoretical papers on algorithms that address problems arising in practical areas, and experimental papers of general appeal for practical importance or techniques. The development of algorithms is an integral part of computer science. The increasing complexity and scope of computer applications makes the design of efficient algorithms essential.
Algorithmica covers algorithms in applied areas such as: VLSI, distributed computing, parallel processing, automated design, robotics, graphics, data base design, software tools, as well as algorithms in fundamental areas such as sorting, searching, data structures, computational geometry, and linear programming.
In addition, the journal features two special sections: Application Experience, presenting findings obtained from applications of theoretical results to practical situations, and Problems, offering short papers presenting problems on selected topics of computer science.