Question: 1. Prove countable by finding the 1-1 and onto correspondence with the natural number N a. b. Strings over {a, b). that begin with a

 1. Prove countable by finding the 1-1 and onto correspondence with

1. Prove countable by finding the 1-1 and onto correspondence with the natural number N a. b. Strings over {a, b). that begin with a Strings over {a,b} with even number of a's c. How many languages over {a,b} are there that only contain strings with an even number of a's and an even number of b's? 2. Write (i) DFA and (ii) smallest NFA you can think of for strings over {0,1} a. Begin and end with 00 b. Contain the substring 00 c. Do NOT contain the substring 00 3. Some regular expressions are easy to write; some hard. a. Write a regular expression for strings over {a,b} that end "aab b. In class we wrote this expression for stings NOT containing the substring aab b*a* |(b*ab*aa*)* The a* is not needed can just be dropped. Why? -- Can you think of a string that should be generated and is not? If so, what? Can you think of a string that this generates which is not legal? If so, what? d. Can you find a correct expression for string NOT containing aab? If so, what is it

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!