Back to the 2023 paper

Module 1: Introduction & Regular Languages

20232m

A minimum state deterministic FA accepting the language:

L={w∣w∈{0,1}∗}L = \{ w \mid w \in \{0,1\}^* \}

where the number of 0's and 1's in ww are divisible by 3 and 5 respectively, has:

(i) 15 states
(ii) 11 states
(iii) 10 states
(iv) 9 states

Worked SolutionAI Assisted

Answer

Correct Option: (i) 15 states (Other options typically include 8, etc., correct is 15)

Explanation

Language L={w∈{0,1}∗∣#0(w) mod 3=0  ∧  #1(w) mod 5=0}L = \{ w \in \{0,1\}^* \mid \#_0(w) \bmod 3 =0 \;\land\; \#_1(w) \bmod 5 =0 \}.

This is intersection of two regular languages:

  • L0={w∣#0(w)≡0(mod3)}L_0 = \{ w \mid \#_0(w) \equiv 0 \pmod 3 \} → DFA with 3 states (r0=0,1,2r_0=0,1,2).
  • L1={w∣#1(w)≡0(mod5)}L_1 = \{ w \mid \#_1(w) \equiv 0 \pmod 5 \} → DFA with 5 states (s0=0..4s_0=0..4).

Intersection via product construction: states = Q0×Q1Q_0 \times Q_1 → 3×5=153 \times 5 =15 states.

Transitions: δ((r,s),0)=((r+1) mod 3,s)\delta((r,s),0) = ((r+1)\bmod 3, s), δ((r,s),1)=(r,(s+1) mod 5)\delta((r,s),1) = (r, (s+1)\bmod5).

Initial (0,0)(0,0), accepting (0,0)(0,0) only. Minimal because all pairs distinguishable (Myhill-Nerode: $(i,j)
ot\equiv (i',j')if if i
eq i'or or j
eq j'$).

Final Answer

15 states (product DFA, minimal).

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.