Regular expression from the CS-501 automaton

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

Share on WhatsApp

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

Question

Derive a regular expression for the automaton with initial q₀, final q₂ and transitions (on 0,1): q₀→(q₁,q₀), q₁→(q₂,q₁), q₂→(q₁,q₀).

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

Answer

From q0 reach q2 for the first time via 1*01*0. From q2 return to q2 either via 01*0 or via 11*01*0 (the first 1 goes to q0). Since q2 alone accepts, the expression is 1*01*0(01*0+11*01*0)*. This describes every accepting path by decomposing it into its first arrival and subsequent return cycles.

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

Discussion

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

Sign in to participate in the discussion.

Join the discussion