An Efficient Implementation of Manacher's Algorithm

03/17/2020
by   Shoupu Wan, et al.
0

Manacher's algorithm has been shown to be optimal to the longest palindromic substring problem. Many of the existing implementations of this algorithm, however, unanimously required in-memory construction of an augmented string that is twice as long as the original string. Although it has found widespread use, we found that this preprocessing is neither economic nor necessary. We present a more efficient implementation of Manacher's algorithm based on index mapping that makes the string augmentation process obsolete.

READ FULL TEXT
research
03/17/2020

A New Implementation of Manacher's Algorithm

Manacher's algorithm is optimal for the longest palindromic substring pr...
research
06/24/2020

Small Longest Tandem Scattered Subsequences

We consider the problem of identifying tandem scattered subsequences wit...
research
01/08/2021

Cantor Mapping Technique

A new technique specific to String ordering utilizing a method called "C...
research
11/29/2021

Bounding the Last Mile: Efficient Learned String Indexing

We introduce the RadixStringSpline (RSS) learned index structure for eff...
research
04/06/2021

ASTANA: Practical String Deobfuscation for Android Applications Using Program Slicing

Software obfuscation is widely used by Android developers to protect the...
research
09/23/2022

From String Detection to Orthogonal Vector Problem

Considering Grover's Search Algorithm (GSA) with the standard diffuser s...
research
11/15/2018

Vectorized Character Counting for Faster Pattern Matching

Many modern sequence alignment tools implement fast string matching usin...

Please sign up or login with your details

Forgot password? Click here to reset