← RGPV CS-501 Theory of Computation May 2023 Solved Paper
Question
Give a regular expression for {ε,a,aa,aaa,aaaa,…}.
Asked in: CS-501 | May 2023 | 3(iii)
Answer
Required regular expression: a*.
Kleene star permits zero or more repetitions. Thus ε, a, aa and aaa belong to the language, while b and ab 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