COMPILER DESIGN

LEXICAL ANALYSIS

REGULAR EXPRESSIONS AND FINITE AUTOMATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Transition function maps.
A
* Q
B
Q * Q
C
*
D
Q *
Explanation: 

Detailed explanation-1: -In the case of a manifold, a transition function is a map from one coordinate chart to another. Therefore, in a sense, a manifold is composed of coordinate charts, and the glue that holds them together is the transition functions.

Detailed explanation-2: -Transition function : Q × → Q works as follows: For each state and for each symbol of the input alphabet, the function tells which (one) state to go to next. Specifically, if r ∈ Q and l ∈ , then (r, l) is the state that the DFA goes to when it is in state r and reads in l, e.g., (q2, a) = q3.

Detailed explanation-3: -A Deterministic Finite Automaton (DFA) is defined as a 5-tuple (Q, , , s, F) consisting of. A finite set Q (the set of states) A finite set of symbols (the input alphabet) A transition function : Q × → Q mapping the current state q ∈ Q and input symbol a ∈ to a new state (q, a) ∈ Q.

Detailed explanation-4: -A classical CA model in Q defines the transition system with the function of global transitions as . In this model, F(q)t = f(qt−1, qt, qt+1), where denotes the local transition function. To define the global transition function more explicitly, F(q, x) = f((q0, q1, q2), x1).

There is 1 question to complete.