Longest Square Subsequence Problem Revisited

05/30/2020
by   Takafumi Inoue, et al.
0

The longest square subsequence (LSS) problem consists of computing a longest subsequence of a given string S that is a square, i.e., a longest subsequence of form XX appearing in S. It is known that an LSS of a string S of length n can be computed using O(n^2) time [Kosowski 2004], or with (model-dependent) polylogarithmic speed-ups using O(n^2 (loglog n)^2 / log^2 n) time [Tiskin 2013]. We present the first algorithm for LSS whose running time depends on other parameters, i.e., we show that an LSS of S can be computed in O(r min{n, M}logn/r + M log n) time with O(M) space, where r is the length of an LSS of S and M is the number of matching points on S.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/03/2021

Position Heaps for Cartesian-tree Matching on Strings and Tries

The Cartesian-tree pattern matching is a recently introduced scheme of p...
research
05/08/2021

Construction of Sparse Suffix Trees and LCE Indexes in Optimal Time and Space

The notions of synchronizing and partitioning sets are recently introduc...
research
01/18/2022

Computing Longest (Common) Lyndon Subsequences

Given a string T with length n whose characters are drawn from an ordere...
research
01/30/2019

Faster queries for longest substring palindrome after block edit

Palindromes are important objects in strings which have been extensively...
research
05/25/2021

Minimal unique palindromic substrings after single-character substitution

A palindrome is a string that reads the same forward and backward. A pal...
research
06/01/2022

Near-Optimal Search Time in δ-Optimal Space

Two recent lower bounds on the compressiblity of repetitive sequences, δ...
research
02/10/2020

Palindromic k-Factorization in Pure Linear Time

Given a string s of length n over a general alphabet and an integer k, t...

Please sign up or login with your details

Forgot password? Click here to reset