On Longest Common Property Preserved Substring Queries
Abstract
We revisit the problem of longest common property preserving substring queries introduced by~Ayad et al. (SPIRE 2018, arXiv 2018). We consider a generalized and unified on-line setting, where we are given a set of strings of total length that can be pre-processed so that, given a query string and a positive integer , we can determine the longest substring of that satisfies some specific property and is common to at least strings in . Ayad et al. considered the longest square-free substring in an on-line setting and the longest periodic and palindromic substring in an off-line setting. In this paper, we give efficient solutions in the on-line setting for finding the longest common square, periodic, palindromic, and Lyndon substrings. More precisely, we show that can be pre-processed in time resulting in a data structure of size that answers queries in time and working space, where is the size of the alphabet, and the common substring must be a square, a periodic substring, a palindrome, or a Lyndon word.
Keywords
Cite
@article{arxiv.1906.05486,
title = {On Longest Common Property Preserved Substring Queries},
author = {Kazuki Kai and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda and Tomasz Kociumaka},
journal= {arXiv preprint arXiv:1906.05486},
year = {2019}
}
Comments
minor change from version submitted to SPIRE 2019