COMPILER DESIGN

LEXICAL ANALYSIS

REGULAR EXPRESSIONS AND FINITE AUTOMATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
PDA can be represented with the help of
A
Instantaneous description
B
Transition diagram
C
Transition table
D
All of these
Explanation: 

Detailed explanation-1: -Yes, a PDA can be represented using a transition diagram, transition table and an instantaneous description.

Detailed explanation-2: -The graphical representation of the PDA’s consists; The node corresponds to the states of the PDA. An arrow labeled Start indicates the start state, and doubly circled states are final or accepting as for finite automata. The arcs correspond to transition of the PDA in the following sense.

Detailed explanation-3: -Pushdown automata is a way to implement a CFG in the same way we design DFA for a regular grammar. A DFA can remember a finite amount of information, but a PDA can remember an infinite amount of information. Pushdown automata is simply an NFA augmented with an “external stack memory".

Detailed explanation-4: -A PDA consists of three main components: An input string or tape. A finite control unit. A stack for memory.

Detailed explanation-5: -A push down automata (PDA) is a way to implement a context free grammar (CFG) in a similar way to design the deterministic finite automata (DFA) for a regular grammar. A DFA can remember a finite amount of information but a PDA can remember an infinite amount of information. An input tape. A control unit.

There is 1 question to complete.