Give informal descriptions and state diagrams of pushdown automata for

Give informal descriptions and state diagrams of pushdown automata for the languages in Exercise 2.4.

Exercise 2.4.

Answer each part for the following context-free grammar G.

R → XRX | S

S → aT b | bT a

T → XTX | X | ε

X → a | b

a. What are the variables of G?

b. What are the terminals of G?

c. Which is the start variable of G?

d. Give three strings in L(G).

e. Give three strings not in L(G).

f. True or False: T ⇒ aba.

g. True or False: T ⇒* aba.

h. True or False: T ⇒ T .

i. True or False: T ⇒*T.

j. True or False: XXX ⇒* aba.

k. True or False: X ⇒* aba.

l. True or False: T ⇒* XX.

m. True or False: T ⇒* XXX.

n. True or False: S ⇒* ε.

o. Give a description in English of L(G).

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top