3.
(a)The differences between DFA and NFA are as follows :
DFA(Deterministic Finite Automata) | NFA(Non Deterministic Finite Automata) |
In DFA,conversion of regular expression to DFA is complex. | In NFA,the conversion of regular expression to NFA is easy when compared to DFA. |
DFA requires more memory for storing the state information. | NFA requires more computations to match with the regular expression input. |
Back tracking is allowed in DFA | Back tracking is not always allowed in NFA |
The integer for the next state is 1 | The integer for the next state can be either 0 or 1 |
All DFA's can be NFA's | All NFA's are not DFA's |
(c)
A PDA (Push Down Automata) can be defined as a state machine(finite) which consists of an additional stack in the storage.In short it can be described as a 7-tuple.The formal definition is as follows :
(d)
3. [20 points] Give short answers to each of the following parts. Each answer should be...
UueSLIORS! 1. Find the error in logic in the following statement: We know that a b' is a context-free, not regular language. The class of context-free languages are not closed under complement, so its complement is not context free. But we know that its complement is context-free. 2. We have proved that the regular languages are closed under string reversal. Prove here that the context-free languages are closed under string reversal. 3. Part 1: Find an NFA with 3 states...
Please answer c,d,f. also please explain the answers for me to
understand.
For each of the languages below, draw the state diagram for a nondeterministic finite automaton (NFA) to accept the language. In order to get full marks, your NFA must have the number of states specified, and it must take advantage of nondeterminism. [There must be at least one case where the machine has a choice between two or more next states on some input symbol, or a case...
1)
2) Give formal descriptions (5-tuples) for the DFAs shown in
figure below:
3) Give the state diagrams of DFAs recognizing the following
languages over ? = {0, 1}:
a) LÆ
b) L?
c) {e, 1001}
d) {e, 101, 1001}
e) {w : w has prefix 10}
f) {w : w does not contain the substring
011}
4) Give the state diagrams of DFAs recognizing the following
languages over ? = {0, 1}:
a) {w: |w| ? 5}
b) {w...