Unformatted text preview:

CS 520 – Problem Set II Name ______________________1. Let = {a,b}. Define in set notation the following languagesa. * - i = i= 3 to b. * + = c. 2 - {aa,ab,ba} = __d. * = 2. a. Argue as to why it is possible to design an FA to accept thefollowing languageL = { w {a,b,c}*| (na(w) + nb(w)) mod 3 > nc(w) mod 4 }.b. How many states would this dfa have? Support your answer.3. For each of the following languages, prove that it is a regular language byconstruction or cogent argument or prove that it is not, by careful application ofthe pumping lemma. You may also use any results we obtained in class.a. L = { akblcm | k+l+m < n, n }b. L = { anbncndn | n 0 }CS 520 – Problem Set II Name ______________________4. For the following languages, prove whether they are context free. Assume ={ a,b }.a. L1 = { anbm | n 2m }b. L2 = { wwrwwr | w * }5. Consider the following CFG. Transform this grammar into Chomsky NormalForm. Be sure to remove lambda and unit productions before proceeding.S abABA bAB | B BAa | A | 6. Describe the strategy for building a Turing machine to accept the followinglanguageL = { w ai | i = 2 k, where k is a nonnegative integer


View Full Document

UB CS 520 - Problem Set #2

Download Problem Set #2
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Problem Set #2 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Problem Set #2 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?