What It Means to Decide a Language

A decider halts on every allowed input and gives the correct yes or no answer to membership.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a simple decision
  2. Keep running forever distinct
  3. Require a correct answer and termination on every input
  4. Distinguish a timeout from a mathematical rejection

Trace a simple decision

A loop counting ones modulo two reads a finite word, then reports whether the count parity is even. Its loop stops after the input ends. See DFA parity.

Keep running forever distinct

A recognizer can have different behavior on nonmembers. A particular procedure returning no answer on some inputs fails the decider's termination condition. Decidability and recognizability develop this difference.[1]

Require a correct answer and termination on every input

A procedure for whether a binary word contains at least one one can scan the input and accept at its first one. If the finite word ends without one, it rejects. Every input within the alphabet has a completed outcome. See decision and witness results.

0010 → accept on first one
000 → reject after reading all symbols
ε → reject immediately

Distinguish a timeout from a mathematical rejection

A timed-out implementation may provide no answer. A decider has a proof of termination and correctness on its declared input language. State the progress measure for the scan.

References

  1. Michael Sipser, Introduction to the Theory of Computation ↩