Checking whether a word is Hamming-isometric in linear time - Archive ouverte HAL
Article Dans Une Revue Theoretical Computer Science Année : 2022

Checking whether a word is Hamming-isometric in linear time

Résumé

A finite word f is Hamming-isometric if for any two words u and v of the 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.

Dates et versions

hal-04338120 , version 1 (12-12-2023)

Identifiants

Citer

Marie-Pierre Béal, Maxime Crochemore. Checking whether a word is Hamming-isometric in linear time. Theoretical Computer Science, 2022, 933, pp.55-59. ⟨10.1016/j.tcs.2022.08.032⟩. ⟨hal-04338120⟩
15 Consultations
0 Téléchargements

Altmetric

Partager

More