Skip to main content
QUICK REVIEW

[Paper Review] String algorithms and data structures

Paolo Ferragina|ArXiv.org|Jan 15, 2008
Algorithms and Data CompressionComputer Science156 references8 citations
TL;DR

This survey presents a comprehensive overview of advanced string algorithms and data structures for efficient text indexing, emphasizing the integration of compression, cache-aware design, and external memory models. It highlights the FM-index and WFM-index as key tools for achieving sublinear space and query time, enabling fast pattern matching in massive textual collections.

ABSTRACT

The string-matching field has grown at a such complicated stage that various issues come into play when studying it: data structure and algorithmic design, database principles, compression techniques, architectural features, cache and prefetching policies. The expertise nowadays required to design good string data structures and algorithms is therefore transversal to many computer science fields and much more study on the orchestration of known, or novel, techniques is needed to make progress in this fascinating topic. This survey is aimed at illustrating the key ideas which should constitute, in our opinion, the current background of every index designer. We also discuss the positive features and drawback of known indexing schemes and algorithms, and devote much attention to detail research issues and open problems both on the theoretical and the experimental side.

Motivation & Objective

  • To establish a unified framework for evaluating and comparing string indexing schemes, addressing the growing complexity of modern text retrieval systems.
  • To identify and analyze the critical trade-offs between space efficiency, query performance, and construction time in text indexing.
  • To advocate for a transversal approach combining algorithmics, compression, and system-level optimizations (e.g., caching, prefetching) in index design.
  • To highlight open problems and research directions in both theoretical and experimental aspects of string data structures.
  • To promote the use of compressed, cache-friendly, and block-addressing-aware indexing techniques for large-scale text retrieval.

Proposed method

  • Proposes a systematic evaluation framework for indexing schemes based on multiple criteria: space, time, I/O complexity, and ease of construction.
  • Introduces the FM-index and WFM-index as compressed, compressed-suffix-array-based structures that support fast pattern matching with sublinear space and query time.
  • Combines block-addressing schemes with compressed indexes (e.g., FM-index) to enable efficient, localized searches on compressed text blocks.
  • Employs opportunistic string-matching algorithms on compressed blocks to reduce I/O and improve performance by 30–50%.
  • Leverages Lempel-Ziv parsing and periodic structure exploitation to reduce time complexity in similarity-based string computations.
  • Integrates the FM-index as a filtering and indexing primitive in advanced IR systems, enabling fast detection of pattern occurrences across candidate blocks.

Experimental results

Research questions

  • RQ1How can compressed string data structures be designed to achieve sublinear space and query time for pattern matching?
  • RQ2What are the performance trade-offs between traditional inverted indices, block-addressing schemes, and compressed suffix arrays in large-scale text retrieval?
  • RQ3How can compression and caching be jointly optimized in external memory and multi-level storage architectures?
  • RQ4In what ways can the inherent periodicity of strings be exploited to improve the time complexity of similarity-based string computations?
  • RQ5Can hybrid indexing models combining block-addressing and compressed indexes achieve both sublinear space and sublinear query time independently of block size?

Key findings

  • The FM-index and WFM-index achieve sublinear space overhead and sublinear query time, outperforming traditional inverted indices and the Glimpse tool in both theoretical and practical settings.
  • Combining block-addressing with compressed indexes like the FM-index enables efficient, localized pattern searches, reducing I/O and improving performance by 30–50% via opportunistic string matching.
  • Theoretical analysis confirms that the block-addressing + compressed index approach achieves both sublinear space and sublinear query time independently of block size, unlike inverted indices.
  • Compression-based techniques such as Lempel-Ziv parsing can reduce the time complexity of dynamic programming in similarity searches to O(n²/log n), approaching the conjectured optimal bound.
  • The integration of FM-index as a filtering mechanism in IR systems allows fast detection of pattern occurrences across candidate text blocks, leveraging exact-pattern search efficiency.
  • Hybrid systems combining block-addressing, compression, and cache-aware design represent a promising path forward for scalable, high-performance text retrieval.

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.