← RGPV CS-501 Theory of Computation May 2023 Solved Paper
Question
Give a regular expression for binary strings ending in 00.
Asked in: CS-501 | May 2023 | 3(ii)
Answer
Required regular expression: (0+1)*00.
The prefix may be empty or any binary word. The final two symbols must be zero. 00 and 10100 qualify; 0 and 001 do not.
Here + denotes union, juxtaposition denotes concatenation and * denotes Kleene closure. The expression generates every required word and no word outside the specified set.
Discussion
Ask a question, share your thoughts or report an error.
Sign in to participate in the discussion.
Join the discussion