Home » Theory of Computation » Theory of computation miscellaneous » Question

Theory of computation miscellaneous

Theory of Computation

  1. The length of the shortest string NOT in the language (over ∑ = {a, b}) of the following regular expression is
    ______________.
    a*b* (ba)*a*
    1. 0
    2. 3
    3. 6
    4. 9
Correct Option: B

a * b * (ba) * a *
Length O is present (as it accepts ∈)
Length 1 is present (a, b)
Length 2 is present (aa, ab, ba, bb)
Length 3 is not present (bab not present)
∴ it is 3



Your comments will be displayed only after manual approval.