Grammar-compressed Self-index with Lyndon Words
arXiv:2004.05309
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 words of space that can be built from a string in expected time, retrieving the starting positions of all occurrences of a pattern of length in time, where is the length of , is the size of the Lyndon SLP for , and is the number of occurrences of in .