Examples
Examples
Draw the DFA for the following languages. Also write their equivalent regular expressions
Q No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 LANGUAGE
Set of all strings over 0,1 ending in 00 Set of all strings over 0,1 containing odd no of 0s. Set of all strings over 0,1 containing odd no of 0s and 1s. Set of all strings over 0,1 containing even no of 0s and 1s. Set of all strings over 0,1 with no more than three 0s. Set of all strings over 0,1 with exactly three 0,s. Set of all strings over 0,1 where no of 0s is divisible by 3. Set of all strings over 0,1 containing 011 as substring. Set of all strings over 0,1 where tenth symbol from right is 1. Set of all strings over 0,1 that either begin or end with 01. L= {anbam n,m>1} L= {anbb n>=0} L= {abn a n>1} L= {abn am n>=2 m>=3} L= {w: |w| mod 5 != 0 } over {0,1} Set of all strings over 0,1 beginning with a 1 and when interpreted as a binary integer is a multiple of 5. Eg 101 , 10101 ,1111 are accepted L={w: every run of 0,s has length either two or three} Set of all strings where every 00 is immediately followed by 1. Set of strings over 0 ,1 where leftmost symbol differs from rightmost symbol Set of strings over 0 ,1 where leftmost two symbols and rightmost two symbols are identical Set of strings over 0 ,1 where leftmost two symbol differs from rightmost symbol
MK HUSSAIN @ IITM
17 18 19 20 21
Construct minimum state automation for the following DFA,s 1. Example 3.20 (KLP Mishra, P No 101) 2. Example 3.21 (KLP Mishra, P No 101) 3. Example 3.15 (KLP Mishra, P No 106, From Unsolved Exercise) 4. Example 3.16 (KLP Mishra, P No 106, From Unsolved Exercise)