Concatenation and Kleene Star on Deterministic Finite Automata

Concatenation and Kleene Star on Deterministic Finite Automata

Concatenation and Kleene Star on Deterministic Finite Automata GQ Zhang, Xiangnan Zhou, Robert Fraser, Licong Cui Department of EECS, Case School of Engineering Division of Medical Informatics, School of Medicine Case Western Reserve University Cleveland, Ohio, USA GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 1 / 9 Automata and Boolean Matrices b b a start 1 2 a 0 1 1 0 ∆a = ; ∆b = 1 0 0 1 ∆ = I; ∆abbba = ∆a∆b∆b∆b∆a GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 2 / 9 Automata and Boolean Matrices Each n-state DFA M = (Q; Σ; δ; q0; F) determines a matrix system f∆a j a 2 Σg, where ∆a is the (n × n) adjacency matrix of the a-labeled subgraph associated with the DFA. w For a string w = a1a2 ··· an over Σ, we write ∆ for the matrix product ∆a1 ∆a2 ··· ∆an . The language accepted by M, denoted w t L(M), is the set fw j Iq0 ∆ IF = 1g: The characteristic vector of a subset A of f1; ··· ; ng is the row n n vector IA 2 Bn such that the p-th component of IA is a 1 if and only if p 2 A. The characteristic vector of a singleton set fpg is written n t as Ip, or simply Ip. A column vector is the transpose () of a row vector. cf. GQ Zhang. Automata, Boolean matrices, and ultimate periodicity. Information and Computation, 152 (1): 138–154, 1999 GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 3 / 9 Example: Brzozowski’s derivation u−1L := fw j uw 2 Lg; show u−1 preserves regularity Suppose L is accepted by an n-state DFA M = (Q; Σ; δ; F), with f∆a j a 2 Σg its matrix system. Then a DFA accepting u−1L can be given as 0 0 0 0 0 M = (Q ; Σ; δ ; q0; F ), where 0 Q = fA j A 2 Bn×ng; 0 u q0 = ∆ ; δ0(A; a) = A∆a; 0 t F = fA j I1A IF = 1g: This approach can simulate inductive constructions such as Fibonacci numbers and polynomials (f (n) defined inductively in n) GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 4 / 9 Concatenation a a Suppose matrix systems f∆1 j a 2 Σg and f∆2 j a 2 Σg are associated with m- and n-state DFAs M1 = (Q1; Σ; δ1; F1) and M2 = (Q2; Σ; δ2; F2), respectively. The DFA M = (Q; Σ; δ; q0; F) Q = f(A; B) j A 2 Bm×m; B 2 Bm×ng; 0 q0 = (T ; T ); δ((A; B); a) = (A; B)∆a a a a (= (A∆1; A∆1T + B∆2)); F = f(A; B) j ImB It = 1g; 1 F2 ∆a ∆aT where ∆a = 1 1 for a 2 Σ, T = It In, and T 0 is the (m × m) a F1 1 0 ∆2 identity matrix, has the property that L(M) = L(M1) ◦ L(M2). GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 5 / 9 Lemma for Concatenation For the DFA M = (Q; Σ; δ; q0; F) Q = f(A; B) j A 2 Bm×m; B 2 Bm×ng; 0 q0 = (T ; T ); δ((A; B); a) = (A; B)∆a a a a (= (A∆1; A∆1T + B∆2)); F = f(A; B) j ImB It = 1g; 1 F2 suppose δ(q0; w) = (A; B) in M, and suppose w = a1 ··· a`. We have ` X a1a2···ai ai+1ai+2···a` B = ∆1 T ∆2 : i=0 GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 6 / 9 Kleene Star a Suppose the matrix system f∆1 j a 2 Σg is associated with an n-state DFA M = (Q ; Σ; δ ; F ). The DFA M = (Q; Σ; δ; q ; F) with H = It I 1 1 1 1 0 F1 1 and Q = fA j A 2 Bn×ng [ fsg; q0 = s; a 0 1 ∆1(H + H ); if q = s; δ(q; a) = a 0 1 A∆1(H + H ); if q = A; F = fA j I A It = 1g [ fsg; 1 F1 ∗ 1 0 has the property that L(M) = (L(M1)) . Here, H = H and H is the identity matrix. GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 7 / 9 Lemma for Kleene Star For the DFA M = (Q; Σ; δ; q ; F) with H = It I and 0 F1 1 Q = fA j A 2 Bn×ng [ fsg; q0 = s; a 0 1 ∆1(H + H ); if q = s; δ(q; a) = a 0 1 A∆1(H + H ); if q = A; F = fA j I A It = 1g [ fsg; 1 F1 we have (where ` =j w j) X w1 w2 wk i δ(s; w) = ∆1 H∆1 H ··· ∆1 H : w=w1···wk ;1≤k≤` wj 6=,1≤j≤k i=0;1 GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 8 / 9 Conclusion Operations on regular expressions can be directly translated to constructions on DFA. We obtained along the way a proof of the classical Kleene’s Theorem avoiding the use of NFA (using Arden’s Lemma in the other direction). Laws of Boolean matrices capture language operations inductively and algebraically. The “natural” constructions using matrix systems are also optimal in the usage of the number of (reachable) states, agreeing with known results in state complexity. See newton.case.edu/pub.html for more details GQ Zhang (Cleveland, Ohio, USA) Concatenation and Star on DFA LICS2011 9 / 9.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    9 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us