Double-Ended Palindromic Trees: A Linear-Time Data Structure and Its Applications
The palindromic tree (a.k.a. eertree) is a linear-size data structure that provides access to all palindromic substrings of a string. In this paper, we propose a generalized version of eertree, called double-ended eertree, which supports linear-time online double-ended queue operations on the stored string. At the heart of our construction, is a class of substrings, called surfaces, of independent interest. Namely, surfaces are neither prefixes nor suffixes of any other palindromic substrings and characterize the link structure of all palindromic substrings in the eertree. As an application, we develop a framework for range queries involving palindromes on strings, including counting distinct palindromic substrings, and finding the longest palindromic substring, shortest unique palindromic substring and shortest absent palindrome of any substring. In particular, offline queries only use linear space. Apart from range queries, we enumerate palindromic rich strings with a given word in linear time on the length of the given word.
Code (0)
등록된 구현이 없습니다.
Similar Papers 제목 키워드 기반
High nucleotide skew palindromic DNA sequences function as replication origins due to their unzipping propensity
Locations of DNA replication initiation in prokaryotes, called "origins of replication", are well-characterized. However, a mechanistic understanding of the sequence-dependence of the local unzipping of double-stranded D…
Heterogeneous Oblique Double Random Forest
The decision tree ensembles use a single data feature at each node for splitting the data. However, splitting in this manner may fail to capture the geometric properties of the data. Thus, oblique decision trees generate…
Oblique and rotation double random forest
Random Forest is an ensemble of decision trees based on the bagging and random subspace concepts. As suggested by Breiman, the strength of unstable learners and the diversity among them are the ensemble models' core stre…
DiversitySubgroup detection in linear growth curve models with generalized linear mixed model (GLMM) trees
Growth curve models are popular tools for studying the development of a response variable within subjects over time. Heterogeneity between subjects is common in such models, and researchers are typically interested in ex…
Time SeriesOn Symmetries in Analytic Input-Output Systems
There are many notions of symmetry for state space models. They play a role in understanding when systems are time reversible, provide a system theoretic interpretation of thermodynamics, and have applications in certain…
State Space Models