A pushdown automata behaves like a Turing machine when the number of auxiliary…

2018

A pushdown automata behaves like a Turing machine when the number of auxiliary memory is :

  1. A.

    0

  2. B.

    1

  3. C.

    1 or more 

  4. D.

    2 or more

Attempted by 86 students.

Show answer & explanation

Correct answer: D

Correct answer: 2 or more

Explanation: A pushdown automaton that has two stacks can simulate the tape of a Turing machine. With two stacks, you can represent the tape cells on both sides of the head and perform the same read, write, and move operations.

  • Key idea: Use one stack to hold the tape contents to the left of the head (top is the cell closest to the head) and the other stack to hold the current cell and the tape to the right of the head.

  • Simulation of head movement and writing:

    1. Move right: push the current symbol onto the left stack, then pop the top of the right stack to become the new current symbol (if the right stack is empty, treat it as a blank).

    2. Move left: push the current symbol onto the right stack, then pop the top of the left stack to become the new current symbol (if the left stack is empty, treat it as a blank).

    3. Write: replace the current symbol by popping and then pushing the new symbol on the appropriate stack representation.

  • Why fewer stacks are insufficient:

    1. Zero stacks: no auxiliary memory, so the machine is a finite automaton and cannot simulate a Turing machine.

    2. One stack: gives power equivalent to context-free languages (a standard pushdown automaton) but cannot in general simulate the two-way unbounded tape of a Turing machine.

Conclusion: Two stacks (or more) provide enough structured, unbounded auxiliary memory to simulate a Turing machine, so the correct choice is "2 or more".

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Mppsc Assistant Professor