Computer Science 411 / 675 Automata Theory

Mitderm II Review

Topics to be covered on Midterm II:

Book Sections to be covered on Midterm II

Sample Questions

  1. Give a Push-Down Automataon that accepts the langauge L = {w : w in (a+b)* and w contains aba and w has more a's than b's}
  2. Show that the following language is not context free: L = {www : w in (a+b)*}
  3. Give a Turing Machine that decides the language L = {wcw : w in (a+b)*}. So, ababcabab, aabcaab are in L, while abab, abcba, aabcaba are not in L
  4. Give a Turing Machine that semi-decides the language L = all strings over (a+b)* that contain the substring aba
  5. Give a Turing Machine that computes the function n/2 for strings that represent binay numbers. So, 110 (6) would be transformed into 11 (3), 101 (5) would be transformed into 11 (3), and 111 (7) would be transformed into 100 (4).
  6. Give a Turing Machine that enumerates the language a*bab
  7. Give an unrestricted grammar for the language L = {aibjck : i >=j and i >=k}
  8. Give a 1-counter machine that accepts the language {a2nb2n : n > 0}