Cadences in Grammar-Compressed Strings

08/12/2020
by   Julian Pape-Lange, et al.
0

Cadences are structurally maximal arithmetic progressions of indices corresponding to equal characters in an underlying string. This paper provides a polynomial time detection algorithm for 3-cadences in grammar-compressed binary strings. This algorithm also translates to a linear time detection algorithm for 3-cadences in uncompressed binary strings. Furthermore, this paper proves that several variants of the cadence detection problem are NP-complete for grammar-compressed strings. As a consequence, the equidistant subsequence matching problem with patterns of length three is NP-complete for grammar-compressed ternary strings.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/24/2019

A model for a Lindenmayer reconstruction algorithm

Given an input string s and a specific Lindenmayer system (the so-called...
research
02/14/2020

On Extensions of Maximal Repeats in Compressed Strings

This paper provides an upper bound for several subsets of maximal repeat...
research
11/09/2021

Pattern Matching on Grammar-Compressed Strings in Linear Time

The most fundamental problem considered in algorithms for text processin...
research
06/29/2023

Computing all-vs-all MEMs in grammar-compressed text

We describe a compression-aware method to compute all-vs-all maximal exa...
research
06/29/2020

Pattern Masking for Dictionary Matching

In the Pattern Masking for Dictionary Matching (PMDM) problem, we are gi...
research
01/14/2020

Simulation computation in grammar-compressed graphs

Like [1], we present an algorithm to compute the simulation of a query p...
research
03/05/2021

Compressed Communication Complexity of Hamming Distance

We consider the communication complexity of the Hamming distance of two ...

Please sign up or login with your details

Forgot password? Click here to reset