Starting from:

$29

CS 334: Problem Set 5

CS 334: Problem Set 5.
Problem 1. (10 points)
a) (3 points) A 2-stack PDA is a PDA with two stacks; its input tape is 1-way read only.
Describe, at a high-level, a 2-stack PDA to recognize the language {π‘Ž
𝑖𝑏
𝑗
𝑐
𝑖𝑑
𝑗
: 𝑖,𝑗 ≥ 0}.
b) (7 points) Can a 2-stack PDA recognize every Turing-recognizable language? Explain
your reasoning.
Problem 2. (10 points) Let π‘π‘‚π‘πΈπ‘€π‘ƒπ‘‡π‘Œ = {⟨𝑀⟩: π‘‡π‘’π‘Ÿπ‘–π‘›π‘” π‘€π‘Žπ‘β„Žπ‘–π‘›π‘’ 𝑀 π‘Žπ‘π‘π‘’π‘π‘‘π‘  π‘ π‘œπ‘šπ‘’ π‘ π‘‘π‘Ÿπ‘–π‘›π‘”}.
Show that π‘π‘‚π‘πΈπ‘€π‘ƒπ‘‡π‘Œ is Turing-recognizable. Give a high-level description for your solution.
Problem 3. (10 points) Show that a language is decidable if and only if some enumerator
enumerates the language in standard string order (lexicographically sorted in increasing
length).
Problem 4. (10points) Show that every infinite TM-recognizable language has an infinite
decidable subset.

More products