Pushdown Automata Is A Finite Automata With Extra Memory Called - 1
Pushdown Automata Is A Finite Automata With Extra Memory Called - 1
* The Turing machine is a real and theoretical computer that can be used to explore the limits
and extent of computing real numbers. The input is written on tape that the machine reads, and
contains a finite number of non-empty cells, a control head in an initial state, and a set of
instructions for the preceding states.
There are various features of the Turing machine:
. It has an external memory which remembers arbitrary long sequence of input.
. It has unlimited memory capability.
. The model has a facility by which the input at left or right on the tape can be read easily.
. The machine can produce a certain output based on its input. Sometimes it may be
required that the same input has to be used to generate the output. So in this machine, the
distinction between input and output has been removed.
* Difference between DFA and NFA :
DFA NFA
DFA stands for Deterministic Finite NFA stands for Nondeterministic
Automata. Finite Automata.
For each symbolic representation No need to specify how does the
of the alphabet, there is only one NFA react according to some
state transition in DFA. symbol.
DFA cannot use Empty String NFA can use Empty String
transition. transition.
DFA can be understood as one NFA can be understood as
machine. multiple little machines computing
at the same time.
In DFA, the next possible state is In NFA, each pair of state and
distinctly set. input symbol can have many
possible next states.
DFA is more difficult to construct. NFA is easier to construct.
DFA rejects the string in case it NFA rejects the string in the event
terminates in a state that is of all branches dying or refusing
different from the accepting state. the string.
Time needed for executing an Time needed for executing an
input string is less. input string is more.
All DFA are NFA. Not all NFA are DFA.
**
*The Pumping Lemma is a tool in formal language theory that demonstrates the non-regularity of
certain languages. For example, it shows that the language {0^n1^n} is not regular.
3) What is transition System or graph?
A transition graph or a transition system is a finite directed labelled graph in which each vertex
(or node) represents a state and the directed edges indicate the transition of a state and the
edges are labelled with input\output.
A typical transition system is shown in Fig. In the figure, the initial state is represented
by a circle with an arrow pointing towards it, the final state by two concentric circles, and the
other states are represented by just a circle. The edges are labelled by input/output (e.g. by 1/0
or 1/1). For example, if the system is in the state qo and the input 1 is applied, the system moves
to state q1 as there is a directed edge from q0 to q1 with label 1/0. It outputs O.
5) Define grammer ?
Constitute Of Grammar :
Grammar is basically composed of two basic elements –
1. Terminal Symbols –
Terminal symbols are those which are the components of the sentences generated using a
grammar and are represented using small case letter like a, b, c etc.
2. Non-Terminal Symbols –
Non-Terminal Symbols are those symbols which take part in the generation of the sentence but
are not the component of the sentence. Non-Terminal Symbols are also called Auxiliary Symbols
and Variables. These symbols are represented using a capital letter like A, B, C, etc.
Formal Definition of Grammar :
Any Grammar can be represented by 4 tuples – <N, T, P, S>
. Union Operation
. Concatenation
. Kleene closure
. Reversal operation
. Homomorphism
. Inverse Homomorphism
. Substitution
. init or prefix operation
. Quotient with regular language
. Cycle operation
2. Regular Languages
Regular languages are formal languages that regular expressions can describe and can also be
recognized by finite automata. They are used to define sets of strings, such as sequences of
characters or words, that follow specific patterns.
They are important in computer science and theoretical computer science because they form a
foundation for understanding the theory of computation and the design of compilers and other
software tools.