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

Theory of computation miscellaneous

Theory of Computation

  1. Let L = {W ∈ (0, 1) * | W has even number of 1s}, i.e., L is the set of all bit strings with even number of 1's. Which one of the regular expressions below represents L?
    1. (0* 10* 1)*
    2. 0 * (10* 10*)*
    3. 0 * (10 *1)* 0*
    4. 0 * 1(10 * 1) * 10 *
Correct Option: B

It is given that L is the set of all bit strings with even number of 1's so the regular expression should exhibit the same. Now, the min string should be e and the string should be e, 0, 11, 101,... The string obtained from such expression is 0* (10* 10 *)*



Your comments will be displayed only after manual approval.