A New Implementation of Manacher's Algorithm

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

Manacher's algorithm is optimal for the longest palindromic substring problem. The implementation of this algorithm traditionally requires in-memory construction of an augmented string that is twice as long as the original string. Although the string-augmentation preprocessing has found widespread use for the implementation Manacher's algorithm, this is neither economic nor necessary. In this article, a readable implementation of Manacher's algorithm based on index mapping is developed which does away with the string augmentation.

READ FULL TEXT
research
03/17/2020

An Efficient Implementation of Manacher's Algorithm

Manacher's algorithm has been shown to be optimal to the longest palindr...
research
01/08/2021

Cantor Mapping Technique

A new technique specific to String ordering utilizing a method called "C...
research
09/23/2022

From String Detection to Orthogonal Vector Problem

Considering Grover's Search Algorithm (GSA) with the standard diffuser s...
research
05/18/2020

On the Separability Problem of String Constraints

We address the separability problem for straight-line string constraints...
research
05/01/2021

Generative Art Using Neural Visual Grammars and Dual Encoders

Whilst there are perhaps only a few scientific methods, there seem to be...
research
12/10/2017

A novel algorithm for online inexact string matching and its FPGA implementation

Accelerating inexact string matching procedures is of utmost importance ...
research
05/16/2020

Quantum string comparison method

We propose a quantum string comparison method whose main building blocks...

Please sign up or login with your details

Forgot password? Click here to reset