Running Two Automata in a Product State

A product automaton can track two machines over the same input by storing their current states as an ordered pair.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace two tests
  2. Choose acceptance from the two properties
  3. Update both coordinates for every input
  4. Choose acceptance from the intended logical operation

Trace two tests

One machine can remember parity of ones and another whether the final bit is one. After 101, the product records even and ends-in-one. Cartesian pairs describe the combined state.

Choose acceptance from the two properties

Require both state conditions for an intersection or either for a union. The truth table for that predicate determines which product states accept.[1]

Update both coordinates for every input

One automaton tracks even parity of ones and another tracks whether the last symbol is zero. The product state records both answers. On 110 the final pair is even and last-zero, so the intersection accepts under both conditions. See Cartesian products.

Start: even, no final zero
Read 1: odd, no final zero
Read 1: even, no final zero
Read 0: even, last zero

Choose acceptance from the intended logical operation

Intersection accepts only pairs whose two components accept. Union can accept if either component does. The product can include states unreachable from the combined start.

References

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