Checking whether a word is Hamming-isometric in linear time

06/19/2021
by   Marie-Pierre Béal, et al.
0

A finite word f is Hamming-isometric if for any two word u and v of same length avoiding f, u can be transformed into v by changing one by one all the letters on which u differs from v, in such a way that all of the new words obtained in this process also avoid f. Words which are not Hamming-isometric have been characterized as words having a border with two mismatches. We derive from this characterization a linear-time algorithm to check whether a word is Hamming-isometric. It is based on pattern matching algorithms with k mismatches. Lee-isometric words over a four-letter alphabet have been characterized as words having a border with two Lee-errors. We derive from this characterization a linear-time algorithm to check whether a word over an alphabet of size four is Lee-isometric.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/10/2023

Ranking and Unranking k-subsequence universal words

A subsequence of a word w is a word u such that u = w[i_1] w[i_2] , … w[...
research
02/18/2018

Linear-Time Algorithm for Long LCF with k Mismatches

In the Longest Common Factor with k Mismatches (LCF_k) problem, we are g...
research
09/12/2022

Polynomial time multiplication and normal forms in free band

We present efficient computational solutions to the problems of checking...
research
06/11/2021

Matching Patterns with Variables under Hamming Distance

A pattern α is a string of variables and terminal letters. We say that α...
research
04/26/2023

An Improved Modular Addition Checksum Algorithm

This paper introduces a checksum algorithm that provides a new point in ...
research
04/09/2022

Reduction ratio of the IS-algorithm: worst and random cases

We study the IS-algorithm, a well-known linear-time algorithm for comput...
research
09/04/2023

Loopless Algorithms to Generate Maximum Length Gray Cycles wrt. k-Character Substitution

Given a binary word relation τ onto A * and a finite language X ⊆ A * , ...

Please sign up or login with your details

Forgot password? Click here to reset