PalFM-index: FM-index for Palindrome Pattern Matching
Abstract
The palindrome pattern matching (pal-matching) is a kind of generalized pattern matching, in which two strings and of same length are considered to match (pal-match) if they have the same palindromic structures, i.e., for any possible , is a palindrome if and only if is a palindrome. The pal-matching problem is the problem of searching for, in a text, the occurrences of the substrings that pal-match with a pattern. Given a text of length over an alphabet of size , an index for pal-matching is to support, given a pattern of length , the counting queries that compute the number of occurrences of and the locating queries that compute the occurrences of . The authors in~[I et al., Theor. Comput. Sci., 2013] proposed an -bit data structure to support the counting queries in time and the locating queries in time. In this paper, we propose an FM-index type index for the pal-matching problem, which we call the PalFM-index, that occupies bits of space and supports the counting queries in time. The PalFM-indexes can support the locating queries in time by adding bits of space, where is a parameter chosen from in the preprocessing phase.
Keywords
Cite
@article{arxiv.2206.12600,
title = {PalFM-index: FM-index for Palindrome Pattern Matching},
author = {Shinya Nagashita and Tomohiro I},
journal= {arXiv preprint arXiv:2206.12600},
year = {2023}
}
Comments
Accepted to 34th Annual Symposium on Combinatorial Pattern Matching (CPM) 2023