Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help Homework #2 4200 - Formal Languages (Instructor: Dr. Anh Nguyen) Problem 1 Note: Late assignments will not be graded. You will not only
Please help
Homework #2 4200 - Formal Languages (Instructor: Dr. Anh Nguyen) Problem 1 Note: Late assignments will not be graded. You will not only be graded on your mathematics, but also on your organization, proper use of English, spelling, punctuation, and logic. There are in total 2 problems in this homework. Problem 1 15 points Draw the state diagram of DFAs recognizing the following languages. Alphabet 9 = {0,1}. a. A = {ww starts with 0 and has odd length, or starts with 1 and has even length} b. B = {wlw is any string except 11 and 111} c. C = {4,0} Problem 2 10 points Example of set difference: A = {0,01), and B = {0,11}. Then, A - B = {01}. Prove that regular languages are closed under the set difference operation. That is, if A and B are regular languages, then, A - B is also a regular language. Hint: One can prove the statement above by either (1) contradiction or (2) construction. For the proof, you may make use of the theorems that regular languages are closed under union, intersection, and complement (already discussed in class) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started