COMPILER DESIGN

LEXICAL ANALYSIS

REGULAR EXPRESSIONS AND FINITE AUTOMATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An automaton that presents output based on previous state or current input:
A
Acceptor
B
Classifier
C
Transducer
D
None of the mentioned.
Explanation: 

Detailed explanation-1: -Explanation: A transducer is an automaton that produces an output on the basis of what input has been given currently or previous state.

Detailed explanation-2: -Transformations to new states without consuming an input symbol are called lambda transitions or epsilon transitions. They are usually labeled with the Greek letter or .

Detailed explanation-3: -Deterministic Finite Automata (DFA). Non-Deterministic Finite Automata (NFA or NDFA).

Detailed explanation-4: -In automata theory, a transducer is an automaton with input and output; any Turing machine for computing a partial recursive function, as previously described, can stand as an example. An acceptor is an automaton without output that, in a special sense, recognizes or accepts words on the machine alphabet.

There is 1 question to complete.