1th week introduction to theory of computation and DFA
1th week introduction to theory of computation and DFA
Input Think
No
▪ Undecidable
▪ The problem which can’t be solved mechanically
FA with FA without
output output
Moore Mealy
DFA NFA Ε-NFA
machine machine
0 0 0
0
0 0 0
0
▪ Q → set of all states. Q = {A, B, C, D}
1
▪ Σ → inputs. Σ= {0, 1}
▪ q0 → start state or initial state. q0 = A
1
▪ F → set of final state. F = {D}
▪ Δ → transition function which maps form Q * Σ → Q 0 1
A C B
B D A
C A D
D B C
Theory of Computation & Automata; collected by Tahiri 8/11/2023 12
▪ L1 = set of all strings that start with ‘0’
▪ L1 = {0, 00, 01, 000, 010, 011, 0000, …}
▪ L1 is an infinite set
0, 1
Dead state or
trap state
a a b b
b
a, b
a
b
Theory of Computation & Automata; collected by Tahiri 8/11/2023 22
▪ By flipping we means:
▪ Make the final state into non-final state and non-final state into final
a a b b
b
a, b
a
b
Theory of Computation & Automata; collected by Tahiri 8/11/2023 23
▪ How to figure out what a DFA recognizes?
0
1
0
1
0
1
0, 1
0, 1
X is the dead state
0
0, 1
0
1
Theory of Computation & Automata; collected by Tahiri 8/11/2023 25
THE END
Theory of Computation & Automata; collected by Tahiri 8/11/2023 26