You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: embedded-system-design/theory-of-computation/automata.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,15 +69,15 @@ Formal notation of the deterministic machines:
69
69
70
70
> [!TIP]
71
71
> Some vague terms are ought to be defined so far:
72
-
> 1)_The Language of the Automaton_: the set of all strings that the machine _M_ accepts, and is better be defined formally using the set builder notation (e.g.: $$L(M) = [s\ |\ s$$_is a string composed of the alphabets_$$\Sigma \land Rule_1 \land ...]$$).
72
+
> 1)_The Language of the Automaton_: the set of all strings that the machine _M_ accepts, and is better be defined formally using the set builder notation (e.g.: $$L(M) = \\{s\ |\ s$$_is a string composed of the alphabets_$$\Sigma \land Rule_1 \land ...\\}$$).
73
73
>
74
74
> 2)_Finite State Recognizers_: abstract machines used to determine whether a given input string belongs to a particular language, as defined by a formal grammar.
75
75
>
76
76
> 3)_State-State Relations_: are defined by the transition functions, which are functions in case of the deterministic machines and relations and/or partial functions in case of the non-deterministic machines.
77
77
>
78
-
> 4)_Deterministic Automaton (Revisited)_: a deterministic machine defines a unique transition function for each pair of state $q_i$ and input $\sigma_{i + 1}$; where $$i \in N$$ is the index of the current state in the collection $$Q$$, and $$(i + 1) \in N$$ is an arbitrary number representing the position of the input $$\sigma$$ in the collection $$\Sigma$$, the output of the function is deterministically the next state $q_{i + 1}$; where $$0 <= i < n$$ and $$n \in N$$ is an arbitrary number representing the index of the final accepting state; thus the following holds and can be used to define the set for the output states: $Q_{out} = [\bigcup_{i = 0}^{n - 1} \delta(q_i, \sigma_{i + 1}) \rightarrow [q_{i + 1}]] = [q \in Q | \delta(q_i, \sigma_{i + 1}) = q_{i + 1};\ where\ 0 <= i < n \land n \in N]$
78
+
> 4)_Deterministic Automaton (Revisited)_: a deterministic machine defines a unique transition function for each pair of state $q_i$ and input $\sigma_{i + 1}$; where $$i \in N$$ is the index of the current state in the collection $$Q$$, and $$(i + 1) \in N$$ is an arbitrary number representing the position of the input $$\sigma$$ in the collection $$\Sigma$$, the output of the function is deterministically the next state $q_{i + 1}$; where $$0 <= i < n$$ and $$n \in N$$ is an arbitrary number representing the index of the final accepting state; thus the following holds and can be used to define the set for the output states: $Q_{out} = \\{\bigcup_{i = 0}^{n - 1} \delta(q_i, \sigma_{i + 1}) \rightarrow \\{q_{i + 1}\\}\\} = \\{q \in Q | \delta(q_i, \sigma_{i + 1}) = q_{i + 1};\ where\ 0 <= i < n \land n \in N\\}$
79
79
>
80
-
> 5)_Non-deterministic Automaton (Revisited)_: a non-deterministic machine defines a non-unique transition function for each pair of state $q_i$ and input $\sigma_{i + 1}$, in other words the transition from the state $q_i$ with the input $\sigma_{i + 1}$ is not pre-determined, thus we can define the transition function as $$\delta (q_{i}, \sigma_{i + 1}) \rightarrow P(Q)$$; where $$P(Q)$$ is the power set of Q of cardinality $$|P(Q)| = 2^{|Q|}$$, and the set for the output states of this machine as $Q_{out} = [\bigcup_{i = 0}^{n - 1} \delta(q_i, \sigma_{i + 1}) \rightarrow P(Q)] = [q \in P(Q) | \delta(q_i, \sigma_{i + 1}) = q_{i + 1};\ where\ 0 <= i < n \land n \in N]$.
80
+
> 5)_Non-deterministic Automaton (Revisited)_: a non-deterministic machine defines a non-unique transition function for each pair of state $q_i$ and input $\sigma_{i + 1}$, in other words the transition from the state $q_i$ with the input $\sigma_{i + 1}$ is not pre-determined, thus we can define the transition function as $$\delta (q_{i}, \sigma_{i + 1}) \rightarrow P(Q)$$; where $$P(Q)$$ is the power set of Q of cardinality $$|P(Q)| = 2^{|Q|}$$, and the set for the output states of this machine as $Q_{out} = \\{\bigcup_{i = 0}^{n - 1} \delta(q_i, \sigma_{i + 1}) \rightarrow P(Q)\\} = \\{q \in P(Q) | \delta(q_i, \sigma_{i + 1}) = q_{i + 1};\ where\ 0 <= i < n \land n \in N\\}$.
81
81
>
82
82
> 6) A quick guess to a typical GNU/C99 prototype abstraction that models the automaton constructs; it essentially uses the _proof by construction_ to construct the automaton by putting the most peculiar rule in-mind; which states that _an automaton uses a limited memory and is a quintuple sequence_:
0 commit comments