English

Grammar-compressed Self-index with Lyndon Words

Data Structures and Algorithms 2020-04-28 v2

Abstract

We introduce a new class of straight-line programs (SLPs), named the Lyndon SLP, inspired by the Lyndon trees (Barcelo, 1990). Based on this SLP, we propose a self-index data structure of O(g)O(g) words of space that can be built from a string TT in O(nlgn)O(n \lg n) expected time, retrieving the starting positions of all occurrences of a pattern PP of length mm in O(m+lgmlgn+occlgg)O(m + \lg m \lg n + occ \lg g) time, where nn is the length of TT, gg is the size of the Lyndon SLP for TT, and occocc is the number of occurrences of PP in TT.

Keywords

Cite

@article{arxiv.2004.05309,
  title  = {Grammar-compressed Self-index with Lyndon Words},
  author = {Kazuya Tsuruta and Dominik Köppl and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
  journal= {arXiv preprint arXiv:2004.05309},
  year   = {2020}
}
R2 v1 2026-06-23T14:47:44.920Z