Let P be the following PDA with input alphabet
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

Let P be the following PDA with input alphabet

Q 9. (a) Let P be the following PDA with input alphabet {0, 1} and stack alphabet {0, }.


(i) Show how P processes each of the following input words, indicating whether each word is accepted or rejected. 

101     1011     1010111

(ii) Write down the language of P using set notation.

(iii) Show that the language of P is not regular.

(b) Consider the context-free grammar, G, with terminal symbols T = {〈,〉, :, x, y, z}, non-terminal symbols N = {σ, E}, starting symbol σ, and production rules


(i) Give a leftmost derivation for the word 〈〈x : y〉: y〉 in the grammar G.

(ii) The following PDA is designed to accept the language L(G) generated by G. The input alphabet is Σ = T and the stack alphabet is Γ = N ∪ T ∪ {}.


Show how this PDA accepts the input string 〈〈x : y〉 : y〉.

(iii) Is L(G) a regular language? Justify your answer.

Hint
ComputerThe input alphabet is Σ={i, d, z, w}. The control states are Q = {p0, p1,…, pn-1, pn-1, pn, q0, q1,…, qn-1, qn}. The stack alphabet is Γ = {Z, 0, 1}. The two states p0Z and q0Z of this MSA each mimic the machine M in the following sense. Patent ductus arteriosus (PDA) is a persistent opening between the two major blood vessels leading from the heart. The opening (ductus arteriosus) is a no...

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.