Professional Documents
Culture Documents
Q1.What Is Automata ? Write Its Characterstics
Q1.What Is Automata ? Write Its Characterstics
Q1.What Is Automata ? Write Its Characterstics
- Automaton is nothing but a machine which accepts the strings of a language L over an input alphabet
Σ.
- It is the study of the abstract machine in theoretical computer science.
Characterstics of Automata:-
Inputs - It is a finite set of input symbols or sequences of symbols, {x1, x2, x3,...xk}, where k is the
number of inputs.
Outputs - It is a finite set of output symbols, {y1, y2, y3,...ym}, where m is the number of outputs.
States - It is a finite set, denoted by Q whose definition depends on the type of automaton.
Step 2 − Create a blank state table under possible input alphabets for the equivalent DFA.
Step 3 − Mark the start state of the DFA by q0 (Same as the NDFA).
Step 4 − Find out the combination of States {Q0, Q1,... , Qn} for each possible input alphabet.
Step 5 − Each time we generate a new DFA state under the input alphabet columns, we have to apply
step 4 again, otherwise go to step 6.
Step 6 − The states which contain any of the final states of the NDFA are the final states of the
equivalent DFA.
Q4.Deffirence between mealy and moore machine.
Moore Machine Mealy Machine
Output depends only upon the present state. Output depends on the present state as well
as present input.
Moore machine also places its output on the Mealy Machine places its output on the
transition. transition.
More states are required. Less number of states are required.
There is less hardware requirement for circuit There is more hardware requirement for
implementation. circuit implementation.
Output is placed on states. Output is placed on transitions.
Example:-
Grammar G2 −
Here,
ε is an empty string.
S ->aAb
aaAbb
aabb
Q6.What is Regular expression ? write down its rule.
- Regular Expressions are used to denote regular languages.
•If a ∈ Σ (Σ represents the input alphabets), a is regular expression with language {a}.
•If a and b are regular expression, a + b is also a regular expression with language {a,b}.
regular.