English

A Compact Index for Order-Preserving Pattern Matching

Data Structures and Algorithms 2018-12-11 v3

Abstract

Order-preserving pattern matching was introduced recently but it has already attracted much attention. Given a reference sequence and a pattern, we want to locate all substrings of the reference sequence whose elements have the same relative order as the pattern elements. For this problem we consider the offline version in which we build an index for the reference sequence so that subsequent searches can be completed very efficiently. We propose a space-efficient index that works well in practice despite its lack of good worst-case time bounds. Our solution is based on the new approach of decomposing the indexed sequence into an order component, containing ordering information, and a delta component, containing information on the absolute values. Experiments show that this approach is viable, faster than the available alternatives, and it is the first one offering simultaneously small space usage and fast retrieval.

Keywords

Cite

@article{arxiv.1606.05724,
  title  = {A Compact Index for Order-Preserving Pattern Matching},
  author = {Gianni Decaroli and Travis Gagie and Giovanni Manzini},
  journal= {arXiv preprint arXiv:1606.05724},
  year   = {2018}
}

Comments

16 pages. A preliminary version appeared in the Proc. IEEE Data Compression Conference, DCC 2017, Snowbird, UT, USA, 2017

R2 v1 2026-06-22T14:28:25.623Z