1. The document discusses the theory of sequential machines and finite automata. It covers topics like sequential circuits, sequential machines, realization of sequential functions, reachable and observable states, and minimal realization.
2. The theory of automata originated from studies on abstract models of sequential circuits in 1956. A key paper on finite automata was published in 1959 and investigated relationships between inputs and outputs of state transition functions.
3. An alphabet is a finite set of symbols. A word is a finite string of zero or more symbols from the alphabet, where the same symbol can occur multiple times.
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Theory of Relations (2)
1. .
.
Theory of Relations (2)
Sequential Machines and Finite Automata
Course of Mathematics
Pusan National University
.
.. .
.
Yoshhiro Mizoguchi
Institute of Mathematics for Industry
Kyushu University, JAPAN
ym@imi.kyushu-u.ac.jp
November 3-4, 2011
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 1 / 34
2. Table of Contents
.
..
1 Sequential Machine
Preliminary
Reachable and Observable
Mimimal Realization
.
..
2 Finite Automata
Introduction to Theory of Automata
The Myhill-Nerode theorem
Minimal Realization
.
..
3 Applications of Relational Calculus to Theory of Automata
Nondeterministic Finite Automaton
Coproduct and Product Automaton
Reverse, Concatenate, Closure
Examples
.
..
4 References
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 2 / 34
3. Sequential Circuit (1)
1 2 0 1 0 2 0
0 1 0 0 1 1 0
dc S
c
Q
0 1 0 0 0 1 0
1 0 0 1 0 0 0
dc c
R
One of the elementary units of sequential circuits, the RS Flip-flop circuit
produces an output signal sequence according to the sequence of input
signals. Output signals are 1(on) or 0(o f f ) so we write the outputs as
Y = {0, 1}. There are two input signals S(et) and R(eset). We consider the
pair (SR) of S and R, and we denote 0 = (00), 1 = (01) and 2 = (10). So
we can consider the inputs as X = {0, 1, 2}.
The model of a sequential circuit consists of the state set Q = {a, b}, the
state transition function δ : Q × X → Q, and the output function
β : Q → Y.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 3 / 34
4. Sequential Circuit (2)
The table below is the value of δ and β. The figure is the state transition
diagram of the RS Flip-flop circuit.
q x δ(q, x)
a 0 a
a 1 a q β(q) 0or1 0or2
‡ ‡
a 2 b a 0 a/0 2E b/1
b 0 b b 1 i1
b 1 a
b 2 b
The labels of a vertex consists of a state and an output symbol. An edge
means a state transition and the label on an edge corresponds to the input
symbol.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 4 / 34
5. Sequential Circuit (3)
An sequential circuit can be considered as a function from an input word to
an output word. That is we can consider an sequential circuit as a function
f : X∗ → Y ∗ where X∗ is the set of words over X including an empty
string ε.
.
Problem .
..
Construct an algebraic model (Sequential Machine) of sequential
circuits using a state set, a state transition function and an output
function.
What kind of function from input words to output words is realizable
by a finite state sequential machine?
How to construct an efficient sequential machine with small number of
. states.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 5 / 34
6. Epi-Mono Factorization
A function F : X → Y from a set X to a set Y can be represented by a
composition F(x) = m(e(x)) (x ∈ X) of an injective function m : Z → Y
and an surjective function e : X → Z . The set Z is uniquely determined by
f up to isomorphism. That is Z F(X) = {F(x) ∈ Y | x ∈ X} and
Z X/ ∼ = {[x] | x ∈ X}, where the equivalent relation ∼ on X is defined
by [ x ∼ x′ ⇔ F(x) = F(x′ )] and [x] = {x′ ∈ X | x ∼ x′ } is a set of
equivalence class including x.
(Note)
A function e : X → Z is surjective if there exists an element x ∈ X satisfying
e(x) = z for any element z ∈ Z . A function m : Z → Y is injective if m(z1 ) m(z2 )
for any two elements z1 , z2 ∈ Z satisfying z1 z2 . We denote an injection by an
arrow with tail , and a surjective by an arrow with head .
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 6 / 34
7. Sequential Machine
.
Definition (Sequential Machine) .
..
A sequential mmachine is a sextuple M = (X, Q, δ, q0 , Y, β) where
X is the set of inputs,
Q is the set of states,
δ:Q×X →Q is the transition function,
q0 ∈ Q is the initial state,
Y is the set of outputs, and
. β:Q→Y is the output map.
.. .
.
(Note) This sequential machine (SM) is called Moore style SM. The Mealy style
SM is defined by an alternate output map λ : Q × X → Y insted of β. These two
model are equivalent. Mealy style does not have an output for the initial state, but
the rest of relations between inputs and outputs are mutually transformable.
We sometime define SM by pentad without an initial state.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 7 / 34
8. Run map and Response map
.
Definition (Run map) .
..
Let δ : Q × X → Q be a transition function. We define its run map to be
the unique map δ∗ : Q × X∗ → Q defined inductively by δ∗ (q, ε) = q, and
δ∗ (q, xw) = δ∗ (δ(q, x), w) ( q ∈ Q, x ∈ X, w ∈ X∗ ).
.
.. .
.
Let f : X∗ → Y be a function. We also define the function f∗ : X∗ → Y ∗
defined inductively by f∗ (ε) = f (ε), and f∗ (wx) = f∗ (w) f (wx) ( x ∈ X,
w ∈ X∗ ).
.
Definition (Response map) .
..
Let M = (X, Q, δ, q0 , Y, β) be a sequential machine. We define its
response map to be the map ( f M )∗ : X∗ → Y ∗ where f M : X∗ → Y is
defined by f M (w) = β(δ∗ (q0 , w)) (w ∈ X∗ ).
.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 8 / 34
9. Realization (1)
.
Definition .
..
Let t : X ∗ → Y ∗ be a function. If there exists a sequential machine M
such that t = ( f M )∗ , then M is called a realization of t .
.
.. .
.
We call t : X∗ → Y ∗ is realizable if there exisits a function f : X∗ → Y
such that t = f∗ .
.
Proposition .
..
A function t : X ∗ → Y ∗ is realizable if and only if for any w ∈ X ∗ , x ∈ X
there exists y ∈ Y such that t(wx) = t(w)y.
.
.. .
.
The condition is equivalent that the value t(wx) is depending on only w
and is not depending on x. We call a function t : X∗ → Y ∗ satisfying the
condition as a sequential function.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 9 / 34
10. Realization (2)
.
Proposition .
..
Let t : X∗ → Y ∗ be a sequential function. Then there exist a sequential
machine M which is a realization of t .
.
.. .
.
Let f : X∗ → Y be a function and t = f∗ . We introduce two kinds of
sequential machines which is a realization of t .
M I = (X, X∗ , δ I , ε, Y, f )
δ I (w, x) = wx (w ∈ X∗ , x ∈ X).
∗
MT = (X, Y X , δT , f, Y, βT )
∗
Y X is the set of all maps from X∗ to Y , that is { f | f : X∗ → Y},
δT ( f, x) : X∗ → Y is defined by δT ( f, x)(w) = f (xw) ( x ∈ X, w ∈ X∗ ),
∗
and βT ( f ) = f (ε) ( f ∈ Y X ).
We can verify easily f = f MI = f MT . We note that both M I and MT is not
a finite sequential machine. That is the state set is not a finite set.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 10 / 34
11. Finite Realization
.
Problem .
..
What kind of sequential function f : X ∗ → Y which have a finite state
realization?
.
.. .
.
The state sets of MT is infinite but the most of states are unreachable from
the initial state f . If the states reachable from f is finite, then we can
construct a finite sequential machine from MT . That is the condition to
∗
have a finite representation is that the set Z = {δ∗ ( f, w) ∈ Y X | w ∈ X∗ } is
T
finite.
∗
We define a function F : X∗ → Y X by F(w) = δ∗ ( f, w) (w ∈ X∗ ). F is
T
divided to the composition of a surjection and an injection. Since
Z = F(X∗ ), we have Z = X∗ / ∼ by the equivalence relation ∼ defined by
[w ∼ w′ ⇔ δ∗ ( f, w) = δ∗ ( f, w′ )]. We note δ∗ ( f, w)(z) = δ∗ ( f, w′ )(z) is
T T T T
f (wz) = f (w′ z) for any z ∈ X∗ .
If the number of the equivalence class is finite, then there exists a finite
realization.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 11 / 34
12. Reachable and Observable
Let M = (X, Q, δ, q0 , Y, β) be a sequential machine and its response map
∗
f M : X∗ → Y . We define F : X∗ → Y X by F(w) = δ∗ ( f M , w).
T ∗
F is divided into a composition of fe : X∗ → Q and f m : Q → Y X such
that
F(w) = f m( fe (w)),
where
fe (w) = δ∗ (q0 , w), and
f m(q)(w) = β(δ∗ (q, w)) (w ∈ X∗ , q ∈ Q).
If fe is a surjection then we call M as reachable.
If f m is an injection then we call M as obserbable or reduced.
We note that a reachable and obserbable sequential machine is
minimal representation of f M .
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 12 / 34
13. Minimal Realization
Let M = (X, Q, δ, q0 , Y, β) be a sequential machine. and F = f m ◦ fe .
∗
Assume fe : X∗ → Q is a surjection. If f m : Q → Y X is not an injection,
then we can construct a minimal realization using the epi-mono
factorization of f m.
The equivalence relation [ q ∼ q′ ⇔ f m(q) = f m(q′ )] on Q is that
f m(q)(w) = f m(q′ )(w) for any w ∈ X∗ . That is β(δ∗ (q, w)) = β(δ∗ (q′ , w)). If
Q is a finite set and |Q| = n, then it is sufficient to check the condition
β(δ∗ (q, w)) = β(δ∗ (q′ , w)) for finite number of words w with |w| n. So we
can check q ∼ q′ for any state q and q′ in finite steps, and we can
construct a minimal state sequential machine.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 13 / 34
14. Introduction to Theory of Automata
The first published study on automata [6] is the Automata studies in 1956
edited by C. E. Shanon who is famous as an originator of the information
theory and J. McCarthy who is a famous researcher of the fields artificial
intelligence.
At that time, they formalized an abstract model of a sequentil circuit and
investigated relationship between inputs and outputs analyzing a state
transition functions.
Once the notion of accept states is introduced, a machine is considered as
an acceptor and investigations of recognized language are started. This is
the origin of the theory of language and automata.
The first paper [4] about finite state automata is ’finite Automata and Their
Decision Problems’ by M. O. Rabin and D. Scott pubshed in 1959. They
were awarded an ACM Turing aword in 1976 for this research.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 14 / 34
15. Alphabet, Word, Concatenation
An alphabet is a finite, nonempty set. The elements of an plphabet are
feferred to as letters, or symbols. A word over an alphabet is a finite
string consisting of zero or more letters of the alphabet, in which the same
letter may occur several times. The string consisting of zero letters is
called the empty word, written ε. The length of a word w, denoted by |w|,
is the number of letters in w. Again by definition, |ε| = 0.
Let Σ be an alphabet. The set of all words over an alphabet Σ is denoted
by Σ∗ . The sets Σ∗ is infinite for any Σ. Algebraically speaking, Σ∗ is the
free monoid with the identity ε generated by Σ.
For words w1 and w2 , the juxtaposition w1 w2 is called the concatenation
of w1 and w2 . The empty word is an identity with respect to concatenation,
εw = wε = w holds for all word w.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 15 / 34
16. Kleene Closure
Subsets of Σ∗ are referred to as formal languages, or briefly, languages
over Σ.
The concatenation (or product) of two languages L1 and L2 is defined by
L1 L2 = {w1 w2 | w1 ∈ L1 , w2 ∈ L2 }.
The (Kleene) closure L∗ of a language L is defined to be the union of all
powers of L, that is L∗ = ∪∞ L n where L0 = {ε}, and L n = L n−1 · L
n=0
( n ≥ 1).
The closure of all words Σ is Σ∗ and there is no confusions defined as a
set of all words over Σ.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 16 / 34
17. Deterministic Automata (1)
.
Definition .
..
Deterministic Automata A determinisiic finite automaton is a pentad
M = (Σ, Q, δ, q0 , F) where
Σ is the alphabet,
Q is the finite set of states,
δ:Q×Σ→Q is the transition function,
q0 ∈ Q is the initial state, and
. F⊂Q is the set of accept states.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 17 / 34
18. Deterministic Automata (2)
s1 s2 · · · s n inputs
T E move head to right after a state transition
Controler( q)
Finite Automaton M
A finite automaton is illustrated as above figure. The input letters are on
input tape. The first state of controller is the initial state q0 . If the state is q
and input letter is s then the state is changed to δ(q, s). After changing the
state the head is moved to right. Repeating these procedures until the end
of an input word. If the head reached to the end of an input word, then
check the state is accept state or not.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 18 / 34
19. Recognized Language
Let δ : Q × Σ → Q be a state transition function. The function
δ∗ : Q × Σ∗ → Q is uniquely determined by δ∗ (q, ε) = q, and
δ∗ (q, wa) = δ(δ∗ (q, w), a) (w ∈ Σ∗ , a ∈ Σ).
.
Definition .
..
The recognized language L(M) ⊂ Σ∗ is defined by
L(M) = {w ∈ Σ∗ | δ∗ (q0 , w) ∈ F}.
L(M) is referred to as the language accepted by M.
.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 19 / 34
20. Example
.
Example .
..
Let M = (Q, Σ, δ, q0 , F) be a finite automaton where Q = {q0 , q1 , q2 },
F = {q1 }, q0 ∈ Q. The state transition function δ : Q × Σ → Q is defined
as follows
δ(q0 , a) = q1 , δ(q0 , b) = q2 ,
δ(q1 , a) = q2 , δ(q1 , b) = q0 ,
δ(q2 , a) = q2 , δ(q2 , b) = q2 .
For example, the word w = aba is acceptable δ∗ (q0 , aba)
= δ∗ (δ(q0 , a), ba) = δ∗ (q1 , ba) = δ∗ (δ(q1 , b), a) = δ∗ (q0 , a) = δ∗ (δ(q0 , a), ε)
= ∗
. δ (q1 , ε) = q1 ∈ F.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 20 / 34
21. State Transition Diagram
A finite automaton M is denoted by a following figure called state transition
diagram. Vertices are states and the initial state has an arrow without
label. According to the input letters follow arrows with same label with
input letter. The vertex corresponding to an accept state has double circle
and if the following the input letters ended at the vertices with double circle
then the input word is accepted.
a, b c
q0 ' b
q2 i
A
b q E
a
1
a
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 21 / 34
22. The Myhill-Nerode theorem (1)
.
Definition .
..
An equivalence relation ∼ on Σ∗ is said to be right invariant if
”w1 ∼ w2 ⇒ w1 z ∼ w2 z (∀z ∈ Σ∗ )” for any w1 , w2 ∈ Σ∗ .
An equivalence relation ∼ is finite index if the number of equivalence
classes is finite. That is {[x] | x ∈ Σ∗ } is finite set where
. [x] = {x′ | x ∼ x′ }.
.. .
.
Let L Σ∗ . We define a relation w1 ∼ L w2 on Σ∗ by
w1 z ∈ L ⇔ w2 z ∈ L (∀z ∈ Σ∗ ).
The relation ∼ L is a right invariant equivalent relation.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 22 / 34
23. The Myhil-Nerode theorem (2)
.
Theorem (Nerode) .
..
Let L Σ∗ be a language on Σ. Then, the following three conditions (1),
(2) and (3) are equivalent.
(1) The set L is acpted by some finite automaton.
(2) L is the union of some of the equivalent classes of a right invariant
equivalence relation of finite index.
(3) The right invariant equivalence relation ∼ L induced by L is of finite
. index.
.. .
.
Let L be the language L in (3) and Q = {[w] | w ∈ Σ ∗ }, δ([w], a) = [wa],
q0 = [ε], F = {[w] | w ∈ L}. Then M = (Q, Σ, δ, q0 , F) is a finite automaton
and L = L(M). Further, if L = L(M′ ) for some finite automata
M′ = (Q′ , Σ, δ′ , q′ , F′ ) then |Q| ≤ |Q′ |. That is M is a minimal state
0
automaton with L = L(M).
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 23 / 34
24. Minimal Realization
Let M = (X, Q, X, δ, q0 , Y, β) be a sequential machine and Y = {0, 1}.
There is an one-to-one coresspondence between an output map
β : Q → {0, 1} and a subset F = {q ∈ Q | β(q) = 1} of Q. That is a finite
automata is considered as a sequential machine with Y = {0, 1}.
A finite sequential machine is exactly a finite automaton. Further, a
function f : X∗ → Y is corresponde to a subset of X∗ that is a recognized
language.
In the previous section, we construct a minimal realization of f using an
equivalence relation w ∼ w′ defined by f (wz) = f (wz′ ) (∀z ∈ X∗ ). This is
the equivalence relation ∼ L induced by L.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 24 / 34
25. Example
.
Example (Minimalize) .
..
The automton M′ in right figure is the minimalized automaton of M in left
figure. We note p0 = {q0 , q2 }, p1 = {q1 , q3 }, and p2 = {q4 , q5 }.
.
.. .
.
35. b
j
$
q1 WB
$ X
a a
b B
a E
p2
a
M M′
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 25 / 34
36. Nondeterministic Finite Automaton
Let Σ be an alphabet, I one point set {∗}.
.
Definition (Kawahara 1988[3]) .
..
A nondeterministic finite automaton (NFA) M = (Q, τ, δ a (a ∈ Σ), β) is a
quadruple where
Q is a finite set of states,
τ:I⇁Q is the inital state relation,
δa : Q ⇁ Q is the set of state-transition relations, and
. β:Q⇁I is the final state relation.
.. .
.
For an input string w = σ1 σ2 · · · σ n ∈ Σ∗ (σi ∈ Σ, 1 ≤ i ≤ n, 0 n), the iterative
state-transition relation δw : Q ⇁ Q is defined by δw = δσ1 δσ2 · · · δσn .
.
Definition .
..
The language accepted by a NFA M is defined by
. L(M) = {w ∈ Σ∗ | τδw β♯ = id I }.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 26 / 34
37. Coproduct Automaton
.
Definition .
..
Let M = (Q, τ, δ a (a ∈ Σ), β) and M ′ = (Q′ , τ′ , δ′ (a ∈ Σ), β′ ) be NFAs. The
a
coproduct automaton of M and M′ is defined by
M + M′ = (Q + Q′ , τ, δ a (a ∈ Σ), β) where τ = τ ⊥ τ′ , δ a = δ a + δ′ , and
ˆ ˆ ˆ ˆ ˆ
a
β=β⊥β
ˆ ′.
.
.. .
.
.
Proposition .
..
Let M + M′ be the coproduct automaton of M and M′ . Then
(a) δw = δw + δ′ for w ∈ Σ∗ .
ˆ
w
(b) τδw β♯ = τδw β♯ ⊔ τ′ δ′ (β′ )♯ .
ˆˆ ˆ w
′ ′
. (c) L(M + M ) = L(M) ∪ L(M ).
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 27 / 34
38. Product Automatan
.
Definition .
..
Let M = (Q, τ, δ a (a ∈ Σ), β) and M ′ = (Q′ , τ′ , δ′ (a ∈ Σ), β′ ) be NFAs. The
a
product automaton of M and M ′ is defined by
M × M′ = (Q × Q′ , τ, δ a (a ∈ Σ), β) where τ = τ⊤τ′ , δ a = δ a × δ′ , and
ˆ ˆ ˆ ˆ ˆ
a
β = β⊤β
ˆ ′.
.
.. .
.
.
Proposition .
..
Let M + M′ be the coproduct automaton of M and M′ . Then
(a) δw = δw × δ′ for w ∈ Σ∗ .
ˆ
w
(b) τδw β♯ = τδw β♯ ⊓ τ′ δ′ (β′ )♯ .
ˆˆ ˆ w
′ ′
. (c) L(M × M ) = L(M) ∩ L(M ).
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 28 / 34
39. Reverse Automaton
.
Definition .
..
Let M = (Q, τ, δ a (a ∈ Σ), β) be a NFA. The reverse automaton of M is
♯
defined by M R = (Q, τ R , δ R (a ∈ Σ), β R ) where τ R = β, δ R = δ a and
a a
. = τ.
βR
.. .
.
.
Proposition .
..
Let M R be the reverse automaton of M. Then
(a) δw = (δwR )♯ where w R is a reverse string of w ∈ Σ∗ .
R
(b) τ R δw (β R )♯ = (τδwR β♯ )♯ .
R
. (c) L(M ) = L(M) where L(M) = {w | w ∈ L(M)}.
R R R R
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 29 / 34
40. Concatenate Automatan
.
Definition .
..
Let M = (Q, τ, δ a (a ∈ Σ), β) and M ′ = (Q′ , τ′ , δ′ (a ∈ Σ), β′ ) be NFAs. The
a
concatenate automaton of M and M ′ is defined by
M · M′ = (Q + Q′ , τ, δ a (a ∈ Σ), β) where γ = β♯ τ′ , τ = τ(i ⊔ γ j),
ˆ ˆ ˆ ˆ
ˆ a = i♯ δ a i ⊔ i♯ γδ′ j ⊔ j♯ δ′ j, and β = β′ (γ♯ i ⊔ j).
δ ˆ
. a a
.. .
.
The function δw : Q ⇁ Q′ (w ∈ Σ∗ ) is uniquely determined by δε = 0QQ′
o o
and δwa = (δw γ ⊔ δw )δ′ .
o o
w
.
Proposition .
..
Let M · M′ be the concatenate automaton of M and M′ . Then
(a) δw = i♯ δw i ⊔ i♯ δw j ⊔ j♯ δ′ j.
ˆ o
w
(b) δw γ ⊔ δw ⊔ γδ′ = ⊔w=uv δu γδ′ .
o
w v
(c) τδw (β)♯ = ∪w=uv τδu γδ′ (β′ )♯ .
ˆˆ ˆ v
′ ′
. (d) L(M · M ) = L(M) · L(M ).
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 30 / 34
41. Closure Automaton
.
Definition .
..
Let M = (Q, τ, δ a (a ∈ Σ), β) be a NFA. The coosure automaton of M + is
defined by M+ = (Q, τ, δ+ (a ∈ Σ), β) where γ = β♯ τ, and δ+ = (idQ ⊔ γ)δ a .
. a a
.. .
.
.
Proposition .
..
Let M+ be the closure automaton of M. Then
(a) δ+ = ⊔w=u1 ···u k ,u k
w ε,k0 δu1 γδu2 γ · · · γδu k for w ε.
(b) τδ+ β♯ = ⊔w=u1 ···u k ,k0 τδu1 γδu2 γ · · · γδu k β♯
w for w ε.
. (c) L(M+ ) = L(M)+ .
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 31 / 34
42. Examples
.
Proposition .
..
Let Mϕ = (I, τ, δ a (a ∈ Σ), β) be a NFS where β = 0 II . Then
L(Mϕ ) = ϕ.
Let Mε = (I, τ, δ a (a ∈ Σ), β)) be a NFS where τ = id I , δ a = 0 II
( a ∈ Σ), and β = id I . Then L(Mε ) = {ε}.
Let σ ∈ Σ and Mσ = (I + I, δ a (a ∈ Σ), β) where τ = i, δσ = i♯ j,
. δ a = 0 I+I,I+I ( a σ), and β = j. Then L(Mσ ) = {σ}.
.. .
.
The Kleene closure automaton of M is defined by M ∗ = Mε + M+ . Then
we have
T(M∗ ) = L(Mε + M+ ) = T(Mε ) ∪ T(M+ ) = {ε} ∪ T(M)+ = T(M)∗ .
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 32 / 34
43. Regular Language
.
Definition .
..
A language L ⊂ Σ∗ is a regular if there exists a NFA M such that
. = L(M).
L
.. .
.
.
Proposition .
..
Let L and L′ be regular languages. Then
L = ϕ, L = {ε} and L = {σ} (σ ∈ Σ) are regular languages.
Σ∗ − L, L R , L+ and L∗ are regular languages.
. L ∩ L′ , L ∪ L′ and L · L′ are regular languages.
.. .
.
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 33 / 34
44. References
[1] M.A.Arbib and E.G.Manes: Machines in a cagegory, an expository
introduction, SIAM Review, 16(1974), 163-192.
[2] J.E.Hopcroft and J.D.Ullman: Formal Languages and Their Relation to
Automata (2nd. Ed.), Addison-Wesley(2001).
[3] Y. Kawahara, Applications of relational calculus to computer
mathematics, Bulletin of Informatics and Cybernetics, 23(1988),
67-78.
[4] M.O.Rabin and D.Scott: Finite Automata and Their Decision
Problems, IBM Journal, 3(1959), 114-125.
[5] A. Salomaa: Computation and Automata, Cambridge University
Press(1985).
[6] C.E.Shannon and J.Mac Carthy (eds.): Automata Studies, Princeton
University Press(1956).
Y. Mizoguchi (Kyushu Univ.) Theory of Relations (2) Sequential Machines and Finite Automata
November 3-4, 2011 34 / 34