Question: Please solve it complete in ln one hour i will upvote you 1. (a) Construct deterministic finite automata accepting the following languages: (i) {w {0,

 Please solve it complete in ln one hour i will upvote

Please solve it complete in ln one hour i will upvote you

1. (a) Construct deterministic finite automata accepting the following languages: (i) {w {0, 1}'| w is not in the regular language defined by 0*1*}; [2] (ii) {W {0,1}" w has an even number of O's or an odd number of l's} (pay attention to or in this definition); [2] (iii) {W {0,1}'| wends with a subword 01, i.e., w = 301 for some word I}. [2] (b) Let h : {0,1} + {a,b} be the function defined by h(e) = e, h(0) = aa and h(1) = b, and for words of length two or greater: = h(a1a2...an)=h(a)h(az)...h(an) for n > 2 and a; {0,1}. For a language L {0,1}' we define h(L) = {h(w) | WEL} {a,b}* = = = For each of the following languages, give a regular expression over {a,b} that corresponds to h(L): (i) L = {0"1"|m, n >0}. [3] (ii) L = {w {0,1} | W contains 010 as a subword). [3] (c) Is it possible to write regular expressions representing the following languages over the alphabet {a,b}? If yes, write the regular expression, or else prove that it is impossible. (i) {www {a,b}"}. Here wR stands for the reverse of the word w. [4] (ii) {a""- n1 = 1,2,...}. (4)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!