The concept of transitive closure is useful for the conversion of classical finite automata into regular expressions. In this paper, we generalize and extend the concept of transitive closure for the conversion of fuzzy automata into fuzzy regular expressions. We prove that, for a fuzzy automaton M where r is a fuzzy regular expression obtained using the proposed approach, L(M)=L(r). Finally, a numerical example illustrates this conversion.
The importance of regular expressions and finite automata is well known. The notion of fuzzy automata was first proposed in 1968 by Santos [9]. Regular expressions involving imprecision and vagueness are known as fuzzy regular expressions. They are widely used in various applications, such as control systems, databases, clinical monitoring, computing with words, pattern recognition, learning systems, discrete event systems, and descriptions of natural and programming languages [1, 27]. Fuzzy automata are a generalization of classical automata, closing the gap between classical automata theory and natural languages.
Zadeh [19] proposed the concept of fuzzy set theory in 1965. Wee and Fu [27] proposed the mathematical formulation of fuzzy automata. Mordeson and Malik [15] introduced the modern view of fuzzy automata and languages. To enhance the processing ability of fuzzy automata, membership values are extended to algebraic structures, such as lattice-ordered monoids [28, 30], complete residuated lattices [3], and other types of lattices. Li and Pedrycz [30] proved that fuzzy languages over an integral lattice-ordered monoid can be described using fuzzy regular expressions if and only if fuzzy finite automata can be designed for them.
Cao and Ezawa [4] introduced the concept of non-deterministic fuzzy automata and further proved that non-deterministic finite automata, non-deterministic finite automata with ɛ-moves, and deterministic finite automata are equivalent. A fuzzy automaton is an instance of weighted automata [21] with values taken from a lattice-ordered monoid rather than a more general semiring structure. Li [29] investigated the membership values of finite automata in a lattice to present a minimization algorithm for lattice-valued finite automata.
Several approaches for converting fuzzy regular expressions into fuzzy automata have been proposed in the literature. Stamenković and Ćirić [3] proposed an elegant method for the conversion of fuzzy regular expressions into fuzzy automata based on the concept of a position automaton. Similarly, Mendivil and Garitagoitia [16] described a method for constructing a fuzzy automaton with ɛ-moves from fuzzy regular expressions. Kumar and Kumar [23, 24] outlined a method for the conversion of fuzzy regular expressions into fuzzy automata based on the follow automata [20].
The literature describes various methods for converting deterministic finite automata into regular expressions (see refs [5, 25]). The most widely used constructions are transitive closure [14], state elimination [6], and Brzozowski algebraic methods [13]. In this paper, we propose an algorithm for the conversion of a fuzzy automaton into a fuzzy regular expression by extending the well-known concept of the transitive closure method [14] used for the conversion of deterministic finite automata into regular expressions.
The content of this paper is organized as follows. In Section 2, we briefly review lattice-ordered monoids, fuzzy regular expressions, and fuzzy automata. In Section 3, we describe a construction for the conversion of fuzzy automata into fuzzy regular expressions using the transitive closure method and establish the equivalence of fuzzy automata and fuzzy regular expressions. We provide a numerical example in support of our results in Section 4, with concluding remarks given in Section 5.
Preliminary concepts
This section is devoted to recalling basic concepts and notations used in the area of fuzzy automata. If we let X be an alphabet consisting of a finite set of symbols or letters, then X* is the free monoid equipped with the concatenation operation including the empty / null string (denoted by ɛ). A fuzzy language over X is a fuzzy subset of X*. In this paper, we use the concept of integral ℓ-monoid (L, ∧ , ∨ , ⊗ , 0, 1) for the formulation of fuzzy automata. Every word x ∈ X* has a degree of membership value in f given by f (x) ∈ L [4].
Definition 2.1: A lattice-ordered monoid or ℓ-monoid [3] (L, ∧ , ∨ , ⊗ , 0, 1) such that
(L, ∧ , ∨) is a lattice with least element 0 and greatest element 1.
(L, ⊗ , e) is a monoid with the unit element e.
For ∀x, y, z ∈ L,
For ∀x ∈ L, x ⊗ 0 =0 ⊗ x = 0
Definition 2.2: Integral ℓ-monoid [3] is a ℓ-monoid in which the unit element e and 1 coincide.
Definition 2.3: The family of fuzzy regular expression LR [30] over X is defined inductively as follows:
ɛ ∈ LR, (2a)
φ ∈ LR, (2b)
∀x ∈ X ; x ∈ LR, (2c)
∀λ ∈ L, r ∈ LR ; (λr) ∈ LR, (2d)
∀r1, r2 ∈ LR ; (r1 + r2) ∈ LR, (2e)
∀r1, r2 ∈ LR ; (r1r2) ∈ LR, (2f)
∀r ∈ LR ; (r*) ∈ LR . (2g)
There are no other fuzzy regular expressions than those in Definition 2.3.
Definition 2.4: The fuzzy language ||r|| [30] represented by the fuzzy regular expression r ∈ LR can be defined as follows:
||φ||=0, (3a)
For x ∈ X ∪ {ɛ} ; ||x|| = {x/1} , (3b)
For λ ∈ L, r ∈ LR ; ||λr|| = λ ⊗ r, (3c)
r1, r2 ∈ LR ; ||r1 + r2|| = ||r1|| + ||r2||, (3d)
r1, r2 ∈ LR ; ||r1r2|| = ||r1||||r2||, (3e)
r ∈ LR ; ||r*|| = ||r||* . (3f)
Definition 2.5: A fuzzy automaton M [4, 16] is a quintuple (Q, X, δ, σ, τ) where Q is a finite non-empty set of states, X is an alphabet, δ is a fuzzy subset of a fuzzy transition relation (Q × X × Q), σ represents initial fuzzy states and is a fuzzy subset of Q, and τ represents final fuzzy states and is a fuzzy subset of Q.
Definition 2.6: The fuzzy language L (M) [16] accepted by the fuzzy automaton M is defined by
For any word x ∈ X*, x = x1x2 … xn, ∃ xi ∈ X
Using composition operator on fuzzy relations [16]
For empty string
Fuzzy finite automata to fuzzy regular expressions using transitive closure
In this section, we use the transitive closure method for the conversion of fuzzy automata into fuzzy regular expressions. We consider the Kleene closure to have highest priority in a fuzzy regular expression, followed by concatenation and then addition or scalar. The algorithm FA _ FRE (M, r) converts a fuzzy automaton into a fuzzy regular expression.
Theorem 1:Given a fuzzy automatonM = (Q, X, δ, σ, τ), there exists a fuzzy regular expressionrobtained fromMusing the algorithmFA _ FRE (M, r) such thatL (M) = L (r).
Proof: Let |Q| = n. Rename the state names of M to the first n positive numbers {1, 2, …, n}. This theorem is established by starting with k = 0 and finally reaching k = n [14].
denotes the fuzzy regular expressions using the path from state i to state j such that no intermediate node in the path is greater than k.
Basis step: Consider that k = 0 means that no intermediate states are presenting.
For ∃i, j ∈ n, initialize
For each transition from state i to state j, the following three cases can occur:
Case 1: If there exists only one symbol a from state i to state j with membership value λ as delineated in Fig. 1, then
Case 2: If there are symbols a1, a2, …, al with respective memberships from state i to state j with membership values λ1, λ2, …, λl as delineated in Fig. 2, then
Case 3: If i = j
Induction step: Now, we consider the path from state i to state j such that the intermediate state is not higher than k. The following two cases can occur:
Case 1: If there exists no new path from state i to state j using intermediate state k [14], then
Case 2: The path from state i to state j can go through the intermediate state k. The fuzzy regular expression (as shown in Fig. 3) through intermediate state k can be found using
The first expression represents the fuzzy regular expression from state i to state k using an intermediate state from {1, 2, …, k - 1}.
The second expression represents the fuzzy regular expression from state k to state k using an intermediate state from {1, 2, …, k - 1}.
The third expression represents the fuzzy regular expression from state k to state j using an intermediate state from {1, 2, …, k - 1}.
Consider that the starting state q1 has the membership value and final state F = {ql, qm, …}. Consider the fuzzy membership value of the initial state to be σ (1).
The final fuzzy regular expression equivalent to the fuzzy automaton is as follows.
The proof of Theorem 1 is an enhancement of the transitive closure method [14] for the conversion of deterministic finite automata into regular expressions with the inclusion of the fuzziness concept. Further, we need to simplify the obtained intermediate fuzzy regular expressions at each iteration to obtain a smaller fuzzy regular expression.
Applications of the modified transitive closure method
In this section, the modified transitive closure method has been successfully applied to construct a fuzzy regular expression from the fuzzy automaton. This example is taken from [3, 16].
Example 1: Given the fuzzy automaton as shown in Fig. 4.
Final state with their membership values are {(P1/0.2) , (P3/1) , (P4/1)}.
Initially k = 0, following are the initial fuzzy regular expressions:
Final state with their membership values are {(P1/0.2) , (P3/1) , (P4/1)}.
Final states are {(P1/0.2) , (P3/1) , (P4/1)}
and final state is having membership 0.2.
and final state is having membership 1.
Final regular expression equivalent to fuzzy automaton
Concluding remarks and future work
From an experimental perspective, we have described an algorithm for the conversion of fuzzy automata into fuzzy regular expressions. This algorithm is founded on the concept of the transitive closure. Furthermore, we have proven that there exists a fuzzy regular expression r corresponding to the fuzzy automaton M such that L (r) = L (M). This method is computationally attractive, as demonstrated through the illustrative example. Fuzzy regular expressions are useful in the field of approximate patterns in text, in fuzzy string matching, and in the description of programming languages.
Several attempts have been made to achieve the conversion of fuzzy regular expressions into fuzzy automata; however, to the author’s best knowledge, no successful conversion of fuzzy automata into fuzzy regular expressions has been proposed thus far. In the future, we plan to convert fuzzy regular expressions into fuzzy automata using fewer states.
References
1.
HussainA. and ShabbirM., Soft finite state machine, Journal of Intelligent and Fuzzy System (2015). DOI: 10.3233/IFS-151642.
2.
KumarA. and VermaA.K., A novel algorithm for the conversion of shuffle regular expressions into non-deterministic finite automata, Maejo International Journal of Science and Technology7(3) (2013), 396–407.
3.
StamenkovićA. and ĆirićM., Construction of fuzzy automata from fuzzy regular expressions, Fuzzy Sets and Systems199 (2012), 1–27.
4.
Cao and EzawaNondeterministic fuzzy automata, Information Sciences191 (2012), 86–97.
DuD. and KoK., Problem Solving in Automata, Languages, and Complexity, John Wiley & Sons, New York, NY,
2001.
7.
QiuD., Supervisory control of fuzzy discrete event systems: A formal approach, IEEE Transactions on Systems, Man and Cybernetics-Part B35(1) (2005), 72–88.
8.
QiuD. and WangH., A probabilistic model of computing with words, Journal of Computer and System Sciences70(2) (2005), 176–200.
9.
SantosE.S., Maxmin automata, Information and Control13 (1968), 363–377.
10.
LinF. and YingH., Modeling and control of fuzzy discrete even systems, IEEE Transactions on Systems, Man and Cybernetics, Part B32(4) (2002), 408–415.
11.
NejadH.C., AzadbakhtB., AdenihvandK., MohammadiM. and MirzamohammadM., Fuzzy cellular learning automata for lesion detection in retina images, Journal of Intelligent and Fuzzy System27(5) (2014), 2297–2303.
12.
WangH. and QiuD., Computing with words via Turing machines: A Formal Approach, IEEE Transactions on Fuzzy Systems11(6) (2003), 742–753.
13.
BrzozowskiJ.A., Derivatives of regular expressions, Journal of the ACM11(4) (1964), 481–494.
14.
HopcroftJ.E. and UllmanJ.D., Introduction to Automata Theory, Languages and Computation, Addison-Wesley Publishing Company, Reading, MA,
1979.
15.
MordesonJ.N. and MalikD.S., Fuzzy Automata and Languages: Theory and Applications, Chapman & Hall/ CRC, Boca Raton, London, 2002.
16.
MendivilJ.R.G.D. and GaritagoitiaJ.R., A Comment on “Construction of fuzzy automata from fuzzy regular expressions”, Fuzzy Sets and Systems262 (2015), 102–110.
17.
SinghK., Conversion of deterministic finite automata to regular expression using bridge state, Thapar University, M.E. Thesis, 2011.
18.
ZadehL.A., Fuzzy languages and their relation to human and machine intelligence, Proceeding International Conference on Man and Computer, S Karger, Basel, 1971, pp. 130–165
.
19.
ZadehL.A., Fuzzy sets, Information Control8 (1965), 338–353.
20.
IlieL. and YuS., Follow automata, Information and Computation186(1) (2003), 140–162.
21.
DrosteM. and GastinP., Weighted automata and weighted logics, Theoretical Computer Science380 (2007), 69–86.
22.
YingM.S., A formal model of computing with words, IEEE Transactions on Fuzzy Systems10(5) (2002), 640–652.
23.
KumarR., Conversion of fuzzy regular expressions to fuzzy automata using the Follow automata, M.E. Thesis, Thapar University, 2014.
24.
KumarR. and KumarA., Metamorphosis of fuzzy regular expressions to fuzzy automata using the follow automata, arXiv preprint arXiv:411.2865, 2014.
25.
ChhabraT. and KumarA., Review Paper on Conversion of Deterministic Finite Automata to Regular Expressions, International Conference On Engineering Innovation and Technology, Nagpur, 2012, pp. 21–24.
26.
StańczykU., Decision rule length as a basis for evaluation of attribute relevance, Journal of Intelligent & Fuzzy Systems24(3) (2013), 429–445.
27.
WeeW.G. and FuK.S., A formulation of fuzzy automata and its application as a model of learning systems, IEEE Transactions on Systems Man and Cybernetics5(3) (1969), 215–223.
28.
LiY., A categorical approach to lattice-valued fuzzy automata, Fuzzy Sets and Systems157 (2006), 855–864.
29.
LiY., Finite automata theory with membership values in lattices, Information Sciences181(5) (2011), 1003–1017.
30.
LiY. and PedryczW., Fuzzy finite automata and fuzzy regular expressions with membership values in lattice-ordered monoids, Fuzzy Sets and System156(1) (2005), 68–92.