Minimization of Weighted Automata

Size: px
Start display at page:

Download "Minimization of Weighted Automata"

Transcription

1 Minimization of Weighted Automata Andreas Maletti Universitat Rovira i Virgili Tarragona, Spain Wrocław May 19, 2010 Minimization of Weighted Automata Andreas Maletti 1

2 In Collaboration with ZOLTÁN ÉSIK, University of Szeged, Hungary JOHANNA HÖGBERG, Umeå University, Sweden MARKUS HOLZER, Universität Giessen, Germany JONATHAN MAY, USC, Los Angeles, CA, USA HEIKO VOGLER, TU Dresden, Germany Minimization of Weighted Automata Andreas Maletti 2

3 Table of Contents 1 Quick Recall: Unweighted Automata 2 Weighted Automata 3 Weighted Tree Automata 4 Some Experimental Results Minimization of Weighted Automata Andreas Maletti 3

4 Quick Recall: Unweighted Automata Unweighted automata Example (Unweighted automaton) F J M B E I L Q A D H R P 0 C G 2 Minimization of Weighted Automata Andreas Maletti 4

5 Quick Recall: Unweighted Automata Unweighted automata (Cont d) Minimization methods HOPCROFT s algorithm for DFA O(m log n) [HOPCROFT 1971] TARJAN s algorithm for NFA O(m log n) (bisimulation minimization) [TARJAN 1987] NFA minimization is PSPACE-complete [JIANG, RAVIKUMAR 1993] Special cases Cover automata O(m log n) [KÖRNER 2002] Hyper-minimization O(m log n) [GAWRYCHOWSKI, JEŻ 2009; HOLZER, 2010] Minimization of Weighted Automata Andreas Maletti 5

6 Quick Recall: Unweighted Automata Unweighted automata (Cont d) Minimization methods HOPCROFT s algorithm for DFA O(m log n) [HOPCROFT 1971] TARJAN s algorithm for NFA O(m log n) (bisimulation minimization) [TARJAN 1987] NFA minimization is PSPACE-complete [JIANG, RAVIKUMAR 1993] Special cases Cover automata O(m log n) [KÖRNER 2002] Hyper-minimization O(m log n) [GAWRYCHOWSKI, JEŻ 2009; HOLZER, 2010] Minimization of Weighted Automata Andreas Maletti 5

7 Quick Recall: Unweighted Automata Minimization Procedures Hopcroft (for DFA) s 1 a t 1 s 2 a t 2 Tarjan (for NFA) Minimization of Weighted Automata Andreas Maletti 6

8 Quick Recall: Unweighted Automata Minimization Procedures Hopcroft (for DFA) s 1 a t 1 s 2 a t 2 Tarjan (for NFA) Minimization of Weighted Automata Andreas Maletti 6

9 Quick Recall: Unweighted Automata Minimization Procedures Hopcroft (for DFA) Tarjan (for NFA) s 1 a t 1 a s 2 a t 2 Minimization of Weighted Automata Andreas Maletti 6

10 Quick Recall: Unweighted Automata Minimization Procedures Hopcroft (for DFA) Tarjan (for NFA) s 1 a t 1 a s 2 a t 2 Minimization of Weighted Automata Andreas Maletti 6

11 Weighted Automata Table of Contents 1 Quick Recall: Unweighted Automata 2 Weighted Automata 3 Weighted Tree Automata 4 Some Experimental Results Minimization of Weighted Automata Andreas Maletti 7

12 Syntax Weighted Automata Example a/1 a/ a/1 Definition (Weighted automaton) (Q, Σ, µ, I, F) Q finite set of states Σ alphabet µ: Q Σ Q A I : Q A initial weights F : Q A final weights References BERSTEL, REUTENAUER: Rational series and their languages. Springer, 1988 KUICH, SALOMAA: Semirings, automata, languages. Springer, 1986 Minimization of Weighted Automata Andreas Maletti 8

13 Syntax Weighted Automata Example a/1 a/ a/1 Definition (Weighted automaton) (Q, Σ, µ, I, F) Q finite set of states Σ alphabet µ: Q Σ Q A I : Q A initial weights F : Q A final weights References BERSTEL, REUTENAUER: Rational series and their languages. Springer, 1988 KUICH, SALOMAA: Semirings, automata, languages. Springer, 1986 Minimization of Weighted Automata Andreas Maletti 8

14 Semantics Weighted Automata Weight structure: Semiring A = (A, +,, 0, 1) Example a/1 a/ a/1 Definition (Semantics) h µ : Σ A Q h µ (ε) q = I(q) h µ (wa) q = h µ (w) p µ(p, a, q) p Q Example (using natural numbers) ( ) 1 h µ (a) = h 1 µ (aa) = ( ) 2 1 h µ (aaa) = ( ) 3 2 Minimization of Weighted Automata Andreas Maletti 9

15 Semantics Weighted Automata Weight structure: Semiring A = (A, +,, 0, 1) Example a/1 a/ a/1 Definition (Semantics) h µ : Σ A Q h µ (ε) q = I(q) h µ (wa) q = h µ (w) p µ(p, a, q) p Q Example (using natural numbers) ( ) 1 h µ (a) = h 1 µ (aa) = ( ) 2 1 h µ (aaa) = ( ) 3 2 Minimization of Weighted Automata Andreas Maletti 9

16 Semantics Weighted Automata Weight structure: Semiring A = (A, +,, 0, 1) Example a/1 a/ a/1 Definition (Semantics) h µ : Σ A Q h µ (ε) q = I(q) h µ (wa) q = h µ (w) p µ(p, a, q) p Q Example (using natural numbers) ( ) 1 h µ (a) = h 1 µ (aa) = ( ) 2 1 h µ (aaa) = ( ) 3 2 Minimization of Weighted Automata Andreas Maletti 9

17 Semantics Weighted Automata Weight structure: Semiring A = (A, +,, 0, 1) Example a/1 a/ a/1 Definition (Semantics) h µ : Σ A Q h µ (ε) q = I(q) h µ (wa) q = h µ (w) p µ(p, a, q) p Q Example (using natural numbers) ( ) 1 h µ (a) = h 1 µ (aa) = ( ) 2 1 h µ (aaa) = ( ) 3 2 Minimization of Weighted Automata Andreas Maletti 9

18 Overview Weighted Automata Results Method Nondet. Det. Complexity Reference Pushing & HOPCROFT x O(m log n) MOHRI Forward Bisimulation x x O(m log n) BUCHHOLZ Backward Bisimulation x O(m log n) BUCHHOLZ Backward Simulation x O(mn) RANZATO,... Full minimization x x O(mn 2 ) BERSTEL,... Notation m: number of transitions n: number of states Minimization of Weighted Automata Andreas Maletti 10

19 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/3 a/2, b/3 b/ b/2 a/6 3 b/9 4 b/1 Minimization of Weighted Automata Andreas Maletti 11

20 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/3 a/2, b/3 b/ b/2 a/ b/3 3 b/1 Minimization of Weighted Automata Andreas Maletti 11

21 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/3 a/2, b/3 b/ b/2 3 a/2 3 b/3 4 b/1 Minimization of Weighted Automata Andreas Maletti 11

22 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/1 3 a/2, b/3 b/ b/2 3 a/2 3 b/3 4 b/1 Minimization of Weighted Automata Andreas Maletti 11

23 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/1 a/2, b/3 b/ b/2 a/2 3 b/3 4 b/1 Minimization of Weighted Automata Andreas Maletti 11

24 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/1 a/2, b/3 b/ b/2 a/2 3 b/3 4 b/1 Minimization of Weighted Automata Andreas Maletti 11

25 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) a/1 a/2, b/3 b/ b/2 3 a/2, b/3 Minimization of Weighted Automata Andreas Maletti 11

26 Weighted Automata Pushing & HOPCROFT [MOHRI] 1. Push Move weights toward the front 2. Minimize Minimize as unweighted automaton; treat weight as part of label Example (ala Eisner) 3 a/1, b/2 a/2, b/3 b/ Minimization of Weighted Automata Andreas Maletti 11

27 Weighted Automata Pushing & HOPCROFT [MOHRI] Prerequisites (ala EISNER) 1 Automaton deterministic 2 Semiring multiplicatively cancellative 3 Semiring allows greedy factorization Definition (Greedy factorization) There exists a mapping f : A 2 A such that for all a, b, c A with c 0: If a c and b c, then c a f (a, b) = c b f (b, a) a 1 f(a, b) 1 b 1 f(b, a) 1 Minimization of Weighted Automata Andreas Maletti 12

28 Weighted Automata Forward Bisimulation [BUCHHOLZ] Definition (Forward bisimulation) Equivalence relation on states such that F(p) = F(p ) and µ(p, a, r) = µ(p, a, r) r [q] r [q] for every p p, state q, and symbol a. Example 3 a/1 a/2, b/3 b/ b/2 a/1 3 a/1, b/3 4 b/1 Minimization of Weighted Automata Andreas Maletti 13

29 Weighted Automata Forward Bisimulation [BUCHHOLZ] Definition (Forward bisimulation) Equivalence relation on states such that F(p) = F(p ) and µ(p, a, r) = µ(p, a, r) r [q] r [q] for every p p, state q, and symbol a. Example 3 a/1 a/2, b/3 b/ b/2 a/1 3 a/1, b/3 4 b/1 Minimization of Weighted Automata Andreas Maletti 13

30 Weighted Automata Forward Bisimulation [BUCHHOLZ] Definition (Forward bisimulation) Equivalence relation on states such that F(p) = F(p ) and µ(p, a, r) = µ(p, a, r) r [q] r [q] for every p p, state q, and symbol a. Example 3 a/1 a/2, b/3 b/ b/2 3 a/2, b/3 Minimization of Weighted Automata Andreas Maletti 13

31 Weighted Automata Forward Bisimulation [BUCHHOLZ] Definition (Forward bisimulation) Equivalence relation on states such that F(p) = F(p ) and µ(p, a, r) = µ(p, a, r) r [q] r [q] for every p p, state q, and symbol a. Example 3 a/1 a/2, b/3 b/ b/2 3 a/2, b/3 Minimization of Weighted Automata Andreas Maletti 13

32 Weighted Automata Forward Bisimulation [BUCHHOLZ] Definition (Forward bisimulation) Equivalence relation on states such that F(p) = F(p ) and µ(p, a, r) = µ(p, a, r) r [q] r [q] for every p p, state q, and symbol a. Example 3 a/1, b/2 a/2, b/3 b/ Minimization of Weighted Automata Andreas Maletti 13

33 Weighted Automata Unweighted Forward Simulation [ABDULLA et. al.] Definition (Forward bisimulation unweighted) Reflexive, symmetric, and transitive relation on states such that F(p) = F(p ) and q q : µ(p, a, q) µ(p, a, q ) for every p p, state q, and symbol a. Minimization of Weighted Automata Andreas Maletti 14

34 Weighted Automata Unweighted Forward Simulation [ABDULLA et. al.] Definition (Forward bisimulation unweighted) Reflexive, symmetric, and transitive relation on states such that F(p) = F(p ) and q q : µ(p, a, q) µ(p, a, q ) for every p p, state q, and symbol a. Minimization of Weighted Automata Andreas Maletti 14

35 Weighted Automata Unweighted Forward Simulation [ABDULLA et. al.] Definition (Forward simulation) Pre-order on states such that F(p) F(p ) and q q : µ(p, a, q) µ(p, a, q ) for every p p, state q, and symbol a. Example 1 0 a/1 1 a/1, b/1 2 b/1 5 b/1 b/1 3 b/ Minimization of Weighted Automata Andreas Maletti 14

36 Weighted Automata Unweighted Forward Simulation [ABDULLA et. al.] Definition (Forward simulation) Pre-order on states such that F(p) F(p ) and q q : µ(p, a, q) µ(p, a, q ) for every p p, state q, and symbol a. Example 1 0 a/1 1 a/1, b/1 2 b/1 5 b/1 b/1 3 b/ Minimization of Weighted Automata Andreas Maletti 14

37 Weighted Automata Unweighted Forward Simulation [ABDULLA et. al.] Definition (Forward simulation) Pre-order on states such that F(p) F(p ) and q q : µ(p, a, q) µ(p, a, q ) for every p p, state q, and symbol a. Note Does in general not preserve the language! Minimization of Weighted Automata Andreas Maletti 14

38 Weighted Automata Backward Simulation [ABDULLA et. al.] Definition (Backward (bi)simulation) A forward (bi)simulation on the reversed automaton. Example a/1 a/ Theorem Reducing automaton by with a backward simulation preserves the language. 1 a/ Note Slightly more general than backward bisimulation. Minimization of Weighted Automata Andreas Maletti 15

39 Weighted Automata Backward Simulation [ABDULLA et. al.] Definition (Backward (bi)simulation) A forward (bi)simulation on the reversed automaton. Example a/1 a/ Theorem Reducing automaton by with a backward simulation preserves the language. 1 a/ Note Slightly more general than backward bisimulation. Minimization of Weighted Automata Andreas Maletti 15

40 Weighted Automata Full Minimization [BERSTEL et. al.] Requirements weight structure is a field Procedure prefix compression: select prefix-closed set W such that all h µ (w) with w W are linearly independent suffix compression References BERSTEL, REUTENAUER: Rational series and their languages. Springer, 1988 BERSTEL, REUTENAUER: Noncommutative Rational Series With Applications, Cambridge Univ. Press, 2010 Minimization of Weighted Automata Andreas Maletti 16

41 Weighted Automata Simulation vs. Equivalence Theorem Two equivalent automata can be joined by forward and backward bisimulation (and weight inversion). Extensions natural numbers integers rings,... References BERSTEL, REUTENAUER: Rational series and their languages. Springer, 1988 BEAL, LOMBARDY, SAKAROVITCH: On the Equivalence of Z-Automata, ICALP 2005 Minimization of Weighted Automata Andreas Maletti 17

42 Weighted Automata Simulation vs. Equivalence Theorem Two equivalent automata can be joined by forward and backward bisimulation (and weight inversion). Extensions natural numbers integers rings,... References BERSTEL, REUTENAUER: Rational series and their languages. Springer, 1988 BEAL, LOMBARDY, SAKAROVITCH: On the Equivalence of Z-Automata, ICALP 2005 Minimization of Weighted Automata Andreas Maletti 17

43 Weighted Tree Automata Table of Contents 1 Quick Recall: Unweighted Automata 2 Weighted Automata 3 Weighted Tree Automata 4 Some Experimental Results Minimization of Weighted Automata Andreas Maletti 18

44 Syntax Weighted Tree Automata Example (Transition) r σ q q p Definition (Weighted tree automaton) (Q, Σ, (µ k ) k N, F) Q finite set of states Σ ranked alphabet µ k : Q k Σ k Q A F : Q A final weights References BERSTEL, REUTENAUER: Recognizable formal power series on trees. Theor. Comput. Sci. 18, 1982 BORCHARDT: The theory of recognizable tree series. PhD thesis, 2004 Minimization of Weighted Automata Andreas Maletti 19

45 Weighted Tree Automata Syntax Illustration Example 3 6 f/0.3 f/ a/1 b/1 a/1 a/1 Minimization of Weighted Automata Andreas Maletti 20

46 Semantics Weighted Tree Automata Definition Let t T Σ (Q) and W = pos(t). Run on t: map r : W Q with r(w) = t(w) if t(w) Q Weight of r wt(r) = w W t(w) Σ Recognized tree series ( M, t) = µ k (r(w1),..., r(wk), t(w), r(w)) r run on t F(r(ε)) wt(r) Minimization of Weighted Automata Andreas Maletti 21

47 Semantics Weighted Tree Automata Definition Let t T Σ (Q) and W = pos(t). Run on t: map r : W Q with r(w) = t(w) if t(w) Q Weight of r wt(r) = w W t(w) Σ Recognized tree series ( M, t) = µ k (r(w1),..., r(wk), t(w), r(w)) r run on t F(r(ε)) wt(r) Minimization of Weighted Automata Andreas Maletti 21

48 Semantics Weighted Tree Automata Definition Let t T Σ (Q) and W = pos(t). Run on t: map r : W Q with r(w) = t(w) if t(w) Q Weight of r wt(r) = w W t(w) Σ Recognized tree series ( M, t) = µ k (r(w1),..., r(wk), t(w), r(w)) r run on t F(r(ε)) wt(r) Minimization of Weighted Automata Andreas Maletti 21

49 Weighted Tree Automata Semantics Illustration Example (Automaton) 3 6 f/0.3 f/ a/1 b/1 a/1 a/1 Example (Runs) Input tree: f Runs: 6 with weight 0 a b 1 2 Minimization of Weighted Automata Andreas Maletti 22

50 Weighted Tree Automata Semantics Illustration Example (Automaton) 3 6 f/0.3 f/ a/1 b/1 a/1 a/1 Example (Runs) Input tree: f Runs: f with weight a b a b Minimization of Weighted Automata Andreas Maletti 22

51 Weighted Tree Automata Semantics Illustration Example (Automaton) 3 6 f/0.3 f/ a/1 b/1 a/1 a/1 Example (Runs) Input tree: f Runs: f with weight 1 a b 1 b Minimization of Weighted Automata Andreas Maletti 22

52 Weighted Tree Automata Semantics Illustration Example (Automaton) 3 6 f/0.3 f/ a/1 b/1 a/1 a/1 Example (Runs) Input tree: f Runs: f with weight 1 a b 1 2 Minimization of Weighted Automata Andreas Maletti 22

53 Weighted Tree Automata Semantics Illustration Example (Automaton) 3 6 f/0.3 f/ a/1 b/1 a/1 a/1 Example (Runs) Input tree: f Runs: 3 with weight 0.3 a b 1 2 Minimization of Weighted Automata Andreas Maletti 22

54 Overview Weighted Tree Automata Results Method Nondet. Det. Complexity Reference Det. Minimization x O(rmn) Forw. Bisimulation x x O(rm log n) HÖGBERG,... Backw. Bisimulation x O(r 2 m log n) HÖGBERG,... Backw. Simulation x O(r 2 mn) ABDULLA,... Full minimization x x P BOZAPALIDIS Notation m: number of transitions n: number of states r: maximal rank of the input symbols Minimization of Weighted Automata Andreas Maletti 23

55 Weighted Tree Automata Forward Bisimulation [HÖGBERG, et. al.] Definition (Forward bisimulation) Equivalence relation on states such that F(p) = F(p ) and µ(..., p,..., a, r) = µ(..., p,..., a, r) r [q] r [q] for every p p, symbol a, and states q and.... Minimization of Weighted Automata Andreas Maletti 24

56 Weighted Tree Automata Backward Bisimulation [HÖGBERG, et. al.] Definition (Backward bisimulation) Equivalence relation on states such that µ(q 1,..., q k, a, p) = µ(q 1,..., q k, a, p ) q 1 q k B 1 B k q 1 q k B 1 B k for every p p, symbol a, and blocks B 1,..., B k. Minimization of Weighted Automata Andreas Maletti 25

57 Weighted Tree Automata Det. Minimization Overview Applicability Deterministic wta Commutative semifield (i.e. multiplicative inverses) Roadmap MYHILL-NERODE congruence relation [BORCHARDT 2003] Determine signs of life Refinement Minimization of Weighted Automata Andreas Maletti 26

58 Weighted Tree Automata MYHILL-NERODE congruence Definition p q: there exists nonzero a such that for every context C ( M, C[p]) = a ( M, C[q]) Notes Semifields are zero-divisor free Element a is unique if p is not dead Minimization of Weighted Automata Andreas Maletti 27

59 Weighted Tree Automata MYHILL-NERODE congruence Definition p q: there exists nonzero a such that for every context C ( M, C[p]) = a ( M, C[q]) Notes Semifields are zero-divisor free Element a is unique if p is not dead Minimization of Weighted Automata Andreas Maletti 27

60 Signs of Life Weighted Tree Automata Definition Sign of life of q Q: context C such that ( M, C[q]) 0 Example 6 3 f/0.3 f/ a/1 b/1 State Sign of life State Sign of life 1 f (, b) 2 f (1, ) 3 6 Minimization of Weighted Automata Andreas Maletti 28

61 Stages Weighted Tree Automata Definition Stage (Π, sol, f, r): (i) refinement of Π (ii) sol(f ) = { } (iii) for live q with p = r([q]) (iv) Π congruence ( M, sol(p)[q]) = f (q) ( M, sol(p)[p]) (v) for symbol σ and context C with live δ σ (C[q]) f (q) 1 c σ (C[q]) f (δ σ (C[q])) = c σ (C[p]) f (δ σ (C[p])) where δ σ : Q k Q and c σ : Q k A Minimization of Weighted Automata Andreas Maletti 29

62 Stages Weighted Tree Automata Definition Stable stage (Π, sol, f, r): (i) refinement of Π (ii) sol(f) = { } (iii) for live q with p = r([q]) (iv) Π congruence ( M, sol(p)[q]) = f (q) ( M, sol(p)[p]) (v) for symbol σ and context C with live δ σ (C[q]) f (q) 1 c σ (C[q]) f (δ σ (C[q])) = c σ (C[p]) f (δ σ (C[p])) where δ σ : Q k Q and c σ : Q k A Minimization of Weighted Automata Andreas Maletti 29

63 Weighted Tree Automata Refining a Stage Definition Refinement of (Π, sol, f, r): Partition Π with p Π q if (i) p Π q (ii) δ σ (C[p]) Π δ σ (C[q]) (iii) if δ σ (C[p]) is live, then f (p) 1 c σ (C[p]) f (δ σ (C[p])) = f (q) 1 c σ (C[q]) f (δ σ (C[q])) for states p and q, symbol σ, and context C Minimization of Weighted Automata Andreas Maletti 30

64 Weighted Tree Automata Complete Algorithm Algorithm (Π, sol, D) COMPUTESOL(M) 2: repeat (Π, sol, f, r) COMPLETE(M, Π, sol, D) 4: Π REFINE(M, Π, sol, f, r, D) until Π = Π 6: return minimized wta Notes Algorithm runs in O(rmn 4 ) Can be optimized to run in O(rmn) [ 2008] Returns equivalent minimal deterministic wta Minimization of Weighted Automata Andreas Maletti 31

65 Weighted Tree Automata Complete Algorithm Algorithm (Π, sol, D) COMPUTESOL(M) 2: repeat (Π, sol, f, r) COMPLETE(M, Π, sol, D) 4: Π REFINE(M, Π, sol, f, r, D) until Π = Π 6: return minimized wta Notes Algorithm runs in O(rmn 4 ) Can be optimized to run in O(rmn) [ 2008] Returns equivalent minimal deterministic wta Minimization of Weighted Automata Andreas Maletti 31

66 Weighted Tree Automata Simulation vs. Equivalence Theorem Two equivalent tree automata over fields can be joined by forward and backward bisimulation (and weight inversion). Extensions natural numbers integers rings,... References BOZAPALIDIS: Effective Construction of the Syntactic Algebra of a Recognizable Series on Trees. Acta Inf ÉSIK, : Simulations of weighted tree automata, 2010 Minimization of Weighted Automata Andreas Maletti 32

67 Weighted Tree Automata Simulation vs. Equivalence Theorem Two equivalent tree automata over fields can be joined by forward and backward bisimulation (and weight inversion). Extensions natural numbers integers rings,... References BOZAPALIDIS: Effective Construction of the Syntactic Algebra of a Recognizable Series on Trees. Acta Inf ÉSIK, : Simulations of weighted tree automata, 2010 Minimization of Weighted Automata Andreas Maletti 32

68 Some Experimental Results Table of Contents 1 Quick Recall: Unweighted Automata 2 Weighted Automata 3 Weighted Tree Automata 4 Some Experimental Results Minimization of Weighted Automata Andreas Maletti 33

69 Experiments Some Experimental Results State Count Original Minimal Reduction to % % % % % % State & Transition Count Error Original Minimal Reduction to 10 4 (727, 6485) (629, 6131) (87%, 95%) 10 2 (727, 6485) (525, 3425) (72%, 53%) Minimization of Weighted Automata Andreas Maletti 34

70 Experiments Some Experimental Results State Count Original Minimal Reduction to % % % % % % State & Transition Count Error Original Minimal Reduction to 10 4 (727, 6485) (629, 6131) (87%, 95%) 10 2 (727, 6485) (525, 3425) (72%, 53%) Minimization of Weighted Automata Andreas Maletti 34

71 The End Some Experimental Results Thank You! Minimization of Weighted Automata Andreas Maletti 35

Bisimulation Minimisation for Weighted Tree Automata

Bisimulation Minimisation for Weighted Tree Automata Bisimulation Minimisation for Weighted Tree Automata Johanna Högberg 1, Andreas Maletti 2, and Jonathan May 3 1 Department of Computing Science, Umeå University S 90187 Umeå, Sweden johanna@cs.umu.se 2

More information

Bisimulation Minimisation of Weighted Tree Automata

Bisimulation Minimisation of Weighted Tree Automata Bisimulation Minimisation of Weighted Tree Automata Johanna Högberg Department of Computing Science, Umeå University S 90187 Umeå, Sweden Andreas Maletti Faculty of Computer Science, Technische Universität

More information

Hyper-Minimization. Lossy compression of deterministic automata. Andreas Maletti. Institute for Natural Language Processing University of Stuttgart

Hyper-Minimization. Lossy compression of deterministic automata. Andreas Maletti. Institute for Natural Language Processing University of Stuttgart Hyper-Minimization Lossy compression of deterministic automata Andreas Maletti Institute for Natural Language Processing University of Stuttgart andreas.maletti@ims.uni-stuttgart.de Debrecen August 19,

More information

Compositions of Tree Series Transformations

Compositions of Tree Series Transformations Compositions of Tree Series Transformations Andreas Maletti a Technische Universität Dresden Fakultät Informatik D 01062 Dresden, Germany maletti@tcs.inf.tu-dresden.de December 03, 2004 1. Motivation 2.

More information

The Power of Tree Series Transducers

The Power of Tree Series Transducers The Power of Tree Series Transducers Andreas Maletti 1 Technische Universität Dresden Fakultät Informatik June 15, 2006 1 Research funded by German Research Foundation (DFG GK 334) Andreas Maletti (TU

More information

Hierarchies of Tree Series TransducersRevisited 1

Hierarchies of Tree Series TransducersRevisited 1 Hierarchies of Tree Series TransducersRevisited 1 Andreas Maletti 2 Technische Universität Dresden Fakultät Informatik June 27, 2006 1 Financially supported by the Friends and Benefactors of TU Dresden

More information

Myhill-Nerode Theorem for Recognizable Tree Series Revisited?

Myhill-Nerode Theorem for Recognizable Tree Series Revisited? Myhill-Nerode Theorem for Recognizable Tree Series Revisited? Andreas Maletti?? International Comper Science Instite 1947 Center Street, Suite 600, Berkeley, CA 94704, USA Abstract. In this contribion

More information

Backward and Forward Bisimulation Minimisation of Tree Automata

Backward and Forward Bisimulation Minimisation of Tree Automata Backward and Forward Bisimulation Minimisation of Tree Automata Johanna Högberg Department of Computing Science Umeå University, S 90187 Umeå, Sweden Andreas Maletti Faculty of Computer Science Technische

More information

Learning Deterministically Recognizable Tree Series

Learning Deterministically Recognizable Tree Series Learning Deterministically Recognizable Tree Series Frank Drewes Heiko Vogler Department of Computing Science Department of Computer Science Umeå University Dresden University of Technology S-90187 Umeå,

More information

Backward and Forward Bisimulation Minimisation of Tree Automata

Backward and Forward Bisimulation Minimisation of Tree Automata Backward and Forward Bisimulation Minimisation of Tree Automata Johanna Högberg 1, Andreas Maletti 2, and Jonathan May 3 1 Dept. of Computing Science, Umeå University, S 90187 Umeå, Sweden johanna@cs.umu.se

More information

Compositions of Bottom-Up Tree Series Transformations

Compositions of Bottom-Up Tree Series Transformations Compositions of Bottom-Up Tree Series Transformations Andreas Maletti a Technische Universität Dresden Fakultät Informatik D 01062 Dresden, Germany maletti@tcs.inf.tu-dresden.de May 17, 2005 1. Motivation

More information

PUSHING FOR WEIGHTED TREE AUTOMATA DEDICATED TO THE MEMORY OF ZOLTÁN ÉSIK ( )

PUSHING FOR WEIGHTED TREE AUTOMATA DEDICATED TO THE MEMORY OF ZOLTÁN ÉSIK ( ) Logical Methods in Computer Science Vol. 14(1:5)2018, pp. 1 16 https://lmcs.episciences.org/ Submitted Feb. 02, 2017 Published Jan. 16, 2018 PUSHING FOR WEIGHTED TREE AUTOMATA DEDICATED TO THE MEMORY OF

More information

arxiv: v1 [cs.fl] 12 May 2010

arxiv: v1 [cs.fl] 12 May 2010 Simulations of Weighted Tree Automata Zoltán Ésik 1, and Andreas Maletti 2, arxiv:1005.2079v1 [cs.fl] 12 May 2010 1 University of Szeged, Department of Computer Science Árpád tér 2, 6720 Szeged, Hungary

More information

Theory and Applications of Tree Languages

Theory and Applications of Tree Languages Contributions to the Theory and Applications of Tree Languages Johanna Högberg Ph.D. Thesis, May 2007 Department of Computing Science Umeå University Department of Computing Science Umeå University SE-901

More information

An n log n Algorithm for Hyper-Minimizing States in a (Minimized) Deterministic Automaton

An n log n Algorithm for Hyper-Minimizing States in a (Minimized) Deterministic Automaton An n log n Algorithm for Hyper-Minimizing States in a (Minimized) Deterministic Automaton Markus Holzer 1, and Andreas Maletti 2, 1 nstitut für nformatik, Universität Giessen Arndtstr. 2, 35392 Giessen,

More information

Statistical Machine Translation of Natural Languages

Statistical Machine Translation of Natural Languages 1/26 Statistical Machine Translation of Natural Languages Heiko Vogler Technische Universität Dresden Germany Graduiertenkolleg Quantitative Logics and Automata Dresden, November, 2012 1/26 Weighted Tree

More information

Equational Theory of Kleene Algebra

Equational Theory of Kleene Algebra Introduction to Kleene Algebra Lecture 7 CS786 Spring 2004 February 16, 2004 Equational Theory of Kleene Algebra We now turn to the equational theory of Kleene algebra. This and the next lecture will be

More information

What we have done so far

What we have done so far What we have done so far DFAs and regular languages NFAs and their equivalence to DFAs Regular expressions. Regular expressions capture exactly regular languages: Construct a NFA from a regular expression.

More information

RELATING TREE SERIES TRANSDUCERS AND WEIGHTED TREE AUTOMATA

RELATING TREE SERIES TRANSDUCERS AND WEIGHTED TREE AUTOMATA International Journal of Foundations of Computer Science Vol. 16, No. 4 (2005) 723 741 c World Scientific Publishing Company RELATING TREE SERIES TRANSDUCERS AND WEIGHTED TREE AUTOMATA ANDREAS MALETTI

More information

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed

HKN CS/ECE 374 Midterm 1 Review. Nathan Bleier and Mahir Morshed HKN CS/ECE 374 Midterm 1 Review Nathan Bleier and Mahir Morshed For the most part, all about strings! String induction (to some extent) Regular languages Regular expressions (regexps) Deterministic finite

More information

Weighted Tree-Walking Automata

Weighted Tree-Walking Automata Acta Cybernetica 19 (2009) 275 293. Weighted Tree-Walking Automata Zoltán Fülöp and Loránd Muzamel Abstract We define weighted tree-walking automata. We show that the class of tree series recognizable

More information

DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY

DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY International Journal of Foundations of Computer Science Vol. 16, No. 5 (2005) 975 984 c World Scientific Publishing Company DESCRIPTIONAL COMPLEXITY OF NFA OF DIFFERENT AMBIGUITY HING LEUNG Department

More information

Pure and O-Substitution

Pure and O-Substitution International Journal of Foundations of Computer Science c World Scientific Publishing Company Pure and O-Substitution Andreas Maletti Department of Computer Science, Technische Universität Dresden 01062

More information

COMP4141 Theory of Computation

COMP4141 Theory of Computation COMP4141 Theory of Computation Lecture 4 Regular Languages cont. Ron van der Meyden CSE, UNSW Revision: 2013/03/14 (Credits: David Dill, Thomas Wilke, Kai Engelhardt, Peter Höfner, Rob van Glabbeek) Regular

More information

Finite Automata and Regular Languages

Finite Automata and Regular Languages Finite Automata and Regular Languages Topics to be covered in Chapters 1-4 include: deterministic vs. nondeterministic FA, regular expressions, one-way vs. two-way FA, minimization, pumping lemma for regular

More information

Mergible States in Large NFA

Mergible States in Large NFA Mergible States in Large NFA Cezar Câmpeanu a Nicolae Sântean b Sheng Yu b a Department of Computer Science and Information Technology University of Prince Edward Island, Charlottetown, PEI C1A 4P3, Canada

More information

Compositions of Bottom-Up Tree Series Transformations

Compositions of Bottom-Up Tree Series Transformations Compositions of Bottom-Up Tree Series Transformations Andreas Maletti a Technische Universität Dresden Fakultät Informatik D 01062 Dresden, Germany maletti@tcs.inf.tu-dresden.de May 27, 2005 1. Motivation

More information

Obtaining the syntactic monoid via duality

Obtaining the syntactic monoid via duality Radboud University Nijmegen MLNL Groningen May 19th, 2011 Formal languages An alphabet is a non-empty finite set of symbols. If Σ is an alphabet, then Σ denotes the set of all words over Σ. The set Σ forms

More information

COM364 Automata Theory Lecture Note 2 - Nondeterminism

COM364 Automata Theory Lecture Note 2 - Nondeterminism COM364 Automata Theory Lecture Note 2 - Nondeterminism Kurtuluş Küllü March 2018 The FA we saw until now were deterministic FA (DFA) in the sense that for each state and input symbol there was exactly

More information

Automata and Formal Languages - CM0081 Non-Deterministic Finite Automata

Automata and Formal Languages - CM0081 Non-Deterministic Finite Automata Automata and Formal Languages - CM81 Non-Deterministic Finite Automata Andrés Sicard-Ramírez Universidad EAFIT Semester 217-2 Non-Deterministic Finite Automata (NFA) Introduction q i a a q j a q k The

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular OctoberExpressions

Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular OctoberExpressions Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular Expressions Orit Moskovich Gal Rotem Tel Aviv University October 28, 2015 Recitation 2 - Non Deterministic Finite Automata (NFA) and Regular

More information

What You Must Remember When Processing Data Words

What You Must Remember When Processing Data Words What You Must Remember When Processing Data Words Michael Benedikt, Clemens Ley, and Gabriele Puppis Oxford University Computing Laboratory, Park Rd, Oxford OX13QD UK Abstract. We provide a Myhill-Nerode-like

More information

Classes and conversions

Classes and conversions Classes and conversions Regular expressions Syntax: r = ε a r r r + r r Semantics: The language L r of a regular expression r is inductively defined as follows: L =, L ε = {ε}, L a = a L r r = L r L r

More information

Solving weakly linear inequalities for matrices over max-plus semiring and applications to automata theory

Solving weakly linear inequalities for matrices over max-plus semiring and applications to automata theory Solving weakly linear inequalities for matrices over max-plus semiring and applications to automata theory Nada Damljanović University of Kragujevac, Faculty of Technical Sciences in Čačak, Serbia nada.damljanovic@ftn.kg.ac.rs

More information

CMSC 330: Organization of Programming Languages. Theory of Regular Expressions Finite Automata

CMSC 330: Organization of Programming Languages. Theory of Regular Expressions Finite Automata : Organization of Programming Languages Theory of Regular Expressions Finite Automata Previous Course Review {s s defined} means the set of string s such that s is chosen or defined as given s A means

More information

c 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August

c 1998 Society for Industrial and Applied Mathematics Vol. 27, No. 4, pp , August SIAM J COMPUT c 1998 Society for Industrial and Applied Mathematics Vol 27, No 4, pp 173 182, August 1998 8 SEPARATING EXPONENTIALLY AMBIGUOUS FINITE AUTOMATA FROM POLYNOMIALLY AMBIGUOUS FINITE AUTOMATA

More information

An n log n Algorithm for Hyper-Minimizing States in a (Minimized) Deterministic Automaton

An n log n Algorithm for Hyper-Minimizing States in a (Minimized) Deterministic Automaton An n log n Algorithm for Hyper-Minimizing States in a (Minimized) Deterministic Automaton Markus Holzer a,1, Andreas Maletti,b,2 a nstitut für nformatik, Universität Giessen Arndtstr. 2, 35392 Giessen,

More information

A Note on the Number of Squares in a Partial Word with One Hole

A Note on the Number of Squares in a Partial Word with One Hole A Note on the Number of Squares in a Partial Word with One Hole F. Blanchet-Sadri 1 Robert Mercaş 2 July 23, 2008 Abstract A well known result of Fraenkel and Simpson states that the number of distinct

More information

Learning Rational Functions

Learning Rational Functions Learning Rational Functions Adrien Boiret, Aurélien Lemay, Joachim Niehren To cite this version: Adrien Boiret, Aurélien Lemay, Joachim Niehren. Learning Rational Functions. 16th International Conference

More information

The theory of regular cost functions.

The theory of regular cost functions. The theory of regular cost functions. Denis Kuperberg PhD under supervision of Thomas Colcombet Hebrew University of Jerusalem ERC Workshop on Quantitative Formal Methods Jerusalem, 10-05-2013 1 / 30 Introduction

More information

Algorithms for Computing Complete Deterministic Fuzzy Automata via Invariant Fuzzy Quasi-Orders

Algorithms for Computing Complete Deterministic Fuzzy Automata via Invariant Fuzzy Quasi-Orders Faculty of Sciences and Mathematics Department of Computer Science University of Niš, Serbia Algorithms for Computing Complete Deterministic Fuzzy Automata via Invariant Fuzzy Quasi-Orders Stefan Stanimirović

More information

Characterizing CTL-like logics on finite trees

Characterizing CTL-like logics on finite trees Theoretical Computer Science 356 (2006) 136 152 www.elsevier.com/locate/tcs Characterizing CTL-like logics on finite trees Zoltán Ésik 1 Department of Computer Science, University of Szeged, Hungary Research

More information

1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata.

1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata. Code No: R09220504 R09 Set No. 2 II B.Tech II Semester Examinations,December-January, 2011-2012 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 75 Answer

More information

Transducer Descriptions of DNA Code Properties and Undecidability of Antimorphic Problems

Transducer Descriptions of DNA Code Properties and Undecidability of Antimorphic Problems Transducer Descriptions of DNA Code Properties and Undecidability of Antimorphic Problems Lila Kari 1, Stavros Konstantinidis 2, and Steffen Kopecki 1,2 1 The University of Western Ontario, London, Ontario,

More information

A Weak Bisimulation for Weighted Automata

A Weak Bisimulation for Weighted Automata Weak Bisimulation for Weighted utomata Peter Kemper College of William and Mary Weighted utomata and Semirings here focus on commutative & idempotent semirings Weak Bisimulation Composition operators Congruence

More information

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata.

Clarifications from last time. This Lecture. Last Lecture. CMSC 330: Organization of Programming Languages. Finite Automata. CMSC 330: Organization of Programming Languages Last Lecture Languages Sets of strings Operations on languages Finite Automata Regular expressions Constants Operators Precedence CMSC 330 2 Clarifications

More information

Lecture 7: Introduction to syntax-based MT

Lecture 7: Introduction to syntax-based MT Lecture 7: Introduction to syntax-based MT Andreas Maletti Statistical Machine Translation Stuttgart December 16, 2011 SMT VII A. Maletti 1 Lecture 7 Goals Overview Tree substitution grammars (tree automata)

More information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar

Büchi Automata and their closure properties. - Ajith S and Ankit Kumar Büchi Automata and their closure properties - Ajith S and Ankit Kumar Motivation Conventional programs accept input, compute, output result, then terminate Reactive program : not expected to terminate

More information

Context Free Languages. Automata Theory and Formal Grammars: Lecture 6. Languages That Are Not Regular. Non-Regular Languages

Context Free Languages. Automata Theory and Formal Grammars: Lecture 6. Languages That Are Not Regular. Non-Regular Languages Context Free Languages Automata Theory and Formal Grammars: Lecture 6 Context Free Languages Last Time Decision procedures for FAs Minimum-state DFAs Today The Myhill-Nerode Theorem The Pumping Lemma Context-free

More information

Weighted Finite-State Transducer Algorithms An Overview

Weighted Finite-State Transducer Algorithms An Overview Weighted Finite-State Transducer Algorithms An Overview Mehryar Mohri AT&T Labs Research Shannon Laboratory 80 Park Avenue, Florham Park, NJ 0793, USA mohri@research.att.com May 4, 004 Abstract Weighted

More information

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA)

Deterministic Finite Automata. Non deterministic finite automata. Non-Deterministic Finite Automata (NFA) Non-Deterministic Finite Automata (NFA) Deterministic Finite Automata Non deterministic finite automata Automata we ve been dealing with have been deterministic For every state and every alphabet symbol there is exactly one move that the machine

More information

Decision, Computation and Language

Decision, Computation and Language Decision, Computation and Language Non-Deterministic Finite Automata (NFA) Dr. Muhammad S Khan (mskhan@liv.ac.uk) Ashton Building, Room G22 http://www.csc.liv.ac.uk/~khan/comp218 Finite State Automata

More information

Algebraic Approach to Automata Theory

Algebraic Approach to Automata Theory Algebraic Approach to Automata Theory Deepak D Souza Department of Computer Science and Automation Indian Institute of Science, Bangalore. 20 September 2016 Outline 1 Overview 2 Recognition via monoid

More information

Finite Automata. Seungjin Choi

Finite Automata. Seungjin Choi Finite Automata Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr 1 / 28 Outline

More information

Computational Models - Lecture 3

Computational Models - Lecture 3 Slides modified by Benny Chor, based on original slides by Maurice Herlihy, Brown University. p. 1 Computational Models - Lecture 3 Equivalence of regular expressions and regular languages (lukewarm leftover

More information

CS 154 Formal Languages and Computability Assignment #2 Solutions

CS 154 Formal Languages and Computability Assignment #2 Solutions CS 154 Formal Languages and Computability Assignment #2 Solutions Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak www.cs.sjsu.edu/~mak Assignment #2: Question 1

More information

Push-down Automata = FA + Stack

Push-down Automata = FA + Stack Push-down Automata = FA + Stack PDA Definition A push-down automaton M is a tuple M = (Q,, Γ, δ, q0, F) where Q is a finite set of states is the input alphabet (of terminal symbols, terminals) Γ is the

More information

CS 154 Introduction to Automata and Complexity Theory

CS 154 Introduction to Automata and Complexity Theory CS 154 Introduction to Automata and Complexity Theory cs154.stanford.edu 1 INSTRUCTORS & TAs Ryan Williams Cody Murray Lera Nikolaenko Sunny Rajan 2 Textbook 3 Homework / Problem Sets Homework will be

More information

arxiv:math/ v1 [math.co] 18 Jul 2006

arxiv:math/ v1 [math.co] 18 Jul 2006 Extending the scalars of minimizations arxiv:math/06074v [math.co] 8 Jul 2006 G. DUCHAMP É. LAUGEROTTE 2 Laboratoire d Informatique Fondamentale et Appliquée de Rouen Faculté des Sciences et des Techniques

More information

Computational Theory

Computational Theory Computational Theory Finite Automata and Regular Languages Curtis Larsen Dixie State University Computing and Design Fall 2018 Adapted from notes by Russ Ross Adapted from notes by Harry Lewis Curtis Larsen

More information

Introduction to Finite Automaton

Introduction to Finite Automaton Lecture 1 Introduction to Finite Automaton IIP-TL@NTU Lim Zhi Hao 2015 Lecture 1 Introduction to Finite Automata (FA) Intuition of FA Informally, it is a collection of a finite set of states and state

More information

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz Compiler Design Spring 2011 Lexical Analysis Sample Exercises and Solutions Prof. Pedro C. Diniz USC / Information Sciences Institute 4676 Admiralty Way, Suite 1001 Marina del Rey, California 90292 pedro@isi.edu

More information

An n log n Algorithm for Hyper-Minimizing a (Minimized) Deterministic Automaton

An n log n Algorithm for Hyper-Minimizing a (Minimized) Deterministic Automaton An n log n Algorithm for Hyper-Minimizing a (Minimized) Deterministic Automaton Markus Holzer 1 Institut für Informatik, Universität Giessen Arndtstr. 2, 35392 Giessen, Germany Andreas Maletti,2 Departament

More information

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I

GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I GEETANJALI INSTITUTE OF TECHNICAL STUDIES, UDAIPUR I Internal Examination 2017-18 B.Tech III Year VI Semester Sub: Theory of Computation (6CS3A) Time: 1 Hour 30 min. Max Marks: 40 Note: Attempt all three

More information

Minimizing finite automata is computationally hard

Minimizing finite automata is computationally hard Theoretical Computer Science 327 (2004) 375 390 www.elsevier.com/locate/tcs Minimizing finite automata is computationally hard Andreas Malcher Institut für Informatik, Johann Wolfgang Goethe Universität,

More information

2. Elements of the Theory of Computation, Lewis and Papadimitrou,

2. Elements of the Theory of Computation, Lewis and Papadimitrou, Introduction Finite Automata DFA, regular languages Nondeterminism, NFA, subset construction Regular Epressions Synta, Semantics Relationship to regular languages Properties of regular languages Pumping

More information

Preservation of Recognizability for Weighted Linear Extended Top-Down Tree Transducers

Preservation of Recognizability for Weighted Linear Extended Top-Down Tree Transducers Preservation of Recognizability for Weighted Linear Extended Top-Down Tree Transducers Nina eemann and Daniel Quernheim and Fabienne Braune and Andreas Maletti University of tuttgart, Institute for Natural

More information

Computational Models: Class 3

Computational Models: Class 3 Computational Models: Class 3 Benny Chor School of Computer Science Tel Aviv University November 2, 2015 Based on slides by Maurice Herlihy, Brown University, and modifications by Iftach Haitner and Yishay

More information

Automata extended to nominal sets

Automata extended to nominal sets Bachelor thesis Computer Science Radboud University Automata extended to nominal sets Author: Joep Veldhoven s4456556 First supervisor/assessor: Jurriaan Rot jrot@cs.ru.nl Second and third supervisor:

More information

CS 121, Section 2. Week of September 16, 2013

CS 121, Section 2. Week of September 16, 2013 CS 121, Section 2 Week of September 16, 2013 1 Concept Review 1.1 Overview In the past weeks, we have examined the finite automaton, a simple computational model with limited memory. We proved that DFAs,

More information

Finite State Automata

Finite State Automata Trento 2005 p. 1/4 Finite State Automata Automata: Theory and Practice Paritosh K. Pandya (TIFR, Mumbai, India) Unversity of Trento 10-24 May 2005 Trento 2005 p. 2/4 Finite Word Langauges Alphabet Σ is

More information

A practical introduction to active automata learning

A practical introduction to active automata learning A practical introduction to active automata learning Bernhard Steffen, Falk Howar, Maik Merten TU Dortmund SFM2011 Maik Merten, learning technology 1 Overview Motivation Introduction to active automata

More information

Finite Automata - Deterministic Finite Automata. Deterministic Finite Automaton (DFA) (or Finite State Machine)

Finite Automata - Deterministic Finite Automata. Deterministic Finite Automaton (DFA) (or Finite State Machine) Finite Automata - Deterministic Finite Automata Deterministic Finite Automaton (DFA) (or Finite State Machine) M = (K, Σ, δ, s, A), where K is a finite set of states Σ is an input alphabet s K is a distinguished

More information

Simplification of finite automata

Simplification of finite automata Simplification of finite automata Lorenzo Clemente (University of Warsaw) based on joint work with Richard Mayr (University of Edinburgh) Warsaw, November 2016 Nondeterministic finite automata We consider

More information

Finite Automata. Finite Automata

Finite Automata. Finite Automata Finite Automata Finite Automata Formal Specification of Languages Generators Grammars Context-free Regular Regular Expressions Recognizers Parsers, Push-down Automata Context Free Grammar Finite State

More information

Theory of Computation (I) Yijia Chen Fudan University

Theory of Computation (I) Yijia Chen Fudan University Theory of Computation (I) Yijia Chen Fudan University Instructor Yijia Chen Homepage: http://basics.sjtu.edu.cn/~chen Email: yijiachen@fudan.edu.cn Textbook Introduction to the Theory of Computation Michael

More information

Nondeterministic Finite Automata

Nondeterministic Finite Automata Nondeterministic Finite Automata Not A DFA Does not have exactly one transition from every state on every symbol: Two transitions from q 0 on a No transition from q 1 (on either a or b) Though not a DFA,

More information

Efficient minimization of deterministic weak ω-automata

Efficient minimization of deterministic weak ω-automata Information Processing Letters 79 (2001) 105 109 Efficient minimization of deterministic weak ω-automata Christof Löding Lehrstuhl Informatik VII, RWTH Aachen, 52056 Aachen, Germany Received 26 April 2000;

More information

On Strong Alt-Induced Codes

On Strong Alt-Induced Codes Applied Mathematical Sciences, Vol. 12, 2018, no. 7, 327-336 HIKARI Ltd, www.m-hikari.com https://doi.org/10.12988/ams.2018.8113 On Strong Alt-Induced Codes Ngo Thi Hien Hanoi University of Science and

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY THE PUMPING LEMMA FOR REGULAR LANGUAGES and REGULAR EXPRESSIONS TUESDAY Jan 21 WHICH OF THESE ARE REGULAR? B = {0 n 1 n n 0} C = { w w has equal number

More information

acs-07: Decidability Decidability Andreas Karwath und Malte Helmert Informatik Theorie II (A) WS2009/10

acs-07: Decidability Decidability Andreas Karwath und Malte Helmert Informatik Theorie II (A) WS2009/10 Decidability Andreas Karwath und Malte Helmert 1 Overview An investigation into the solvable/decidable Decidable languages The halting problem (undecidable) 2 Decidable problems? Acceptance problem : decide

More information

Inf2A: Converting from NFAs to DFAs and Closure Properties

Inf2A: Converting from NFAs to DFAs and Closure Properties 1/43 Inf2A: Converting from NFAs to DFAs and Stuart Anderson School of Informatics University of Edinburgh October 13, 2009 Starter Questions 2/43 1 Can you devise a way of testing for any FSM M whether

More information

Émilie Charlier 1 Department of Mathematics, University of Liège, Liège, Belgium Narad Rampersad.

Émilie Charlier 1 Department of Mathematics, University of Liège, Liège, Belgium Narad Rampersad. #A4 INTEGERS B () THE MINIMAL AUTOMATON RECOGNIZING m N IN A LINEAR NUMERATION SYSTEM Émilie Charlier Department of Mathematics, University of Liège, Liège, Belgium echarlier@uwaterloo.ca Narad Rampersad

More information

Finite-state Machines: Theory and Applications

Finite-state Machines: Theory and Applications Finite-state Machines: Theory and Applications Unweighted Finite-state Automata Thomas Hanneforth Institut für Linguistik Universität Potsdam December 10, 2008 Thomas Hanneforth (Universität Potsdam) Finite-state

More information

Composition Closure of ε-free Linear Extended Top-down Tree Transducers

Composition Closure of ε-free Linear Extended Top-down Tree Transducers Composition Closure of ε-free Linear Extended Top-down Tree Transducers Zoltán Fülöp 1, and Andreas Maletti 2, 1 Department of Foundations of Computer Science, University of Szeged Árpád tér 2, H-6720

More information

Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004

Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004 Introduction to Kleene Algebra Lecture 9 CS786 Spring 2004 February 23, 2004 Completeness Here we continue the program begun in the previous lecture to show the completeness of Kleene algebra for the equational

More information

CPS 220 Theory of Computation Pushdown Automata (PDA)

CPS 220 Theory of Computation Pushdown Automata (PDA) CPS 220 Theory of Computation Pushdown Automata (PDA) Nondeterministic Finite Automaton with some extra memory Memory is called the stack, accessed in a very restricted way: in a First-In First-Out fashion

More information

1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u,

1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u, 1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u, v, x, y, z as per the pumping theorem. 3. Prove that

More information

Isomorphism of regular trees and words

Isomorphism of regular trees and words Isomorphism of regular trees and words Markus Lohrey and Christian Mathissen Institut für Informatik, Universität Leipzig, Germany {lohrey,mathissen}@informatik.uni-leipzig.de Abstract. The complexity

More information

CS 455/555: Finite automata

CS 455/555: Finite automata CS 455/555: Finite automata Stefan D. Bruda Winter 2019 AUTOMATA (FINITE OR NOT) Generally any automaton Has a finite-state control Scans the input one symbol at a time Takes an action based on the currently

More information

arxiv: v1 [cs.fl] 15 Apr 2011

arxiv: v1 [cs.fl] 15 Apr 2011 International Journal of Foundations of Computer Science c World Scientific Publishing Company arxiv:4.37v [cs.fl] 5 Apr 2 OPTIMAL HYPER-MINIMIZATION ANDREAS MALETTI and DANIEL QUERNHEIM Institute for

More information

Theoretical Computer Science. State complexity of basic operations on suffix-free regular languages

Theoretical Computer Science. State complexity of basic operations on suffix-free regular languages Theoretical Computer Science 410 (2009) 2537 2548 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs State complexity of basic operations

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

Remarks on Separating Words

Remarks on Separating Words Remarks on Separating Words Erik D. Demaine, Sarah Eisenstat, Jeffrey Shallit 2, and David A. Wilson MIT Computer Science and Artificial Intelligence Laboratory, 32 Vassar Street, Cambridge, MA 239, USA,

More information

Nondeterministic State Complexity of Basic Operations for Prefix-Free Regular Languages

Nondeterministic State Complexity of Basic Operations for Prefix-Free Regular Languages Fundamenta Informaticae 90 (2009) 93 106 93 DOI 10.3233/FI-2009-0008 IOS Press Nondeterministic State Complexity of Basic Operations for Prefix-Free Regular Languages Yo-Sub Han Intelligence and Interaction

More information

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages

More information

Formal Models in NLP

Formal Models in NLP Formal Models in NLP Finite-State Automata Nina Seemann Universität Stuttgart Institut für Maschinelle Sprachverarbeitung Pfaffenwaldring 5b 70569 Stuttgart May 15, 2012 Nina Seemann (IMS) Formal Models

More information

On the Simplification of HD0L Power Series

On the Simplification of HD0L Power Series Journal of Universal Computer Science, vol. 8, no. 12 (2002), 1040-1046 submitted: 31/10/02, accepted: 26/12/02, appeared: 28/12/02 J.UCS On the Simplification of HD0L Power Series Juha Honkala Department

More information