Computable Enumeration and Dovetailing
Turn accepting computations into an enumerator without allowing one nonterminating input to block all later inputs.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Give every candidate simulation a growing budget
List finite strings in length-first order. At stage \(k\), simulate the first \(k\) candidate inputs for \(k\) steps each and output any recognized acceptances. Every accepted string eventually appears because both its list index and acceptance time are finite. Candidates accepting earlier may be printed repeatedly unless explicitly remembered. Incrementally advancing active simulations can avoid repeating their previous work, at the cost of storing more configuration state.
Read an enumerator as a recognizer
On input \(w\), run the enumerator until it prints \(w\), then accept. A nonmember never appears. This proves the equivalence between computably enumerable languages and recognizable languages. Even an enumerator that keeps producing members may give no finite proof that a particular absent string will never appear. Recognizing the complement supplies the missing termination direction. A universal simulation using machine configurations makes either construction concrete.[1][2]