Question: Note: The a s and b s can be in any order. Your regular expression should handle this. b . L 2 = { w

Note: The as and bs can be in any order. Your regular expression should handle this.
b. L2={ w in {0,1}*: w is the binary representation of a prime number between 2 and 15.} Justify your answer.
c. L3={ anbm: n >3,0= m =3}Justify your answer.
Problem 8 Let \Sigma ={a,b}.
a. Prove that r=a(a+b)^(*)a+b(a+b)^(*)b is a regular expression using the inductive
definition of regular expressions. Use the techniques on slide 9 in Chap3.1 power point.
b. Give a simple English description of the strings in L(r).
c. Create an NFA M such that L(r)=L(M). Create and test your NFA on Jflap. Submit the
jflap diagram for M and the testing diagram for M .
d. Testcases: aa, bb, aabb, abbaba, bbaaab, a, b, ababbb, baaababa
Problem 7(Concatenation Problem)
Let L_(1)={win{a,b}^(*):n_(a)(w)>=3,n_(a)(w)mod3=0}.
Let L_(2)={b(ab)^(n):n>=0}.
Let L=L_(1)L_(2).
aM_(1) that accepts L_(1). Create and test your M_(1) on JFLAP. Copy the M_(1)
diagram into Homework #3. Make up good testcases.
bM_(2) that accepts L_(2). Create and test M_(2) on JFLAP. Copy the M_(2) diagram
into Homework #3. Make up good test cases.
cL=L_(1)L_(2). Create and test M on JFLAP. Copy the NFA
diagram into Homework #3.
Required: M is a machine that concatenates L_(1) and L_(2). Use the method from the Chap
2.2 slides. You must use a \lambda transition to jump from L_(1) to L_(2).
d
Note: The a s and b s can be in any order. Your

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 Programming Questions!