афтомат
афтомат
B) 2
2. C) 5
3. D) 5
4. B) Context Free Grammar
5. B) All the strings except epsilon
6. Regular
7. ε-closure of states
8. 2
9. 5-tuple
10. equal
12. Moore and Mealy Machines are finite-state machines with outputs. Moore
machine’s output depends only on states, while Mealy machine’s output depends on
both states and inputs.
13. DFA for ((a+b)(a+b))*: Construct a state transition diagram ensuring all
strings of even length are accepted.
14. DFA for even number of a’s and b’s: Construct a state machine tracking parity
of a’s and b’s with four states (even-even, even-odd, odd-even, odd-odd).
17. Non-Deterministic Finite Automata (NFA) allows multiple transitions for the
same input. Draw NFA for L = {aaa, bab, aababa, abbba}.
18. Regular expression for w, w%3 = 0 is (a+b)(a+b)(a+b)*. DFA will have three
states tracking mod 3 count of input length.
19. Convert given NFA to DFA by constructing a transition table and applying the
subset construction method.