Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition)

Σχετικά έγγραφα
Homomorphism in Intuitionistic Fuzzy Automata

2 Composition. Invertible Mappings

A Note on Intuitionistic Fuzzy. Equivalence Relation

Ordinal Arithmetic: Addition, Multiplication, Exponentiation and Limit

Every set of first-order formulas is equivalent to an independent set

Congruence Classes of Invertible Matrices of Order 3 over F 2

Commutative Monoids in Intuitionistic Fuzzy Sets

C.S. 430 Assignment 6, Sample Solutions

HOMEWORK 4 = G. In order to plot the stress versus the stretch we define a normalized stretch:

Example Sheet 3 Solutions

EE512: Error Control Coding

Finite Field Problems: Solutions

Lecture 2: Dirac notation and a review of linear algebra Read Sakurai chapter 1, Baym chatper 3

ST5224: Advanced Statistical Theory II

Other Test Constructions: Likelihood Ratio & Bayes Tests

Fractional Colorings and Zykov Products of graphs

The challenges of non-stable predicates

derivation of the Laplacian from rectangular to spherical coordinates

4.6 Autoregressive Moving Average Model ARMA(1,1)

MINIMAL CLOSED SETS AND MAXIMAL CLOSED SETS

The Simply Typed Lambda Calculus

Homework 3 Solutions

Section 8.3 Trigonometric Equations

Nowhere-zero flows Let be a digraph, Abelian group. A Γ-circulation in is a mapping : such that, where, and : tail in X, head in

6.3 Forecasting ARMA processes

SCHOOL OF MATHEMATICAL SCIENCES G11LMA Linear Mathematics Examination Solutions

6.1. Dirac Equation. Hamiltonian. Dirac Eq.

Uniform Convergence of Fourier Series Michael Taylor

Matrices and Determinants

Reminders: linear functions

Statistical Inference I Locally most powerful tests

Approximation of distance between locations on earth given by latitude and longitude

Math221: HW# 1 solutions

1. Introduction and Preliminaries.

k A = [k, k]( )[a 1, a 2 ] = [ka 1,ka 2 ] 4For the division of two intervals of confidence in R +

Some new generalized topologies via hereditary classes. Key Words:hereditary generalized topological space, A κ(h,µ)-sets, κµ -topology.

Tridiagonal matrices. Gérard MEURANT. October, 2008

Phys460.nb Solution for the t-dependent Schrodinger s equation How did we find the solution? (not required)

Concrete Mathematics Exercises from 30 September 2016

SOME PROPERTIES OF FUZZY REAL NUMBERS

ORDINAL ARITHMETIC JULIAN J. SCHLÖDER

CHAPTER 25 SOLVING EQUATIONS BY ITERATIVE METHODS

Overview. Transition Semantics. Configurations and the transition relation. Executions and computation

Math 446 Homework 3 Solutions. (1). (i): Reverse triangle inequality for metrics: Let (X, d) be a metric space and let x, y, z X.

2. Let H 1 and H 2 be Hilbert spaces and let T : H 1 H 2 be a bounded linear operator. Prove that [T (H 1 )] = N (T ). (6p)

Lecture 2. Soundness and completeness of propositional logic

MINIMAL INTUITIONISTIC GENERAL L-FUZZY AUTOMATA

Generating Set of the Complete Semigroups of Binary Relations

Chapter 6: Systems of Linear Differential. be continuous functions on the interval

Lecture 15 - Root System Axiomatics

SCITECH Volume 13, Issue 2 RESEARCH ORGANISATION Published online: March 29, 2018

DIRECT PRODUCT AND WREATH PRODUCT OF TRANSFORMATION SEMIGROUPS

Homomorphism of Intuitionistic Fuzzy Groups

Απόκριση σε Μοναδιαία Ωστική Δύναμη (Unit Impulse) Απόκριση σε Δυνάμεις Αυθαίρετα Μεταβαλλόμενες με το Χρόνο. Απόστολος Σ.

Coefficient Inequalities for a New Subclass of K-uniformly Convex Functions

Inverse trigonometric functions & General Solution of Trigonometric Equations

On a four-dimensional hyperbolic manifold with finite volume

Problem Set 3: Solutions

Jesse Maassen and Mark Lundstrom Purdue University November 25, 2013

Sequent Calculi for the Modal µ-calculus over S5. Luca Alberucci, University of Berne. Logic Colloquium Berne, July 4th 2008

ω ω ω ω ω ω+2 ω ω+2 + ω ω ω ω+2 + ω ω+1 ω ω+2 2 ω ω ω ω ω ω ω ω+1 ω ω2 ω ω2 + ω ω ω2 + ω ω ω ω2 + ω ω+1 ω ω2 + ω ω+1 + ω ω ω ω2 + ω

w o = R 1 p. (1) R = p =. = 1

3.4 SUM AND DIFFERENCE FORMULAS. NOTE: cos(α+β) cos α + cos β cos(α-β) cos α -cos β

Fourier Series. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

Chapter 3: Ordinal Numbers

ANSWERSHEET (TOPIC = DIFFERENTIAL CALCULUS) COLLECTION #2. h 0 h h 0 h h 0 ( ) g k = g 0 + g 1 + g g 2009 =?

Space-Time Symmetries

Example of the Baum-Welch Algorithm

Srednicki Chapter 55

Chap. 6 Pushdown Automata

5. Choice under Uncertainty

Partial Differential Equations in Biology The boundary element method. March 26, 2013

New bounds for spherical two-distance sets and equiangular lines

F A S C I C U L I M A T H E M A T I C I

Parametrized Surfaces

Practice Exam 2. Conceptual Questions. 1. State a Basic identity and then verify it. (a) Identity: Solution: One identity is csc(θ) = 1

CRASH COURSE IN PRECALCULUS

A Bonus-Malus System as a Markov Set-Chain. Małgorzata Niemiec Warsaw School of Economics Institute of Econometrics

Intuitionistic Fuzzy Ideals of Near Rings

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 6/5/2006

12. Radon-Nikodym Theorem

Lecture 13 - Root Space Decomposition II

Solution Series 9. i=1 x i and i=1 x i.

Second Order RLC Filters

Areas and Lengths in Polar Coordinates

Cyclic or elementary abelian Covers of K 4

Section 7.6 Double and Half Angle Formulas

Areas and Lengths in Polar Coordinates

A Note on Characterization of Intuitionistic Fuzzy Ideals in Γ- Near-Rings

Exercises 10. Find a fundamental matrix of the given system of equations. Also find the fundamental matrix Φ(t) satisfying Φ(0) = I. 1.

SOLUTIONS TO MATH38181 EXTREME VALUES AND FINANCIAL RISK EXAM

Bounding Nonsplitting Enumeration Degrees

ΚΥΠΡΙΑΚΗ ΕΤΑΙΡΕΙΑ ΠΛΗΡΟΦΟΡΙΚΗΣ CYPRUS COMPUTER SOCIETY ΠΑΓΚΥΠΡΙΟΣ ΜΑΘΗΤΙΚΟΣ ΔΙΑΓΩΝΙΣΜΟΣ ΠΛΗΡΟΦΟΡΙΚΗΣ 19/5/2007

MATH423 String Theory Solutions 4. = 0 τ = f(s). (1) dτ ds = dxµ dτ f (s) (2) dτ 2 [f (s)] 2 + dxµ. dτ f (s) (3)

Econ 2110: Fall 2008 Suggested Solutions to Problem Set 8 questions or comments to Dan Fetter 1

Solutions to Exercise Sheet 5

Problem Set 9 Solutions. θ + 1. θ 2 + cotθ ( ) sinθ e iφ is an eigenfunction of the ˆ L 2 operator. / θ 2. φ 2. sin 2 θ φ 2. ( ) = e iφ. = e iφ cosθ.

SOLUTIONS TO MATH38181 EXTREME VALUES AND FINANCIAL RISK EXAM

Strain gauge and rosettes

Homomorphism and Cartesian Product on Fuzzy Translation and Fuzzy Multiplication of PS-algebras

Transcript:

Intern. J. Fuzzy Mathematical Archive Vol. 3, 2013, 58-67 ISSN: 2320 3242 (P), 2320 3250 (online) Published on 30 December 2013 www.researchmathsci.org International Journal of Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition) V. Ramaswamy 1 and K. Chatrapathy 2 1 Bapuji College of Engineering and Technology, VTU-Belgaum, India Email: researchwork04@yahoo.com 2 School of Engineering and Technology, JAIN University, India Email: kcpathy@yahoo.in Received 20 December 2013; accepted 28 December 2013 Abstract. In this paper, Myhill Nerode theorem of finite automaton has been extended to fuzzy automaton where the composition considered is min-max composition. In the case of max-min composition, it has already been proved that if L is a fuzzy regular language, then for any α [0, 1], L α = L (D α (M)) [3]. In the case of max-product composition L α is only a subset of L (D α (M)). But still Myhill Nerode theorem has been extended to max-product composition [4]. In the case of max-average composition, L α is not even contained in L (D α (M)). This lead to lots of challenges and we had to resort to splitting to prove the analogue of Myhill Nerode Theorem for max-average composition. In a similar line, an attempt has been made in this paper to study the behavior of fuzzy automata under min-max composition and to prove the analogue of Myhill Nerode Theorem for min - max composition. An algorithm to compute L(s) for any string s is also developed. Keywords: Monoid, min-max composition, finite automaton, equivalence class, fuzzy regular language, fuzzy automaton AMS Mathematics Subject Classification (2010): 68Q45, 68Q70 1. Introduction Let A be a finite non empty set. A fuzzy automaton over A is a 4-tuple M = (Q, f, I, F) where Q is a finite nonempty set, f is a fuzzy subset of Q x A x Q, I and F are fuzzy subsets of Q. In other words, f: Q x A x Q [0, 1] and I, F: Q [0, 1]. Let S be a free monoid with identity element e generated by A. If s S, then s can be written as a 1 a 2 a n where a i A. Here n is called the length of s and we write s = n. We now extend f to a function f * : Q x S x Q [0, 1] defined as f * (q, e, p) = 0 if q = p, 1 otherwise. f * (q, sa, p) = [ f * (q, s, r) f (r, a, p)] (s S, a A) r Q It can be shown that f* (q, a, p) = f (q, a, p) for all p, q Q and for all a A. 58

Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition) Definition 1.1. Let M = (Q, f *, I, F) be a fuzzy automaton over S. We define the language accepted by M denoted by L (M) to be a fuzzy subset of S defined as L (M) (s) = I o f s * o F for all s S. Here o denotes min-max composition. Definition 1.2. A fuzzy subset L of S is said to be a fuzzy regular language if L= L(M) where M is a fuzzy automaton over S. 2. Myhill Nerode Theorem for Fuzzy Automata Let S be a monoid with identity element e and L be a fuzzy subset of S. Then the following statements are equivalent. (i) L is a fuzzy regular language. (ii) L can be expressed as a fuzzy union L = (δ 1 ) L (δ 2 ) L (δ t ) L where δ 1, δ 2, δ t [0, 1]. For each i = 1,2 t, (δi) L = δi. L δi where L δi = U [s] δi. This union is a set theoretic union and [s] δi denotes the equivalence class of s of a right invariant equivalence relation of finite index in L δi. (iii) Define a relation R L as follows. If s, t ε S, then s R L t if and only if for all u S and for all α [0, 1], L(su) α only when L(tu) α. Then R L is a right invariant equivalence relation of finite index. Proof: (i) (ii) Since L is a fuzzy regular language, we have L = L (M) where M = (Q, f*, I, F) is a fuzzy automaton. Consider any α [0, 1]. With M and α, we associate a non-deterministic automaton D α (M) = (Q, d α, I α, F α ) where d α : Q x S 2 Q is defined as d α (q, s) = {p Q f* (q, s, p) α}, I α = {p Q I (p) α} and F α = {p Q F (p) α}. For the sake of simplicity, we will denote L (D α (M)) by L α (M). Let s L α. Then L(s) = L(M)(s) α. ie (I ο f s * ο F ) α which means [(f s * ο F) (p) I (p)] α p Q This means for any state p Q, I (p) α OR (f s * ο F) (p) α. This leads to the following three cases: Case A: I (p) α and (f s * ο F) (p) α Case B: I (p) < α and (f s * ο F) (p) α Case C: I (p) α and (f s * ο F) (p) < α We now consider each case separately. Case A: I (p) α and (f s * ο F) (p) α. In this case p I α. Now (f s * ο F) (p) α means [(f s *(p, r) F (r)] α r Q This leads to the following three cases: Case A 1 : f s * (p, r) α and F (r) α Case A 2 : f s * (p, r) α and F (r) < α Case A 3 : f s * (p, r) < α and F (r) α Case A 1 : f s * (p, r) = f* (p, s, r) α and F(r) α 59

V. Ramaswamy and K.Chatrapathy First alternative means r d α (p, s). F(r) α means r F α. Thus r d α (p, s) F α. Hence d α (p, s) F α φ where p I α. This proves that s L (Dα (M)) = Lα (M). (1) Case A 2 : f s * (p, r) α and F (r) < α Let F (r) = β < α. Then r F β. I (p) α > β means p I β. Also f s * (p, r) α > β means r d β (p, s). Thus r d β (p, s) and r F β so that d β (p, s) F β φ where p I β. This proves that s L (D β (M)) = L β (M). (2) Case A 3 : f s * (p, r) < α and F (r) α Let f s * (p, r) = γ < α. Then f*(p, s, r) = γ so that r d γ (p, s) F(r) α > γ means r F γ. I (p) α > γ means p I γ Thus r d γ (p, s) F γ so that d γ (p, s) F γ φ where p I γ. This proves that s L (D γ (M)) = L γ (M) (3) Case B: I (p) < α and (f s * ο F) (p) = [(f s *(p, r) F (r)] α. r Q This leads to the following three cases. Case B 1 : f s * (p, r) α and F (r) α Case B 2 : f s * (p, r) α and F (r) < α Case B 3 : f s * (p, r) < α and F (r) α Case B 1 : f s * (p, r) α and F (r) α. We already have I (p) < α. Let I (p) = λ < α. This implies p I λ. Now F (r) α > λ means r F λ and f s * (p, r) = f* (p, s, r) α > λ means r d λ (p, s). Thus r d λ (p, s) F λ so that d λ (p, s) F λ φ where p I λ. This proves that s L (D λ (M)) = L λ (M). (4).Case B 2 : f s * (p, r) α and F (r) < α. We already have I (p) < α. Let I (p) = ρ < α. Then p I ρ. Let F(r) = ϕ < α. Then r F ϕ. If ρ > ϕ, then I ρ I ϕ so that p I ϕ. Also f s * (p, r) = f* (p, s, r) α > ρ > ϕ which means r d ϕ (p, s). Thus there exists p I ϕ such that d ϕ (p, s) F ϕ φ. This proves that s L (D ϕ (M)) = L ϕ (M). (5) If ρ < ϕ, then r F ϕ F ρ Also f*(p, s, r) α > ρ implies r d ρ (p, s). I (p) = ρ means p I ρ. Thus r d ρ (p, s) F ρ so that d ρ (p, s) F ρ φ where p I ρ. This proves that s L (D ρ (M)) = L ρ (M). (6) Case B 3 : f s * (p, r) < α and F (r) α. We already have I (p) < α. Let I (p) = π < α. Then p I π and F(r) α > π implies r F π. Let f s * (p, r) = f*(p, s, r) = µ < α. If µ π, then F (r) α > µ implies r Fµ and f*(p, s, r) = µ means r d µ (p, s). Also I(p) = π µ means p I µ. Thus r d µ (p, s) Fµ so that d µ (p, s) Fµ φ where p I µ. This proves that s L (D µ (M)) = L µ (M). (7) If µ > π, then f*(p, s, r) = µ > π means r d π (p, s). Thus r d π (p, s) F π so that d π (p, s) F π φ where p Iπ. This proves that s L (D π (M)) = L π (M). (8) Case C: I (p) α and (f s * ο F) (p) < α. This implies f s * (p, r) < α and F (r) < α. 60

Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition) We already have I (p) α. Let f s * (p, r) = ν < α and F (r) = Ω < α. First assume that ν > Ω. Now F (r) = Ω means r F Ω. Also f*(p, s, r) = ν Ω means r d Ω (p, s). Hence d Ω (p, s) F Ω φ. Also I (p) α > ν > Ω means p I Ω. Hence s L (D Ω (M)) = L Ω (M). (9). Suppose ν < Ω. Now F (r) = Ω > ν means r F ν. f*(p, s, r) = ν means r d ν (p, s) so that d ν (p, s) F ν φ. Also I (p) α > ν means p I ν. Hence s L (D ν (M)) = L ν (M). (10) From (1), (2), (3), (4), (5), (6), (7), (8), (9), and (10) it follows that L α L α (M) L β (M) L γ (M) L λ (M) Lφ(M) Lρ (M) Lµ(M) L π(m) L Ω (M) L ν(m) L σ (M) L η (M) where α, β, γ, λ, φ, ρ, π, ν, Ω, µ, σ, η [0,1]. Since each of the languages L α (M), L β (M), L γ (M), L π (M) are fuzzy regular languages accepted by non-deterministic automata D α (M), D β (M), D γ (M), D π (M) respectively, Myhill Nerode theorem for finite automata is applicable for each automaton. Let Q = {q 0, q 1, q 2.. q n }. For every s S, the possible values of L(s) are I(q 0 ), I(q 1 ), I(q n ), f(q i, a j, q k ) (q i, q k Q, a j A), F(q 0 ), F(q 1 ), F(q n ). Denote these fixed values (after arranging them in non decreasing order) by δ 1, δ 2.δ t. So, there can be only finitely many values of L(s) (s S). Then δ 1, δ 2 δ t [0, 1] and for each δi (1 i t), L δi (L α (M) L β (M) L γ (M) L λ (M) Lφ(M) Lρ (M) Lµ(M) L π(m) L Ω (M) L ν(m) L σ (M) L η (M)) Since L (D δi (M)) is the language accepted by a finite automaton, by Myhill Nerode theorem for finite automata, it follows that there exists a right invariant equivalence relation R i of finite index. Let R i ' denotes it s restriction on L δi. Similarly, we obtain other restrictions like M i ', N i ', O i ', P i ', Q i ', S i ', T i ', U i ', V i ', W i ', X i ', and Y i ' from L (D αi (M), L (D βi (M), L (D γi (M), L (D λi (M), L (D ϕi (M)), L (D ρi (M)), L (D πi (M)), L (D νi (M)), L (D Ωi (M)), L (D µi (M)), L(D σi (M)), L(D ηi (M)) respectively. Note that M i ', N i ', O i ', P i ', Q i ', S i ', T i ', U i ', V i ', W i ', X i ', and Y i ' are all right invariant equivalence relations of finite index. Hence Z i' = M i ' N i ' O i ' P i ' Q i ' S i ' T i ' U i ' V i ' W i ' X i ' Y i ' is a right invariant equivalence relation in L δi of finite index. Let [s] δi denote the equivalence class of S under this equivalence relation. Since the equivalence classes partition L δi, it follows that L δi = [s] δi. Next we will prove the fact that L = (δ 1 ) L (δ 2 ) L (δ t ) L. Define (δ i ) L = δ i. L δi. If s S such that L(s) δ i (s L δi ), then (δ i ) L (s) = δ i. Otherwise, (δ i ) L (s) = 0. We note that each (δ i ) L is a fuzzy set. Let s S and assume that L(s) = δ i. Now L(s) = δ i δ i + 1 δ t. Again, L(s) = δ i δ i 1 δ 1. Hence ((δ 1 ) L (δ 2 ) L (δ t ) L ) (s) = (δ 1 ) L (s) (δ 2 ) L (s) (δ t ) L (s) = δ 1 δ 2 δ i = δ i = L (s). This proves that L = (δ 1 ) L (δ 2 ) L (δ t ) L. Proof: (ii) (iii). If s S, then s R L s because for all u S and for all α [0,1], L(su) α only when L(su) α is obviously true. This proves that R L is reflexive. Clearly, R L is symmetric. If s R L t and t R L v, then for all u S and for all α [0,1], L(su) α only when L(tu) α only 61

V. Ramaswamy and K.Chatrapathy when L(vu) α proving that s R L v. Hence R L is transitive. R L is thus an equivalence relation. To prove R L is right invariant, assume that s R L t and u S. We have to prove that su R L tu. For this, we have to prove that for all v S and α [0,1], L(suv) α only when L(tuv) α which is the same as saying that L(sz) α only when L(tz) α where z = uv. But this is true since s R L t. We will now prove that R L is of finite index. For i = 1,2,,t, let R i denote the right invariant equivalence relation of finite index in L δi. Let R = R 1 R 2 R t. Then R is an equivalence relation of finite index. We will prove that s R t implies s R L t. This will mean that index (R L ) index (R). Since index (R) is finite, this will prove that index(r L ) is also finite. Assume that s R t. Consider any u S and any α [0, 1]. Suppose su L α. We have to prove that tu L α. Now α L (su) = δ j (say). Then su L δj which is a subset of L α. By definition of R, we have s R j t. Since R j is right invariant, su R j tu. Since L δj = U [v] δj, it follows that su belongs to one of the equivalence classes of R j and hence tu also belongs to the same equivalence class. Hence tu L δj and since L δj is a subset of L α, we have tu L α. Proof: (iii) (i) We have to define a fuzzy automaton M such that L = L (M). For every element s S, let [s] denote the equivalence class of s under the equivalence relation R L. Let Q = {[s] / s S}. Since R L is of finite index, it follows that Q is a finite set. Define I: Q [0, 1], f*: Q x S x Q [0, 1] and F: Q [0, 1] as follows. I ([s]) = 0 if [s] = [e] = 1 otherwise. f*([s], t, [u]) = 1 if [u] = [st], 0 otherwise. F ([s]) = L(s). We will first prove that F is well defined. For this, we have to prove that if [s] = [t], then L (s) = L (t). Assume that L (s) = β. We will prove that L (t) = β. Since [s] = [t], s R L t so that L (s) = L (se) β only when L(t) = L (te) β. Since L(s) β, it follows that L[t] β. Assume L [t] = γ > β. Take η = (β + γ) / 2. Clearly, β < η < γ = L[t]. Since s R L t, L[t] > η implies that L[s] η > β. But this contradicts the fact that L(s) = β. Hence our assumption that L[t] > β is wrong. Since L[t] β, it follows that L[t] = β. Take M = (Q, I, f*, F). Then M is a fuzzy automaton and it remains to prove that L = L (M). For this, we have to prove that for all s S, L (s) = L (M) (s). We have L (M) (s) = I o f s * o F = {I ([t]) (f* s o F) ([t])} [t] (f* s o F) ([t]) = {f* s ([t], [u]) F([u])} [u] = {f* ([t], s, [u]) F([u])} [u] Note that f*([t], s, [u]) = 0 if [ts] = [u] and 1 otherwise. Therefore, in the above expression f*([t], s, [u]) = 0 only when [ts] = [u]. In all remaining cases (ie. whenever [ts] [u]) the term f* ([t], s, [u]) F([u]) becomes 1. Thus the above equation becomes 62

Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition) (f* s o F) ([t]) = F([u]) = L(ts) ( since F ([s]) = L(s)). Hence L (M)(s) = {I([t]) (f* s o F) ([t])} [t] Note that I([t]) = 0 only when [t] = [e], I([t]) = 1 whenever [t] [e]. Therefore, {I([t]) (f* s o F) ([t])} = 1 whenever [t] [e] and {I([t]) (f* s o F) ([t])} = (f* s o F) ([t]) when [t] = [e]. Thus the above equation becomes L (M)(s) = (f* s o F) ([t]) where [t] = [e]. = L(ts) ( by the above result ) = L(es) ( since I[t] = 0 when [t]=[e] and R L is a right invariant relation, [ts] = [es] ) = L(s) Thus for all s all s S, L (s) = L (M) (s). This proves that L = L (M). 3. Implementation The algorithm to compute L(s) = L(M)(s) for any string s of arbitrary length and any fuzzy automata M with any number of states is developed and implemented in C++. Following procedures are used to compute f * (q i, s, q j ) and L(s) for all s S and q i,, q j Q. Procedure MinMax(i,j,X,Y). This procedure computes and returns the min-max composition value of row-i of matrix X and column-j of matrix Y. X and Y are the n x n transition matrices, min, temp and r are temporary variables. 1. min = 2. for r = 0 to n-1 do 2.1 if (X[i][r] Y[r][j]) then temp = X[i][j] else temp = Y[i][j] 2.2 if (min>temp) then min=temp 3. return min Procedure computefstar (s). This procedure computes f* - matrix for the input string s and stores it in n x n matrix A. F0 and F1 are the transition matrices for the input symbols 0 and 1 respectively. The procedure call COPY(X, Y) copies the matrix X to matrix Y. B is the temporary matrix of size n x n. The procedure call computefstar(x, Y, Z) computes the f*- value for each pair (q i, q j ) Q x Q using transition matrices X, Y and stores the result in the matrix Z. 1. if (s[0]= 0 ) then COPY (A, F0) else COPY (A, F1) 2. for i = 1 to (length(s) 1) do if (s[i] = 0 ) computefstar(a, F0, B) else computefstar(a, F1, B) 63

else 3. COPY(A, B). 4. Exit V. Ramaswamy and K.Chatrapathy Procedure computefstarcompf(q). This procedure computes and returns (f* s o F)(q) value for a given state q Q. A is the f* s - matrix for the string s. 1. min = 2. for r = 0 to n-1 do 2.1 temp = MAX(A[p][r], F[r]) 2.2 if (temp < min ) then min = temp 3. return min Procedure computels. This procedure computes and returns L(s) value for a given string s. 1. min = 2. for p = 0 to n-1 do 2.1 temp = computefstarcompf( p ) 2.2 if (I [p] > temp ) then temp = I [p] 2.3 if (temp < min ) then min = temp 3. return min Procedure main( ). This procedure inputs the fuzzy automaton M = (Q, f, I, F), computes and returns L(s) value for a given input string s. F0, F1, n are transition matrix for 0, transition matrix 1 and number of states in Q respectively. Fe is the f*-matrix for e. I and F are array of size n. Ls stores the L(s) value of the input string s. 1. read number of states n 2. read arrays I and F 3. set f * e matrix Fe 4. read transition matrices F0, F1 5. ch = y 6. while ( ch = y ) do 6.1 Read input string s 6.2 A = computefstar(s) 6.3 Ls = computels( ) 6.4 Print transition matrix A 6.5 Print Ls 6.6 read input character ch = y to continue, ch = n to stop 7. Exit The program is tested for large number of fuzzy automata and strings of arbitrary length. 4. Example 64

Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition) Let Σ = {0, 1} and S = Σ*, the set of all strings over the alphabet Σ. Consider the fuzzy automaton M = (Q, f, I, F) where Q = {q 0, q 1, q 2 }, f is the fuzzy subset f: Q x Σ x Q [0, 1] defined as f (q 0, 0, q 0 ) = 0.0, f (q 0, 0, q 1 ) = 0.8, f (q 0, 0, q 2 ) = 0.6 f (q 1, 0, q 0 ) = 0.5, f (q 1, 0, q 1 ) = 0.0, f (q 1, 0, q 2 ) = 0.7 f (q 2, 0, q 0 ) = 0.3, f (q 2, 0, q 1 ) = 0.6, f (q 2, 0, q 2 ) = 0.0 f (q 0, 1, q 0 ) = 0.0, f (q 0, 1, q 1 ) = 0.6, f (q 0, 1, q 2 ) = 0.7 f (q 1, 1, q 0 ) = 0.5, f (q 1, 1, q 1 ) = 0.0, f (q 1, 1, q 2 ) = 0.8 f (q 2, 1, q 0 ) = 0.4, f (q 2, 1, q 1 ) = 0.2, f (q 2, 1, q 2 ) = 0.0 I = {q 0 } and F is the fuzzy subset of Q defined as F (q 1 ) = 0.4 and F (q 2 ) = 0.9. For any string w = sa of length two or more we will calculate f*(q i, w, q j ) as follows: f * (q, sa, p) = [ f * (q, s, r) f (r, a, p)] (s S, a A, q i, q j Q ) r Q After computing f*-matrix for a given string s, we will compute L(M)(s) as follows: L(M)(s) = I o f 0 * o F = [ I(p) (f s * o F) (p) ] p Q = [ I(q 0 ) (f s * o F) (q 0 ) ] [ I(q 1 ) (f s * o F) (q 1 ) ] [ I(q 2 ) (f s * o F) (q 2 ) ] = (f s * o F) (q 1 ) (f s * o F) (q 2 ) Therefore,for any string s S L(M)(s) = (f s * o F) (q 1 ) (f s * o F) (q 2 ) (11) (f s * o F) (q 1 ) = [F(r) f s *(q 1, r)] r Q = [F(q 0 ) f s *( q 1, q 0 )] [F(q 1 ) f s *( q 1, q 1 )] [F(q 2 ) f s *(q 1, q 2 )] = 0.4 f s *( q 1, q 0 ) [0.9 f s *( q 1, q 2 )] Therefore, for any string s S, (f s * o F) (q 1 ) = 0.4 f s *( q 1, q 0 ) [0.9 f s *( q 1, q 2 )]) (12) (f s * o F) (q 2 ) = [F(r) f s *( q 2,, r)] r Q = [F(q 0 ) f s *( q 2, q 0 )] [F(q 1 ) f s *( q 2, q 1 ) [F(q 2 ) f s *( q 2, q 2 )] = 0.9 f s *( q 2, q 0 )] [0.4 f s *( q 2, q 1 ) ] Therefore for any string s S, (f s * o F) (q 2 ) = 0.9 f s *( q 0, q 2 ) [0.4 f s *( q 1, q 2 ) ] (13) L (0) = L (M)(0) = I o f 0 * o F = (f 0 * o F) (q 1 ) (f 0 * o F) (q 2 ) = {0.4 f 0 *( q 1, q 0 ) [0.9 f 0 *( q 1, q 2 )] } { 0.9 f 0 *( q 2, q 0 ) [0.4 f 0 *( q 2, q 1 )]}= 0.3 Similarly, L(1) = 0.4 f 00 * (q 0, q 0 ) = f* (q 0, 00, q 0 ) = [f (q 0, 0, q 0 ) f (q 0, 0, q 0 )] [f (q 0, 0, q 1 ) f (q 1, 0, q 0 )] [f (q 0, 0, q 2 ) f (q 2, 0, q 0 )] = 0 65

V. Ramaswamy and K.Chatrapathy f 00 * (q 0, q 1 ) = f* (q 0, 00, q 0 ) = [f (q 0, 0, q 0 ) f (q 0,0,q 1 )] [f (q 0,0,q 1 ) f (q 1,0,q 1 )] [f (q 0, 0,q 2 ) f (q 2,0,q 1 )] = 0.6 * Similarly, the f - 00 matrix is computed as follows; f 00 * (q 0, q 0 ) = 0 f 00 * (q 0, q 1 ) = 0.6 f 00 * (q 0, q 2 ) = 0.6 f 00 * (q 1, q 0 ) = 0.5 f 00 * (q 1, q 1 ) = 0 f 00 * (q 1, q 2 ) = 0.6 f 00 * (q 2, q 0 ) = 0.3 f 00 * (q 2, q 1 ) = 0.6 f 00 * (q 2, q 2 ) = 0 L(00) = (f 00 * o F) (q 1 ) (f 00 * o F) (q 2 ) = {0.4 f 00 *(q 1,q 0 ) [0.9 f 00 *( q 1,q 2 )] } { 0.9 f 00 *( q 2, q 0 ) [0.4 f 00 *(q 2, q 1 ) ]} = {0.4 0.5 [0.9 0.6 ] } { 0.9 0.3 [0.4 0.6 ] } = 0.3 Using the program for the example fuzzy automata, f* s matrix and L(s) values are computed for various strings and the same values are checked using manual calculations. Both manually calculated values and computer results are tallied. Some of the L(s) values are as follows. L(0) = 0.3, L(1)=0.4, L(00)=L(01)=L(10)=0.3, L(11 ) = 0.4, L(000)=L(001)=... L(110) = 0.3, L(111) = 0.4, L(0000)=...L(1110)=0.3,L(1111)=0.4, L(00000000)=0.3, L(00001111)=0.3, L(11110000)=0.3, L(01011100)=0.3, L(11010110101)=0.3, L(0010101000011)=0.3, L(11010101001001101010001)=0.3, L(111111111111111)=0.4, L(1111111111111111)=0.4. It is found that L(s)=0.4 only when every symbol in s is 1. Otherwise, L(s)=0.3. The possible values of δ i (after arranging them in nondecreasing order) are 0.3, 0.4. Suppose 0 < α 0.3. Let D α (M) = M α denote the nondeterministic automaton corresponding to α. Then I α = { q 0 }, F α = { q1, q2 }, d α (q 0, s) = { p Q / f 0 * (q 0, s) 0.3 } = {q 1, q 2 } L (D α (M)) = {s S / there exists q I α such that (d α (q, s) F α) φ} = {s S / there exists q I 0.3 such that (d 0.3 (q, s) F 0.3) φ} = {0, 1} + L α = {s S / L(s) α} = {s S / L(s) 0.3} = {0,1} + L (D α (M)) = L α. Furthermore, [0] α = {0, 01, 10, 000, 001, 010, 110, 0000, 1110, 00000, 11110..} [1] α = { 1, 11, 111, 1111,..} L α = [s] α = [0] α [1] α. Suppose 0.3 < α 0.4. Let D α (M) = M α denote the nondeterministic automaton corresponding to α. Then I α = { q 0 }, F α = { q1, q2 }, d α (q 0, s) = { p Q / f 0 * (q 0, s) 0.4 } = {q1, q2} L (D α (M)) = {s S / there exists q I α such that (d α (q, s) F α) φ} = {s S / there exists q I 0.4 such that (d 0.4 (q, s) F 0.4) φ} = {0, 1} + L α = {s S / L(s) α} 66

Myhill Nerode Theorem for Fuzzy Automata (Min-max Composition) = {s S / L(s) 0.4} = {1} + L (D α(m)) L α. and also L α L (D α (M)). Furthermore, [1] α = {1, 11, 111, 1111 } L α = [ s ] α = [1] α. If α > 0.4, then there exists no corresponding nondeterministic automaton and L (D α (M)) = L α = φ. When α = 0.3 α L (s) = α if L(s) α, 0 otherwise. α L (0) = α L (00) = α L (01) = α L (10) = α L (000) = α L (110) = α L (0000) = α L (1110) =.. = 0.3 α L (1) = α L (11) = α L (111) = α L (1111) = α L (11111 111) = 0 When α = 0.4 α L (s) = α if L(s) α, 0 otherwise. α L (0) = α L (00) = α L (01) = α L (10) = α L (000) = α L (110) = α L (0000) = α L (1110) = 0 α L (1) = α L (11) = α L (111) = α L (1111) = α L (11111 111) = 0.4 L = α L where denotes fuzzy union. α [0, 1] ( α L ) (0) = α L (0) = 0.3 0 = 0.3 = L(0) ( α L ) (1) = α L (1) = 0 0.4 = 0.4 = L(1) Similarly, ( α L ) (s) = α L (s) = 0.3 0 = 0.3 = L(s) for all s S. This verifies L = α L 5. Results and Conclusions In this paper, Myhill Nerode theorem of finite automaton has been extended to fuzzy automaton where the composition considered is min-max composition. The algorithm to compute f*(q i, s, q j ) and L(s) is developed and implemented in C++. The program is tested with different fuzzy automata and strings of different lengths. In min-max composition, it is found that L α need not even be contained in L (D α (M)). Anyway, we have been able to prove the analogue of Myhill Nerode Theorem for fuzzy automata even for min-max composition. REFERENCES 1. Jiri Mockr, Fuzzy and non-deterministic automata, Research Report No. 8, University of Ostrava, Czech Republic, 1997. 2. V. Ramaswamy and H.A. Girijamma, An extension of Myhill Nerode theorem for fuzzy automata, Advances in Fuzzy Mathematics, 4(1) (2009) 41-47 3. V. Ramaswamy and H.A. Girijamma, Characterization of fuzzy regular languages, Intern. J. Computer Science and Network Security, 8(12) (2008) 306-308. 4. W.Cheng and Z.-W.Mo, Minimization algorithm of fuzzy finite automata, Fuzzy Sets and Systems, 141 (2004) 439-448. 5. J. E. Hopcroft and J. D. Ullman, Introduction to Automata Theory, Languages and Computation, Addison-Wesley Publishing, Reading, MA,1979. 6. Vivek Raich, Archana Gawande and Seema Modi, Fuzzy matrix solution for the study of teacher s evaluation, Intern. J. Fuzzy Mathematical Archive, 3 (2013) 9-15. 7. J.Boobalan and S.Sriram, The semi inverse of max-min product of fuzzy matrices, Intern. J. Fuzzy Mathematical Archive, 3 (2013) 23-27. 67