Toc Tutorial2
Toc Tutorial2
1. Discuss Regular expression. Write the regular expression for the following languages:
i)Representing for strings of a’s and b’s having odd length.
ii)To accept strings of a’s and b’s such that third symbol from the right is a and fourth symbol
from the right is b.
3. Write Regular Expression for the language that has the set of all strings of 0’s and 1’s not
containing 101 as a substring.
4. Write Regular Expression for the language that have the set of all strings of 0’s and 1’s such that
no prefix has two more 0’s than 1’s, not two more 1’s than 0’s.
5. Write Regular Expression for the language that have the set of all strings of 0’s and 1’s whose no
of 0’s is divisible by 5 and no of 1’s is even.
9. Obtain the regular expression that denotes the language accepted by the following DFA.
10. Construct an NFA equivalent to the following regular expression ((10)+(0+1) 01.
11.