Professional Documents
Culture Documents
Q1: Defination Of: - Regular Language
Q1: Defination Of: - Regular Language
Q1: Defination Of: - Regular Language
. Regular Language.
. Context Free.
. Context Sensitive.
αAβ → αγβ
The unit productions are the productions in which one non-terminal gives
another non-terminal
. FA.
. NFA.
In NDFA, for a particular input symbol, the machine can move to any
combination of the states in the machine.
In other words, the exact state to which the machine moves cannot be
determined.
Components:
an input tape,
. LBA.
Here,
. TM.
After reading an input symbol, it is replaced with another symbol, its internal
state is changed, and it moves from one cell to the right or left
. MutliTape TM.
Multi-tape Turing Machines have multiple tapes where each tape is accessed
with a separate head.
At first, the first tape is occupied by the input and the other tapes are kept
blank.
Next, the machine reads consecutive symbols under its heads and the TM prints
a symbol on each tape and moves its heads.
. Ambiguous Grammar.
A CFG is said to ambiguous if there exists more than one derivation tree for the
given input string
i.e., more than one LeftMost Derivation Tree (LMDT) or RightMost Derivation
Tree (RMDT).
. Regular Expression.
The Kleene star, ∑*, is a unary operator on a set of symbols or strings, ∑, that
gives the infinite set of all possible strings of all possible lengths over ∑ including λ.
. Plus Closure.
The set ∑+ is the infinite set of all possible strings of all possible lengths over ∑
excluding λ.
. Regular Language.
. Context Free.
. FA.
Finite automata are used in text processing, compilers, and hardware design.
. NFA.
The finite automata are called NFA when there exist many paths for specific
input from the current state to the next state.
Every NFA is not DFA, but each NFA can be translated into DFA
. PDA.
A DFA can remember a finite amount of information, but a PDA can remember
an infinite amount of information.
. TM.
. MutliTape TM.
It covers much of the basics about Turing machines and how their displays are
different from other automata.
One such example is the language demonstrated in the one tape tutorial, L =
{anbncn}.
The latter being (mainly) concerned with the decidability and complexity of
problems, while the former offers one set of tools to approach this issue.
The single-tape Turing machines adopted for the simulation use a particular kind
of the tape, which is divided into tracks (multi-track tape).
In this way, if the tape has m tracks, the head is able to access (for reading
and/or writing) all the m characters on the tracks during a single operation
Multi-tape Turing Machines have multiple tapes where each tape is accessed
with a separate head.
At first, the first tape is occupied by the input and the other tapes are kept
blank.
For each symbolic representation of the alphabet, there is only one state
transition in DFA.
No need to specify how does the NFA react according to some symbol.
The Kleene star, ∑*, is a unary operator on a set of symbols or strings, ∑, that
gives the infinite set of all possible strings of all possible lengths over ∑ including λ.
The set ∑+ is the infinite set of all possible strings of all possible lengths over ∑
excluding λ.
Q4: How to Remove Ambiguity from PDA or Automata?
If the grammar has ambiguity, then it is not good for compiler construction.
but we can remove ambiguity by re-writing the whole grammar without ambiguity.
Two automata A and B are said to be equivalent if both accept exactly the same set of input
strings.
. SingleTape or MultiTape.
. TM or LBA.
. LBA or PDA.
. PDA or FA.