Product Construction

Definition. Given DFAs M1=(Q1,Σ,δ1,s1,F1)M_1 = (Q_1, \Sigma, \delta_1, s_1, F_1) and M2=(Q2,Σ,δ2,s2,F2)M_2 = (Q_2, \Sigma, \delta_2, s_2, F_2), over the same alphabet, the product construction builds the DFA with state set Q1×Q2Q_1 \times Q_2, start state (s1,s2)(s_1, s_2), and transition function δ((r1,r2),a)=(δ1(r1,a),δ2(r2,a))\delta((r_1, r_2), a) = (\delta_1(r_1, a), \delta_2(r_2, a)).

The product machine runs both machines on the same input at once, holding one state of each, so after reading ww it occupies exactly the pair of states M1M_1 and M2M_2 reach on ww. The accepting set selects the operation: F1×F2F_1 \times F_2 gives intersection, and the pairs with at least one accepting coordinate give union. Introduced in Lecture 7, where it decides whether two DFAs recognize the same language.

Created · Updated
Copyright © 2026 Jared Coleman. All rights reserved.