Chomsky Hierarchy
Print this page
First   |   Last   |   Prev   |   Next
Since the string w gets modified during simulation (in step 2), the grammar G has to remember it, so that it can reproduced once M enters a final state. So, G is constructed such that it generates two copies of a representation of some string w and then simulates the behaviour of the TM M on one copy, preserving the other. If M accepts, by entering a final state, then G transforms the second copy to a terminal string; otherwise G doesnot transform the second copy to a terminal string.

Let = , for some k >=1

Construction of G is given below.

  • N =
  • The production in P are
    1. Sq0T
    2. T [ai , ai]T for all i =1, 2 , ... , k
    3. T R
    4. R [, B ] R
    5. R
First   |   Last   |   Prev   |   Next