Finite automaton for consecutive identical bits

December 4, 2026 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp

← RGPV CD-501 Theory of Computation December 2024 Solved Question Paper

← RGPV CS-501 Theory of Computation November 2023 Solved Paper

← RGPV CS-501 (CBGS) Theory of Computation November 2019 Solved Paper

Question

Construct a finite automaton equivalent to (0+1)*(00+11)(0+1)*.

Asked in: CS-501 | November 2023 | 3(b)

Construct a finite automaton for (0+1)*(00+11)(0+1)*.

Asked in: CD-501 | December 2024 | 7(a)

Describe NFA and DFA briefly and explain construction of a DFA for r = (0+1)*(00+11)(0+1)*.

Asked in: CS-501 | November 2019 | 7

Answer

A DFA has exactly one next state for every state and input symbol. An NFA can have zero, one or several next states, and accepts if at least one computation accepts. Both recognize precisely the regular languages.

The expression describes binary strings containing 00 or 11. Use four states: q₀ (no input), q₁ (last symbol 0, no pair yet), q₂ (last symbol 1, no pair yet), q₃ (pair found). q₃ is accepting.

State 0 1
q₀ q₁ q₂
q₁ q₃ q₂
q₂ q₁ q₃
q₃ q₃ q₃

The accepting state is absorbing because once a pair occurs, every extension still contains it. For 0100 the path is q₀→q₁→q₂→q₁→q₃; 0101 is rejected.

Finite automaton for consecutive identical bits
Finite automaton for consecutive identical bits

← RGPV CD-501 Theory of Computation December 2024 Solved Question Paper

← RGPV CS-501 Theory of Computation November 2023 Solved Paper

← RGPV CS-501 (CBGS) Theory of Computation November 2019 Solved Paper

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion