Skip to main content
QUICK REVIEW

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

Tsvi Kopelowitz|arXiv (Cornell University)|Aug 19, 2012
Algorithms and Data CompressionComputer Science15 references4 citations
TL;DR

This paper presents a new data structure for on-line suffix tree construction that achieves $O(\log\log n + \log\log|\Sigma|)$ worst-case expected time per character for general alphabets, by reducing the problem to a novel variant of the order maintenance problem called Predecessor Search on Dynamic Subsets of an Ordered List (POLP). The solution leverages unified splitting of y-fast tries and efficient scheduling between chunk and bucket updates to maintain optimal bounds.

ABSTRACT

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.

Motivation & Objective

  • To address the challenge of constructing suffix trees in real-time as text arrives character by character, especially for large or general alphabets.
  • To improve upon existing on-line suffix tree constructions that have higher amortized or worst-case time bounds for general alphabets.
  • To design a dynamic data structure that supports efficient predecessor queries on multiple dynamic subsets of an ordered list, enabling faster on-line indexing.
  • To unify and optimize the splitting processes in y-fast tries and order-maintenance structures to avoid interference and maintain expected worst-case performance.

Proposed method

  • Reduces on-line suffix tree construction to the Predecessor Search on Dynamic Subsets of an Ordered List (POLP) problem.
  • Uses a hybrid data structure combining y-fast tries and x-fast tries to support predecessor queries in $O(\log\log n)$ time.
  • Introduces a unified splitting mechanism that triggers a split every $\log^2 n$ insertions across all y-fast-trie structures to prevent interference.
  • Schedules work between the order-maintenance structure and the y-fast-trie updates by allocating time resources, ensuring $O(1)$ expected time per insertion.
  • Modifies chunk and bucket sizes and tree depths to reduce tag update frequency, spreading $O(\log n)$ work over $\log n$ time resources.
  • Employs a double-work scheduling strategy to handle interference between chunk splits and bucket splits, maintaining $O(1)$ expected work per time resource.

Experimental results

Research questions

  • RQ1Can on-line suffix tree construction be achieved in $O(\log\log n + \log\log|\Sigma|)$ worst-case expected time per character for general alphabets?
  • RQ2Can the predecessor query problem on dynamic subsets of an ordered list be solved efficiently while maintaining low update costs?
  • RQ3Is it possible to unify splitting processes in y-fast tries and order-maintenance structures without degrading performance?
  • RQ4Can interference between concurrent splitting operations in y-fast-tries and order-maintenance structures be resolved with minimal overhead?

Key findings

  • The proposed data structure supports order queries in $O(1)$ worst-case time, achieving optimal performance for this operation.
  • Inserting a node into the ordered list $L$ takes $O(\log\log n)$ worst-case expected time, improving over prior amortized bounds.
  • Inserting an element into any dynamic subset $S_i$ takes $O\left(\log\log n\right)$ worst-case expected time, matching the best known bounds for predecessor search in the RAM model.
  • Locating the predecessor of a node $u$ in any subset $S_i$ is answered in $O(\log\log n)$ worst-case time, ensuring fast pattern search in on-line indexing.
  • The total space usage remains linear, with $O(n/\log n)$ total buckets across all y-fast-tries, ensuring scalability.
  • The solution improves or simplifies bounds for related problems, including fully-persistent arrays and the monotonic list labeling problem.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.