Palindromic trees for a sliding window and its applications

From MaRDI portal
Publication:2234804

DOI10.1016/J.IPL.2021.106174zbMATH Open1472.68225arXiv2006.02134OpenAlexW3187333287MaRDI QIDQ2234804FDOQ2234804


Authors: Takuya Mieno, Kiichi Watanabe, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda Edit this on Wikidata


Publication date: 19 October 2021

Published in: Information Processing Letters (Search for Journal in Brave)

Abstract: The palindromic tree (a.k.a. eertree) for a string S of length n is a tree-like data structure that represents the set of all distinct palindromic substrings of S, using O(n) space [Rubinchik and Shur, 2018]. It is known that, when S is over an alphabet of size sigma and is given in an online manner, then the palindromic tree of S can be constructed in O(nlogsigma) time with O(n) space. In this paper, we consider the sliding window version of the problem: For a sliding window of length at most d, we present two versions of an algorithm which maintains the palindromic tree of size O(d) for every sliding window S[i..j] over S, where 1leqji+1leqd. The first version works in O(nlogsigma) time with O(d) space where sigmaleqd is the maximum number of distinct characters in the windows, and the second one works in O(n+dsigma) time with (d+2)sigma+O(d) space. We also show how our algorithms can be applied to efficient computation of minimal unique palindromic substrings (MUPS) and minimal absent palindromic words (MAPW) for a sliding window.


Full work available at URL: https://arxiv.org/abs/2006.02134




Recommendations




Cites Work


Cited In (4)

Uses Software





This page was built for publication: Palindromic trees for a sliding window and its applications

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q2234804)