Counting palindromes in substrings

14Citations
Citations of this article
2Readers
Mendeley users who have this article in their library.
Get full text

Abstract

We propose a data structure and an online algorithm to report the number of distinct palindromes in any substring of an input string. Assume that the string S of length n arrives symbol-by-symbol and every symbol is followed by zero or more queries of the form “report the number of distinct palindromes in S[i.j]”. We use O(n log n) total time to process the string plus O(log n) time per query. The required space is O(n log n) in general and O(n) in a natural particular case. As a simple application, we describe an algorithm reporting all palindromic rich substrings of an input string in O(n log n) time and O(n) space.

Cite

CITATION STYLE

APA

Rubinchik, M., & Shur, A. M. (2017). Counting palindromes in substrings. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 10508 LNCS, pp. 290–303). Springer Verlag. https://doi.org/10.1007/978-3-319-67428-5_25

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free