arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1208.3798cs.DS
收藏

基于有序表子集的前序索引的通用字母表联机索引

On-line Indexing for General Alphabets via Predecessor Queries on Subsets of an Ordered List

Tsvi Kopelowitz

摘要:

文本索引问题是一个基本的算法问题,其中人们希望预处理文本,以便快速定位文本中的模式查询。在动态和在线数据的不断发展的世界中,还需要开发解决方案来索引在线到达的文本,即一次一个字符,并且仍然能够快速定位所述模式。本文提出了一种新的在线索引解决方案,通过在$O(\log \log n + \log\log |Σ|)$最坏情况下每个字符的期望时间,其中$n$是字符串的大小,和$Σ$是字母表中提供一个在线后缀树的结构。这改进了所有先前已知的用于一般字母表的在线后缀树构造,代价是具有预期的运行时间。其主要思想是减少问题的后缀树在线构建一个有趣的变体的顺序维护问题,这可能是独立的利益。在著名的顺序维护问题中,人们希望在插入、删除和顺序查询下维护大小为$n$的动态列表$L$。在顺序查询中,一个查询从$L$获得两个节点,并且必须确定在$L$中哪个节点在另一个节点之前。在有序动态列表问题(POLP)的动态子集上的前驱搜索中,还需要维护$L$的动态子集,使得给定某些$u\in L$,可以在任何子集中快速定位$u$的前驱。本文提供了一种有效的数据结构,能够解决POLP与最坏情况下的预期边界相匹配的RAM模型中的前趋搜索的当前最佳已知的边界,改善了解决方案,可以隐式地从Dietz [Die89]。此外,本文还改进或简化了一些其他应用程序的边界,包括完全持久化数组和订单维护问题。

英文摘要:

The problem of Text Indexing is a fundamental algorithmic problem in which one wishes to preprocess a text in order to quickly locate pattern queries within the text. In the ever evolving world of dynamic and on-line data, there is also a need for developing solutions to index texts which arrive on-line, i.e. a character at a time, and still be able to quickly locate said patterns. In this paper, a new solution for on-line indexing is presented by providing an on-line suffix tree construction in $O(\log \log n + \log\log |Σ|)$ worst-case expected time per character, where $n$ is the size of the string, and $Σ$ is the alphabet. This improves upon all previously known on-line suffix tree constructions for general alphabets, at the cost of having the run time in expectation. The main idea is to reduce the problem of constructing a suffix tree on-line to an interesting variant of the order maintenance problem, which may be of independent interest. In the famous order maintenance problem, one wishes to maintain a dynamic list $L$ of size $n$ under insertions, deletions, and order queries. In an order query, one is given two nodes from $L$ and must determine which node precedes the other in $L$. In the Predecessor search on Dynamic Subsets of an Ordered Dynamic List problem (POLP) it is also necessary to maintain dynamic subsets of $L$ such that given some $u\in L$ it will be possible to quickly locate the predecessor of $u$ in any subset. This paper provides an efficient data structure capable of solving the POLP with worst-case expected bounds that match the currently best known bounds for predecessor search in the RAM model, improving over a solution which may be implicitly obtained from Dietz [Die89]. Furthermore, this paper improves or simplifies bounds for several additional applications, including fully-persistent arrays and the Order-Maintenance Problem.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑