首页    期刊浏览 2024年09月18日 星期三
登录注册

文章基本信息

  • 标题:Faster Longest Common Extension Queries in Strings over General Alphabets
  • 本地全文:下载
  • 作者:Pawel Gawrychowski ; Tomasz Kociumaka ; Wojciech Rytter
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2016
  • 卷号:54
  • 页码:5:1-5:13
  • DOI:10.4230/LIPIcs.CPM.2016.5
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:Longest common extension queries (often called longest common prefix queries) constitute a fundamental building block in multiple string algorithms, for example computing runs and approximate pattern matching. We show that a sequence of q LCE queries for a string of size n over a general ordered alphabet can be realized in O(q log log n + n log* n) time making only O(q + n) symbol comparisons. Consequently, all runs in a string over a general ordered alphabets can be computed in O(n log log n) time making O(n) symbol comparisons. Our results improve upon a solution by Kosolobov (Information Processing Letters, 2016), who designed an algorithm with O(n log^⅔ n) running time and conjectured that O(n) time is possible. Our paper makes a significant progress towards resolving this conjecture. Our techniques extend to the case of general unordered alphabets, when the time increases to O(q log n + n log* n). The main tools are difference covers and a variant of the disjoint-sets data structure by La Poutré (SODA 1990).
  • 关键词:longest common extension; longest common prefix; maximal repetitions; difference cover
国家哲学社会科学文献中心版权所有