English

Hamming distance between finite transducers

Formal Languages and Automata Theory 2026-04-29 v1

Abstract

We study bounded deviation of non-deterministic finite transducers under the Hamming distance: the bounded comparison problem asks, given two transducers and kNk \in \mathbb{N}, whether for every input the two transducers produce words at Hamming distance at most kk. This problem is known to be decidable in polynomial time when kk is fixed, and in co-NP otherwise. We show that the problem is NL-complete when kk is fixed, co-NP-complete when kk is given in binary, and it is DP-complete to decide if the distance is exactly kk. We also prove that if the two transducers have bounded comparison, then the maximal distance is at most quadratic in the size of both transducers, and that this bound is asymptotically tight. We prove the results on deviations problem, which asks similar questions on the distance of the pairs of input and output of a single transducer, and show that these two families of problems are logspace many-one equivalent.

Keywords

Cite

@article{arxiv.2604.25398,
  title  = {Hamming distance between finite transducers},
  author = {Luc Dartois and Pierre-Cyrille Héam and Ismaël Jecker and Silvio Vescovo},
  journal= {arXiv preprint arXiv:2604.25398},
  year   = {2026}
}

Comments

21 pages, 7 figures

R2 v1 2026-07-01T12:38:49.290Z