[SOLVED] CSCI435 Home Assignment 2

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon HW2-2bylrf.zip (1775.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)

 

Q1. [10] Find all strings in L((ab + b)* b (a + ab)*) of length less than four.

Q2. [10] Give a regular expression for the language

  • [10] L = {anbm | (n+m) is odd}.
  • [10, optional] L = {w Î {a, b}* | ( na(w) – nb(w) ) mod 3 = 0}.  Hint: Apply Thm2. .

Q3. [10] Using the construction in Theorem 3.1, construct an NFA that accepts the complement of the

Language L(ab*aa + bba*ab).

Q4. [20] Construct a minimal DFA that accepts the following language

  • [10] L(ab(a+ab)*(a+aa))
  • [10] L((aa*)*b)*)

Hint: Start with constructing an NFA (by Theorem 3.1), convert it to DFA, then get the minimal DFA by mark & reduce procedures.

Q5. [20] Find regular expressions for the languages accepted by the following automaton.

  • [10]
  • [10]

 

Q6. [10] Construct a DFA that accepts the language generated by the grammar

                                S ® abS | B,                       A ® aB | bb,      B ® baA.

Q7. [20] Find a regular grammar that generates the language on S={a, b}

  • [10] L(aa*(ab+a)*)
  • [10] the language consisting of all strings with no more than two a’s.
  • HW2-2bylrf.zip