English

Learning from Positive and Negative Examples: New Proof for Binary Alphabets

Formal Languages and Automata Theory 2022-06-22 v1 Computational Complexity

Abstract

One of the most fundamental problems in computational learning theory is the the problem of learning a finite automaton AA consistent with a finite set PP of positive examples and with a finite set NN of negative examples. By consistency, we mean that AA accepts all strings in PP and rejects all strings in NN. It is well known that this problem is NP-complete. In the literature, it is stated that this NP-hardness holds even in the case of a binary alphabet. As a standard reference for this theorem, the work of Gold from 1978 is either cited or adapted. But as a crucial detail, the work of Gold actually considered Mealy machines and not deterministic finite state automata (DFAs) as they are considered nowadays. As Mealy automata are equipped with an output function, they can be more compact than DFAs which accept the same language. We show that the adaptions of Gold's construction for Mealy machines stated in the literature have some issues and give a new construction for DFAs with a binary alphabet ourselves.

Keywords

Cite

@article{arxiv.2206.10025,
  title  = {Learning from Positive and Negative Examples: New Proof for Binary Alphabets},
  author = {Jonas Lingg and Mateus de Oliveira Oliveira and Petra Wolf},
  journal= {arXiv preprint arXiv:2206.10025},
  year   = {2022}
}
R2 v1 2026-06-24T11:57:47.489Z