Unit5 - Subjective Questions

CSE322 • Practice Questions with Detailed Answers

1

Define a Pushdown Automaton (PDA). Explain its mathematical representation in detail.

2

Describe the basic model and physical components of a Pushdown Automaton (PDA).

3

What is an Instantaneous Description (ID) of a PDA? Explain the 'yields' relation (

).

4

Explain the two methods of acceptance by a Pushdown Automaton.

5

Discuss the equivalence of acceptance by final state and acceptance by empty stack in a PDA.

6

Differentiate between Deterministic Pushdown Automata (DPDA) and Non-Deterministic Pushdown Automata (NDPDA).

7

Explain the procedure to construct a PDA for a given Context-Free Grammar (CFG).

8

Describe the construction of a Context-Free Grammar (CFG) from a given Pushdown Automaton (PDA).

9

Prove that Context-Free Languages (CFLs) are closed under Union, Concatenation, and Kleene Closure.

10

Explain why Context-Free Languages (CFLs) are NOT closed under intersection and complementation. Provide a proof.

11

Construct a Pushdown Automaton (PDA) that accepts the language

by empty stack.

12

Construct a PDA for the language

where
is the reverse of
.

13

Construct a PDA for the language

. Explain why this machine is inherently non-deterministic.

14

Discuss the difference in computational power between Deterministic PDA (DPDA) and Non-Deterministic PDA (NPDA). Provide an example language to support your answer.

15

Define LL(k) grammars. Discuss their key properties and significance in parsing.

16

Define LR(k) grammars. Discuss their key properties and significance in parsing.

17

Differentiate clearly between Top-Down Parsing and Bottom-Up Parsing.

18

What are the FIRST and FOLLOW sets in Top-Down Parsing? Explain their significance in constructing an LL(1) parsing table.

19

Explain the operations of a Shift-Reduce Parser. What are the common conflicts that arise during its execution?

20

Explain the concepts of a "Handle" and "Handle Pruning" in Bottom-Up Parsing.