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

文章基本信息

  • 标题:Solving the String Statistics Problem in Time O(n log n)
  • 本地全文:下载
  • 作者:Gerth Stølting Brodal ; Rune B. Lyngsø ; Anna Östlin
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:2002
  • 卷号:9
  • 期号:13
  • 出版社:Aarhus University
  • 摘要:The string statistics problem consists of preprocessing a string of length n such that given a query pattern of length m, the maximum number of non-overlapping occurrences of the query pattern in the string can be reported efficiently. Apostolico and Preparata introduced the minimal augmented suffix tree (MAST) as a data structure for the string statistics problem, and showed how to construct the MAST in time O(n log^2 n) and how it supports queries in time O(m) for constant sized alphabets. A subsequent theorem by Fraenkel and Simpson stating that a string has at most a linear number of distinct squares implies that the MAST requires space O(n). In this paper we improve the construction time for the MAST to O(n log n) by extending the algorithm of Apostolico and Preparata to exploit properties of efficient joining and splitting of search trees together with a refined analysis.
国家哲学社会科学文献中心版权所有