CSCI 2670, Spring 2012

Introduction to Theory of Computing

Homework Assignment 5

Due Thursday October 25, 2012

(Unless otherwise specified, questions are selected from the textbook Michael Sipser, Introduction to the Theory of Computation, Second Edition, Thomson Course Technology.)
  1. Write a context-free grammar (CFG) for either of the following the languages

  2. Construct a pushdown automaton (PDA) for the language you select for problem 1. You may directly construct a PDA or use the procedure given in Theorem 2.20 (i.e., Lemma 2.21 and its proof) to construct a PDA from the CFG you have developed for problem 1.

  3. Question 2.9, page 129.

  4. Give a PDA for the language defined in question 2.9 of page 129, without using the grammar you develop for problem 3.

  5. Question 2.11, page 129.

  6. Question 2.14, page 129.