arXiv:2608.28385cs.FLAug 2026

Manuscript Offprint

arXiv:2608.28385

Separating Words with Automata in the Half-adversarial Case

Gabriel Bathie

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We consider the problem of separating words with deterministic finite automata (DFA) (Goralčik and Koubek, 1986). This problem asks: given two distinct words u,vu, v of length at most nn, what is the size of the smallest DFA that accepts one and rejects the other? The best upper bound on the worst-case over all pairs of words of length at most nn is O~(n1/3)\tilde{O}(n^{1/3}) states (Chase, 2021), while the best lower bound is Ω(log⁡n)\Omega(\log n).

In this work, we consider the half-random, half-adversarial case: we show that if uu is a uniformly random binary word of length nn, then with high probability, for any word vv not equal to uu, there is a DFA with O(log⁡7/3n poly log log n)O(\log^{7/3} n \text{ poly log log } n) states that separates uu and vv. Our results are based on a novel analysis that exploits the structural sparsity of random words: we show how to apply block-wise compaction with small deterministic transducers to reduce the separation problem to the case of words with short run-length encodings.

2012 ACM Subject Classification Theory of computation → Formal languages and automata theory

Keywords and phrases Finite automaton, Separating words, Transducer

Funding Gabriel Bathie: This work was supported by a Postdoctoral Fellowship of the PEPR IA SAIF.

1 Introduction

We consider the problem of separating words with deterministic finite automata (DFA), introduced by Goralčik and Koubek [7] in 1986. This problem asks: given two distinct words u,vu, v of length at most nn, what is the size (number of states) of the smallest DFA that separates them, i.e., accepts one and rejects the other?

A solution to this problem is a tight asymptotic worst-case estimation of the minimal number of states, as a function of the length of uu and vv. This problem, while easy to state, has proven rather hard to solve: finding a solution has been an open problem for more than 40 years, and there is still a large gap between the state-of-the-art upper and lower bounds. The state of the art is the following: in 2020, Chase [3, 4] showed that any two distinct words of length at most nn can be separated by a DFA with O~(n1/3)\tilde{O}(n^{1/3}) states. For the lower bounds, it is known that there exist words of length nn for which Ω(log⁡n)\Omega(\log n) states are required [7, 6].

No better bounds are known in the general case, but several restricted cases have been studied. For example, it is easy to show that if u and v are uniformly random words of length n over a binary alphabet, then with high probability, there exists a DFA with O(log⁡n)O(\log n) states that separates them [6].