Hyper-Minimization. Lossy compression of deterministic automata. Andreas Maletti. Institute for Natural Language Processing University of Stuttgart
|
|
- Vivian Burke
- 6 years ago
- Views:
Transcription
1 Hyper-Minimization Lossy compression of deterministic automata Andreas Maletti Institute for Natural Language Processing University of Stuttgart Debrecen August 19, 2011 A. Maletti AFL
2 Collaborators Reporting joint work with PAWEŁ GAWRYCHOWSKI MARKUS HOLZER ARTUR JEŻ DANIEL QUERNHEIM University of Wrocław University of Giessen University of Wrocław University of Stuttgart A. Maletti AFL
3 Contents 1 History and Motivation 2 Hyper-Minimization 3 Hyper-Optimization 4 Restrictions and limitations A. Maletti AFL
4 Problem definition Minimization given: DFA A return: minimal DFA B such that L(B) = L(A) Hyper-minimization given: DFA A return: minimal DFA B such that L(B) and L(A) differ finitely A. Maletti AFL
5 AFL 2008 (Balatonfüred, Hungary) VILIAM GEFFERT spoke about: general problem and its structural characterization (inefficient) hyper-minimization [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
6 AFL 2008 (Balatonfüred, Hungary) VILIAM GEFFERT spoke about: general problem and its structural characterization (inefficient) hyper-minimization Unfortunately, I was not there [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
7 CIAA 2008 (San Francisco, CA, USA) ANDREW BADR spoke about: faster (yet still inefficient) hyper-minimization combination with cover automata minimization [BADR: Hyper-minimization in O(n 2 ). CIAA 2008] A. Maletti AFL
8 CIAA 2008 (San Francisco, CA, USA) ANDREW BADR spoke about: faster (yet still inefficient) hyper-minimization combination with cover automata minimization MARKUS HOLZER and I were there [BADR: Hyper-minimization in O(n 2 ). CIAA 2008] A. Maletti AFL
9 c David Iliff CIAA 2009 (Sydney, Australia) MARKUS HOLZER spoke about: efficient hyper-minimization [HOLZER, : An n log n algorithm for hyper-minimizing states in a (minimized) deterministic automaton. CIAA 2009] A. Maletti AFL
10 c David Iliff CIAA 2009 (Sydney, Australia) MARKUS HOLZER spoke about: efficient hyper-minimization But at the same time... [HOLZER, : An n log n algorithm for hyper-minimizing states in a (minimized) deterministic automaton. CIAA 2009] A. Maletti AFL
11 MFCS 2009 (Novy Smokovec, Slovakia) ARTUR JEŻ spoke about: efficient hyper-minimization (essentially the same algorithm) k-minimization [GAWRYCHOWSKI, JEŻ: Hyper-minimisation made efficient. MFCS 2009] Best student paper A. Maletti AFL
12 CIAA 2010 (Winnipeg, Canada) I spoke about: error-optimal hyper-minimization [ : Better hyper-minimization not as fast, but fewer errors. CIAA 2010] A. Maletti AFL
13 FSTTCS 2010 (Chennai, India) SVEN SCHEWE spoke about: hyper-minimization for DBA (deterministic Büchi automata) [SCHEWE: Beyond Hyper-Minimisation Minimising DBAs and DPAs is NP-Complete. FSTTCS 2010] A. Maletti AFL
14 CIAA 2011 (Blois, France) ARTUR JEŻ spoke about: efficient combination with cover automata minimization [JEŻ, : Computing all l-cover automata fast. CIAA 2011] A. Maletti AFL
15 AFL 2011 (Debrecen, Hungary) DANIEL QUERNHEIM I spoke about: hyper-minimization for weighted DFA [, QUERNHEIM: Hyper-minimisation of deterministic weighted finite automata over semifields. AFL 2011] A. Maletti AFL
16 MFCS 2011 (Warsaw, Poland) PAWEŁ GAWRYCHOWSKI will speak about: efficient hyper-minimization for partial DFA limits of hyper-minimization [GAWRYCHOWSKI, JEŻ, : On minimising automata with errors. MFCS 2011] A. Maletti AFL
17 Experiments on random NFA size of mdfa states saved cyclicity density cyclicity density 0 Left: Size of minimal DFA Right: Ratio of saved states in hyper-minimization Conclusion significant savings A. Maletti AFL
18 Experiments on random NFA size of mdfa states saved cyclicity density cyclicity density 0 Left: Size of minimal DFA Right: Ratio of saved states in hyper-minimization Conclusion significant savings but only outside the difficult area for minimization A. Maletti AFL
19 Error analysis number of errors errors avoided cyclicity density cyclicity density Left: Average number of errors (100 NFA per data point) Right: Ratio of avoided errors in optimal hyper-minimization [, QUERNHEIM: Optimal hyper-minimization. IJFCS 2011] [TABAKOV, VARDI: Experimental evaluation of classical automata constructions. LPAR 2005] A. Maletti AFL
20 A. Maletti AFL
21 Contents 1 History and Motivation 2 Hyper-Minimization 3 Hyper-Optimization 4 Restrictions and limitations A. Maletti AFL
22 Basic definitions Definition Two languages L 1, L 2 are almost equal if L 1 L 2 is finite L 1 L 2 = (L 1 \ L 2 ) (L 2 \ L 1 ) Two DFA A 1, A 2 are almost equivalent if L(A 1 ) and L(A 2 ) are almost equal Example all finite languages are almost equal a and aaa are almost equal a and (aa) are not almost equal A. Maletti AFL
23 Overview Common approach 1 Identify kernel states 2 Identify almost equivalent states 3 Merge states A. Maletti AFL
24 Preamble and kernel states Definition preamble state: finitely many words lead to it kernel state: infinitely many words lead to it Words leading to state q: {w Σ δ(q 0, w) = q} A. Maletti AFL
25 Preamble and kernel states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
26 Preamble and kernel states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
27 Computing kernel states Step 1 Compute strongly connected components (using TARJAN S algorithm) F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
28 Computing kernel states Step 1 Compute strongly connected components (using TARJAN S algorithm) F J M B E I L Q A D H R P 0 C G 2 Step 2 Mark all successors of nontrivial components F J M B E I L Q [TARJAN: Depth-first search and linear graph algorithms. SIAM J. Comput. 1972] A D H R P 0 C G A. Maletti AFL
29 Computing kernel states Theorem We can compute the set of kernel states in linear time. A. Maletti AFL
30 Almost equivalent states Definition Two states are almost equivalent if their right languages are almost equal Right language of state q: {w Σ δ(q, w) F} A. Maletti AFL
31 Almost equivalent states Definition Two states are almost equivalent if their right languages are almost equal Right language of state q: {w Σ δ(q, w) F} Consequence For almost equivalent states p, q there is k N such that δ(p, w) = δ(q, w) for all w > k A. Maletti AFL
32 Almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
33 Almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
34 Computing almost equivalent states Theorem Almost equivalence is a congruence. Theorem If p, q are different, but almost equivalent, then there are p, q such that δ(p, σ) = δ(q, σ) for all σ Σ. A. Maletti AFL
35 Computing almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
36 Computing almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
37 Computing almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
38 Computing almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
39 Computing almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
40 Computing almost equivalent states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
41 Computing almost equivalent states Theorem The partition representing almost equivalent states can be computed in O(n log n) using O(n 2 ) space O(n log 2 n) using O(n) space [HOLZER, : An n log n algorithm for hyper-minimizing states in a (minimized) deterministic automaton. CIAA 2009] [GAWRYCHOWSKI, JEŻ: Hyper-minimisation made efficient. MFCS 2009] A. Maletti AFL
42 Merging states Algorithm don t-care nondeterministic select representative of each block; kernel state if possible merge all preamble states into their representative [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
43 Merging states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
44 Merging states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
45 Merging states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
46 Merging states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
47 Merging states Definition A DFA is hyper-minimal if all almost equivalent DFA are larger. A. Maletti AFL
48 Merging states Definition A DFA is hyper-minimal if all almost equivalent DFA are larger. Theorem A DFA is hyper-minimal if and only if it is minimal no preamble state is almost equivalent to another state [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
49 Merging states F J M merges: D into C B E I L Q A D H R P 0 C G 2 A. Maletti AFL
50 Merging states F J M merges: D into C G into I B E I L Q A D H R P 0 C G 2 A. Maletti AFL
51 Merging states F J M merges: D into C G into I H into J B E I L Q A D H R P 0 C G 2 A. Maletti AFL
52 Merging states F J M merges: D into C G into I H into J B E I L Q A D H R P 0 C G 2 A. Maletti AFL
53 Merging states Theorem Merging can be done in linear time. A. Maletti AFL
54 Merging states Theorem Merging can be done in linear time. Theorem Hyper-minimization can be achieved in time O(n log n). A. Maletti AFL
55 Contents 1 History and Motivation 2 Hyper-Minimization 3 Hyper-Optimization 4 Restrictions and limitations A. Maletti AFL
56 Hyper-optimization Goal Obtain a DFA that 1 makes only finitely many mistakes 2 is as small as possible A. Maletti AFL
57 Hyper-optimization Goal Obtain a DFA that 1 makes only finitely many mistakes 2 is as small as possible 3 additionally makes minimal number of mistakes Question Can it be done in polynomial time? [BADR, GEFFERT, SHIPMAN 2009] Can it be done in O(n log n)? A. Maletti AFL
58 Hyper-optimization Goal Obtain a DFA that 1 makes only finitely many mistakes 2 is as small as possible 3 additionally makes minimal number of mistakes Question Can it be done in polynomial time? [BADR, GEFFERT, SHIPMAN 2009] Can it be done in O(n log n)???? A. Maletti AFL
59 Comparison F J M F J M B E I L Q B E I L Q A D H R P A D H R P 0 C G 0 C G 2 2 A. Maletti AFL
60 Comparison Theorem Two almost equivalent, hyper-minimal DFA are isomorphic up to 1 finality of preamble states 2 transitions from preamble to kernel states 3 initial state [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
61 Optimal merges F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
62 Finality of preamble states F J M B E I L Q A D H R P Question Which words lead to C? word w 2 2 w L 0 C G 2 A. Maletti AFL
63 Finality of preamble states F J M B E I L Q A D H R P Question Which words lead to C? word w w L C G 2 A. Maletti AFL
64 Finality of preamble states F J M B E I L Q A D H R P Question Which words lead to C? word w w L C G 2 make C final A. Maletti AFL
65 Optimal merges F J M Errors B E I L Q A D H R P 0 C G 2 A. Maletti AFL
66 Transitions from preamble to kernel states F J M B E I L Q A D H R P Question On which words differ almost equivalent states? states words (number) P Q ε (1) 0 C G 2 A. Maletti AFL
67 Transitions from preamble to kernel states F J M B E I L Q A D H R P Question On which words differ almost equivalent states? states words (number) P Q ε (1) L M (1) 0 C G 2 A. Maletti AFL
68 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G Question On which words differ almost equivalent states? states words (number) P Q ε (1) L M (1) I J 2 (1) 2 A. Maletti AFL
69 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G Question On which words differ almost equivalent states? states words (number) P Q ε (1) L M (1) I J 2 (1) H J ε, 2 (2) 2 A. Maletti AFL
70 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G 2 Question On which words differ almost equivalent states? states words (number) P Q ε (1) L M (1) I J 2 (1) H J ε, 2 (2) H I ε, 2, 2 (3) A. Maletti AFL
71 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G 2 Question On which words differ almost equivalent states? states words (number) P Q ε (1) L M (1) I J 2 (1) H J ε, 2 (2) H I ε, 2, 2 (3) G J... (3) G I... (2) G H... (5) A. Maletti AFL
72 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
73 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
74 Transitions from preamble to kernel states F J M B E I L Q Errors u w u leads to C w error between H I A D H R P 0 C G (6) A. Maletti AFL
75 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
76 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G 2 A. Maletti AFL
77 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G Errors u w u leads to C (2) w H J (2) or u leads to D (1) w I J (1) 2 A. Maletti AFL
78 Transitions from preamble to kernel states F J M B E I L Q A D H R P 0 C G Errors u w u leads to C (2) w H J (2) or u leads to D (1) w I J (1) 2 only = 5 errors A. Maletti AFL
79 Optimal merges (cont d) F J M Errors B E I L Q A D H R P 0 C G (6) 2 A. Maletti AFL
80 Optimal merges (cont d) F J M Errors B E I L Q A D H R P 0 C G (15) A. Maletti AFL
81 Result Theorem Hyper-optimization can be achieved in O(n 2 ). [ : Better hyper-minimization not as fast, but fewer errors. CIAA 2010] A. Maletti AFL
82 Result Theorem Hyper-optimization can be achieved in O(n 2 ). Theorem We can compute the number of errors of a hyper-minimal DFA relative to any almost equivalent DFA in time O(n 2 ). [ : Better hyper-minimization not as fast, but fewer errors. CIAA 2010] A. Maletti AFL
83 Result Theorem Hyper-optimization can be achieved in O(n 2 ). Theorem We can compute the number of errors of a hyper-minimal DFA relative to any almost equivalent DFA in time O(n 2 ). Open question Can it also be done in O(n log n)? [ : Better hyper-minimization not as fast, but fewer errors. CIAA 2010] A. Maletti AFL
84 Contents 1 History and Motivation 2 Hyper-Minimization 3 Hyper-Optimization 4 Restrictions and limitations A. Maletti AFL
85 Canonical languages Definition Language L is canonical if recognized by a hyper-minimal DFA. Open question What are the closure properties of canonical languages? [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
86 Canonical languages class compl. conc. reversal regular canonical?? Table: Closure properties [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] [ : Notes on hyper-minimization. AFL 2011] A. Maletti AFL
87 Canonical languages Input hyper-minimal DFA F J M F J M B E I L Q B E I L Q A D R P A C R P A. Maletti AFL
88 Canonical languages Minimal DFA recognizing union and intersection F J M F J M B E I L Q B E I L Q A C I L P A C I, J L, M P 0 2 R 0 2 R A. Maletti AFL
89 k-minimization Definition Two languages L 1, L 2 are k-equivalent if L 1 L 2 Σ <k. Definition The gap of two states p, q is gap(p, q) = sup{ w δ(p, w) F xor δ(q, w) F} with sup = [GAWRYCHOWSKI, JEŻ: Hyper-minimisation made efficient. MFCS 2009] A. Maletti AFL
90 k-minimization Definition Level of p is length of longest word leading to p level(p) = sup { w δ(q 0, w) = p} A. Maletti AFL
91 k-minimization Definition Level of p is length of longest word leading to p level(p) = sup { w δ(q 0, w) = p} Definition Two states p, q are k-similar iff gap(p, q) + min(k, level(p), level(q)) < k A. Maletti AFL
92 k-minimization Note k-similarity is not an equivalence! [GAWRYCHOWSKI, JEŻ: Hyper-minimisation made efficient. MFCS 2009] [GAWRYCHOWSKI, JEŻ, : On minimising automata with errors. MFCS 2011] A. Maletti AFL
93 k-minimization Note k-similarity is not an equivalence! Theorem k-minimization can be done in time O(n log n). [GAWRYCHOWSKI, JEŻ: Hyper-minimisation made efficient. MFCS 2009] [GAWRYCHOWSKI, JEŻ, : On minimising automata with errors. MFCS 2011] A. Maletti AFL
94 Optimize other criteria So far 1 make it as small as possible (allowing any finite number of errors) 2 minimize the number of errors A. Maletti AFL
95 Optimize other criteria So far 1 make it as small as possible (allowing any finite number of errors) 2 minimize the number of errors More desirable optimize a ratio of saved states to committed errors A. Maletti AFL
96 Error-bounded hyper-minimization Problem given DFA A, integers m, s construct a DFA with at most s states making at most m errors Note trivial with only one restriction A. Maletti AFL
97 Bad news Theorem Error-bounded hyper-minimization is NP-complete. [GAWRYCHOWSKI, JEŻ, : On minimising automata with errors. MFCS 2011] A. Maletti AFL
98 Bad news v e e v v n e v n e using reduction from 3-coloring problem redirection from middle to outside for 1 error redirection from outside to anywhere for 2 errors A. Maletti AFL
99 Optimize other criteria (again) So far for k-minimization 1 make it as small as possible (allowing any number of errors of length at most k) A. Maletti AFL
100 Optimize other criteria (again) So far for k-minimization 1 make it as small as possible (allowing any number of errors of length at most k) More desirable minimize the number of committed errors A. Maletti AFL
101 Optimal k-minimization Problem given DFA A, integer k construct a DFA that is k-minimal for A commits the least number of errors for all such DFA Note Optimal hyper-minimization was possible in time O(n 2 ). A. Maletti AFL
102 More bad news Theorem Optimal k-minimization is NP-complete. [GAWRYCHOWSKI, JEŻ, : On minimising automata with errors. MFCS 2011] A. Maletti AFL
103 More bad news 30 3s 1 e 20 3s 1 21 k + 1 b l 1 2l k + l e 10 3s 1 11 k + 1 b l 1 1l k + l e v s + 1 e 0 k k + 2 {a, b} s 2 s 1 k + s s k + l + 1 s s v e... 3s {a, b} s 0 v v s + 1 e e k + 1 A. Maletti AFL
104 Summary Open questions [BADR, GEFFERT, SHIPMAN] Properties of canonical languages Asymptotic state complexity Hyper-minimization of NFA, AFA, 2FA, WDFA Efficient hyper-minimization algorithm Minimize the number of errors Minimize length of longest error k-minimization [BADR, GEFFERT, SHIPMAN: Hyper-minimizing minimized deterministic finite state automata. ITA 2009] A. Maletti AFL
105 That s all, folks! Thank you for your attention! A. Maletti AFL
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 informationMinimization of Weighted Automata
Minimization of Weighted Automata Andreas Maletti Universitat Rovira i Virgili Tarragona, Spain Wrocław May 19, 2010 Minimization of Weighted Automata Andreas Maletti 1 In Collaboration with ZOLTÁN ÉSIK,
More informationAn 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 informationCS 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 informationCMPSCI 250: Introduction to Computation. Lecture #22: From λ-nfa s to NFA s to DFA s David Mix Barrington 22 April 2013
CMPSCI 250: Introduction to Computation Lecture #22: From λ-nfa s to NFA s to DFA s David Mix Barrington 22 April 2013 λ-nfa s to NFA s to DFA s Reviewing the Three Models and Kleene s Theorem The Subset
More informationAn 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 informationTheory 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 informationClosure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism
Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement
More informationFooling Sets and. Lecture 5
Fooling Sets and Introduction to Nondeterministic Finite Automata Lecture 5 Proving that a language is not regular Given a language, we saw how to prove it is regular (union, intersection, concatenation,
More informationClasses 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 informationClosure under the Regular Operations
September 7, 2013 Application of NFA Now we use the NFA to show that collection of regular languages is closed under regular operations union, concatenation, and star Earlier we have shown this closure
More informationω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear:
ω-automata ω-automata Automata that accept (or reject) words of infinite length. Languages of infinite words appear: in verification, as encodings of non-terminating executions of a program. in arithmetic,
More informationCOM364 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 informationCS 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 informationNondeterministic Finite Automata
Nondeterministic Finite Automata Lecture 6 Section 2.2 Robb T. Koether Hampden-Sydney College Mon, Sep 5, 2016 Robb T. Koether (Hampden-Sydney College) Nondeterministic Finite Automata Mon, Sep 5, 2016
More informationRecitation 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 informationAn 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 informationUnit 6. Non Regular Languages The Pumping Lemma. Reading: Sipser, chapter 1
Unit 6 Non Regular Languages The Pumping Lemma Reading: Sipser, chapter 1 1 Are all languages regular? No! Most of the languages are not regular! Why? A finite automaton has limited memory. How can we
More informationCS 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 informationHKN 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 information3515ICT: Theory of Computation. Regular languages
3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,
More informationProperties of Regular Languages. BBM Automata Theory and Formal Languages 1
Properties of Regular Languages BBM 401 - Automata Theory and Formal Languages 1 Properties of Regular Languages Pumping Lemma: Every regular language satisfies the pumping lemma. A non-regular language
More informationCS 208: Automata Theory and Logic
CS 28: Automata Theory and Logic b a a start A x(la(x) y(x < y) L b (y)) B b Department of Computer Science and Engineering, Indian Institute of Technology Bombay of 32 Nondeterminism Alternation 2 of
More informationDefinition of Büchi Automata
Büchi Automata Definition of Büchi Automata Let Σ = {a,b,...} be a finite alphabet. By Σ ω we denote the set of all infinite words over Σ. A non-deterministic Büchi automaton (NBA) over Σ is a tuple A
More informationHarvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties
Harvard CS 121 and CSCI E-207 Lecture 4: NFAs vs. DFAs, Closure Properties Salil Vadhan September 13, 2012 Reading: Sipser, 1.2. How to simulate NFAs? NFA accepts w if there is at least one accepting computational
More informationWhat 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 informationComputational 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 informationIntroduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.
Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures and Instructions 23.10. 3.11. 17.11. 24.11. 1.12. 11.12.
More informationSri vidya college of engineering and technology
Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order
More informationBü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 informationLower and Upper Bound Results for Hard Problems Related to Finite Automata
Lower and Upper Bound Results for Hard Problems Related to Finite Automata Henning Fernau Universität Trier, Germany fernau@informatik.uni-trier.de Andreas Krebs Universität Tübingen, Germany krebs@informatik.uni-tuebingen.de
More informationFinite Automata Part Two
Finite Automata Part Two DFAs A DFA is a Deterministic Finite Automaton A DFA is defined relative to some alphabet Σ. For each state in the DFA, there must be exactly one transition defined for each symbol
More informationIntroduction to the Theory of Computation. Automata 1VO + 1PS. Lecturer: Dr. Ana Sokolova.
Introduction to the Theory of Computation Automata 1VO + 1PS Lecturer: Dr. Ana Sokolova http://cs.uni-salzburg.at/~anas/ Setup and Dates Lectures Tuesday 10:45 pm - 12:15 pm Instructions Tuesday 12:30
More informationKolmogorov structure functions for automatic complexity
Kolmogorov structure functions for automatic complexity Bjørn Kjos-Hanssen June 16, 2015 Varieties of Algorithmic Information, University of Heidelberg Internationales Wissenschaftssentrum History 1936:
More informationSimplification 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 informationBefore we show how languages can be proven not regular, first, how would we show a language is regular?
CS35 Proving Languages not to be Regular Before we show how languages can be proven not regular, first, how would we show a language is regular? Although regular languages and automata are quite powerful
More informationTechniques to solve computationally hard problems in automata theory
Techniques to solve computationally hard problems in automata theory Richard Mayr University of Edinburgh, UK IST Vienna, 4. Nov. 2014 Resources: www.languageinclusion.org Mayr (Edinburgh) Hard Problems
More informationAutomata 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 informationCISC 4090: Theory of Computation Chapter 1 Regular Languages. Section 1.1: Finite Automata. What is a computer? Finite automata
CISC 4090: Theory of Computation Chapter Regular Languages Xiaolan Zhang, adapted from slides by Prof. Werschulz Section.: Finite Automata Fordham University Department of Computer and Information Sciences
More informationFinite Automata and Languages
CS62, IIT BOMBAY Finite Automata and Languages Ashutosh Trivedi Department of Computer Science and Engineering, IIT Bombay CS62: New Trends in IT: Modeling and Verification of Cyber-Physical Systems (2
More informationFORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY
5-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY NON-DETERMINISM and REGULAR OPERATIONS THURSDAY JAN 6 UNION THEOREM The union of two regular languages is also a regular language Regular Languages Are
More informationarxiv: v3 [cs.fl] 2 Jul 2018
COMPLEXITY OF PREIMAGE PROBLEMS FOR DETERMINISTIC FINITE AUTOMATA MIKHAIL V. BERLINKOV arxiv:1704.08233v3 [cs.fl] 2 Jul 2018 Institute of Natural Sciences and Mathematics, Ural Federal University, Ekaterinburg,
More informationAutomata-Theoretic LTL Model-Checking
Automata-Theoretic LTL Model-Checking Arie Gurfinkel arie@cmu.edu SEI/CMU Automata-Theoretic LTL Model-Checking p.1 LTL - Linear Time Logic (Pn 77) Determines Patterns on Infinite Traces Atomic Propositions
More informationTwo-Way Automata Characterizations of L/poly versus NL
Two-Way Automata Characterizations of L/poly versus NL Christos A. Kapoutsis 1 Giovanni Pighizzini 2 1 LIAFA, Université Paris VII, France 2 DI, Università degli Studi di Milano, Italia CRS 2012 Nizhny
More informationFinite Universes. L is a fixed-length language if it has length n for some
Finite Universes Finite Universes When the universe is finite (e.g., the interval 0, 2 1 ), all objects can be encoded by words of the same length. A language L has length n 0 if L =, or every word of
More informationInf2A: 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 informationTheoretical 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 informationLecture 4 Nondeterministic Finite Accepters
Lecture 4 Nondeterministic Finite Accepters COT 4420 Theory of Computation Section 2.2, 2.3 Nondeterminism A nondeterministic finite automaton can go to several states at once. Transitions from one state
More informationC2.1 Regular Grammars
Theory of Computer Science March 22, 27 C2. Regular Languages: Finite Automata Theory of Computer Science C2. Regular Languages: Finite Automata Malte Helmert University of Basel March 22, 27 C2. Regular
More informationAutomata 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 informationEquivalence of DFAs and NFAs
CS 172: Computability and Complexity Equivalence of DFAs and NFAs It s a tie! DFA NFA Sanjit A. Seshia EECS, UC Berkeley Acknowledgments: L.von Ahn, L. Blum, M. Blum What we ll do today Prove that DFAs
More informationMinimizing 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 informationChapter 2: Finite Automata
Chapter 2: Finite Automata 2.1 States, State Diagrams, and Transitions Finite automaton is the simplest acceptor or recognizer for language specification. It is also the simplest model of a computer. A
More informationC2.1 Regular Grammars
Theory of Computer Science March 6, 26 C2. Regular Languages: Finite Automata Theory of Computer Science C2. Regular Languages: Finite Automata Malte Helmert University of Basel March 6, 26 C2. Regular
More informationNondeterministic Finite Automata. Nondeterminism Subset Construction
Nondeterministic Finite Automata Nondeterminism Subset Construction 1 Nondeterminism A nondeterministic finite automaton has the ability to be in several states at once. Transitions from a state on an
More informationBüchi Automata and Their Determinization
Büchi Automata and Their Determinization Edinburgh, October 215 Plan of the Day 1. Büchi automata and their determinization 2. Infinite games 3. Rabin s Tree Theorem 4. Decidability of monadic theories
More information1 More finite deterministic automata
CS 125 Section #6 Finite automata October 18, 2016 1 More finite deterministic automata Exercise. Consider the following game with two players: Repeatedly flip a coin. On heads, player 1 gets a point.
More informationNondeterministic 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 informationCS 154. Finite Automata, Nondeterminism, Regular Expressions
CS 54 Finite Automata, Nondeterminism, Regular Expressions Read string left to right The DFA accepts a string if the process ends in a double circle A DFA is a 5-tuple M = (Q, Σ, δ, q, F) Q is the set
More informationarxiv:cs/ v1 [cs.cc] 9 Feb 2007
The DFAs of Finitely Different Languages Andrew Badr Ian Shipman February 1, 2008 arxiv:cs/0702053v1 [cs.cc] 9 Feb 2007 Abstract Two languages are finitely different if their symmetric difference is finite.
More informationHellis Tamm Institute of Cybernetics, Tallinn. Theory Seminar, April 21, Joint work with Janusz Brzozowski, accepted to DLT 2011
Theory of Átomata Hellis Tamm Institute of Cybernetics, Tallinn Theory Seminar, April 21, 2011 Joint work with Janusz Brzozowski, accepted to DLT 2011 This work was supported by the Natural Sciences and
More informationUNIT-II. NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: SIGNIFICANCE. Use of ε-transitions. s t a r t. ε r. e g u l a r
Syllabus R9 Regulation UNIT-II NONDETERMINISTIC FINITE AUTOMATA WITH ε TRANSITIONS: In the automata theory, a nondeterministic finite automaton (NFA) or nondeterministic finite state machine is a finite
More informationSeptember 11, Second Part of Regular Expressions Equivalence with Finite Aut
Second Part of Regular Expressions Equivalence with Finite Automata September 11, 2013 Lemma 1.60 If a language is regular then it is specified by a regular expression Proof idea: For a given regular language
More informationCSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont )
CSE 135: Introduction to Theory of Computation Nondeterministic Finite Automata (cont ) Sungjin Im University of California, Merced 2-3-214 Example II A ɛ B ɛ D F C E Example II A ɛ B ɛ D F C E NFA accepting
More informationCS 154, Lecture 2: Finite Automata, Closure Properties Nondeterminism,
CS 54, Lecture 2: Finite Automata, Closure Properties Nondeterminism, Why so Many Models? Streaming Algorithms 0 42 Deterministic Finite Automata Anatomy of Deterministic Finite Automata transition: for
More informationCISC 4090 Theory of Computation
9/2/28 Stereotypical computer CISC 49 Theory of Computation Finite state machines & Regular languages Professor Daniel Leeds dleeds@fordham.edu JMH 332 Central processing unit (CPU) performs all the instructions
More informationComputational 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 informationLogic and Automata I. Wolfgang Thomas. EATCS School, Telc, July 2014
Logic and Automata I EATCS School, Telc, July 2014 The Plan We present automata theory as a tool to make logic effective. Four parts: 1. Some history 2. Automata on infinite words First step: MSO-logic
More informationLecture 3: Nondeterministic Finite Automata
Lecture 3: Nondeterministic Finite Automata September 5, 206 CS 00 Theory of Computation As a recap of last lecture, recall that a deterministic finite automaton (DFA) consists of (Q, Σ, δ, q 0, F ) where
More informationPartially Ordered Two-way Büchi Automata
Partially Ordered Two-way Büchi Automata Manfred Kufleitner Alexander Lauser FMI, Universität Stuttgart, Germany {kufleitner, lauser}@fmi.uni-stuttgart.de June 14, 2010 Abstract We introduce partially
More informationJava II Finite Automata I
Java II Finite Automata I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz November, 23 Processing Regular Expressions We already learned about Java s regular expression
More informationRepresenting Arithmetic Constraints with Finite Automata: An Overview
Representing Arithmetic Constraints with Finite Automata: An Overview Bernard Boigelot Pierre Wolper Université de Liège Motivation Linear numerical constraints are a very common and useful formalism (our
More informationFinite Automata and Regular languages
Finite Automata and Regular languages Huan Long Shanghai Jiao Tong University Acknowledgements Part of the slides comes from a similar course in Fudan University given by Prof. Yijia Chen. http://basics.sjtu.edu.cn/
More informationRandom Generation of Nondeterministic Tree Automata
Random Generation of Nondeterministic Tree Automata Thomas Hanneforth 1 and Andreas Maletti 2 and Daniel Quernheim 2 1 Department of Linguistics University of Potsdam, Germany 2 Institute for Natural Language
More informationLanguages. Non deterministic finite automata with ε transitions. First there was the DFA. Finite Automata. Non-Deterministic Finite Automata (NFA)
Languages Non deterministic finite automata with ε transitions Recall What is a language? What is a class of languages? Finite Automata Consists of A set of states (Q) A start state (q o ) A set of accepting
More informationNotes on State Minimization
U.C. Berkeley CS172: Automata, Computability and Complexity Handout 1 Professor Luca Trevisan 2/3/2015 Notes on State Minimization These notes present a technique to prove a lower bound on the number of
More informationFinite 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 informationMore on Finite Automata and Regular Languages. (NTU EE) Regular Languages Fall / 41
More on Finite Automata and Regular Languages (NTU EE) Regular Languages Fall 2016 1 / 41 Pumping Lemma is not a Sufficient Condition Example 1 We know L = {b m c m m > 0} is not regular. Let us consider
More informationCOMP-330 Theory of Computation. Fall Prof. Claude Crépeau. Lec. 9 : Myhill-Nerode Theorem and applications
COMP-33 Theory of Computation Fall 217 -- Prof. Claude Crépeau Lec. 9 : Myhill-Nerode Theorem and applications COMP 33 Fall 212: Lectures Schedule 1-2. Introduction 1.5. Some basic mathematics 2-3. Deterministic
More informationIntro to Theory of Computation
Intro to Theory of Computation 1/19/2016 LECTURE 3 Last time: DFAs and NFAs Operations on languages Today: Nondeterminism Equivalence of NFAs and DFAs Closure properties of regular languages Sofya Raskhodnikova
More informationCSE 105 THEORY OF COMPUTATION. Spring 2018 review class
CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus
More informationUniversal Disjunctive Concatenation and Star
Universal Disjunctive Concatenation and Star Nelma Moreira 1 Giovanni Pighizzini 2 Rogério Reis 1 1 Centro de Matemática & Faculdade de Ciências Universidade do Porto, Portugal 2 Dipartimento di Informatica
More informationOperations on Unambiguous Finite Automata
Mathematical Institute, Slovak Academy of Sciences, Košice, Slovakia Joint work with Jozef Jirásek, Jr, and Juraj Šebej DLT 2016, Montréal, Québec, Canada Nondeterministic and Deterministic Finite Automata
More informationConstructions on Finite Automata
Constructions on Finite Automata Informatics 2A: Lecture 4 Mary Cryan School of Informatics University of Edinburgh mcryan@inf.ed.ac.uk 24 September 2018 1 / 33 Determinization The subset construction
More informationDeterministic 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 informationConstructions on Finite Automata
Constructions on Finite Automata Informatics 2A: Lecture 4 Alex Simpson School of Informatics University of Edinburgh als@inf.ed.ac.uk 23rd September, 2014 1 / 29 1 Closure properties of regular languages
More informationComputational Models - Lecture 5 1
Computational Models - Lecture 5 1 Handout Mode Iftach Haitner and Yishay Mansour. Tel Aviv University. April 10/22, 2013 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice
More informationFormal Languages, Automata and Models of Computation
CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 5 School of Innovation, Design and Engineering Mälardalen University 2011 1 Content - More Properties of Regular Languages (RL)
More informationLecture 1: Finite State Automaton
Lecture 1: Finite State Automaton Instructor: Ketan Mulmuley Scriber: Yuan Li January 6, 2015 1 Deterministic Finite Automaton Informally, a deterministic finite automaton (DFA) has finite number of s-
More informationPrime Languages, Orna Kupferman, Jonathan Mosheiff. School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel
Prime Languages, Orna Kupferman, Jonathan Mosheiff School of Engineering and Computer Science The Hebrew University, Jerusalem, Israel Abstract We say that a deterministic finite automaton (DFA) A is composite
More informationTwo-Way Automata and Descriptional Complexity
Two-Way Automata and Descriptional Complexity Giovanni Pighizzini Dipartimento di Informatica Università degli Studi di Milano TCS 2014 Rome, Italy September 1-3, 2014 IFIP TC1, Working Group 1.2, Descriptional
More informationCSE 311: Foundations of Computing. Lecture 23: Finite State Machine Minimization & NFAs
CSE : Foundations of Computing Lecture : Finite State Machine Minimization & NFAs State Minimization Many different FSMs (DFAs) for the same problem Take a given FSM and try to reduce its state set by
More informationUNIT-III REGULAR LANGUAGES
Syllabus R9 Regulation REGULAR EXPRESSIONS UNIT-III REGULAR LANGUAGES Regular expressions are useful for representing certain sets of strings in an algebraic fashion. In arithmetic we can use the operations
More informationT (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,
Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the
More informationAlgebraic 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 informationFORMAL 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 informationReversal of Regular Languages and State Complexity
Reversal of Regular Languages and State Complexity Juraj Šebej Institute of Computer Science, Faculty of Science, P. J. Šafárik University, Jesenná 5, 04001 Košice, Slovakia juraj.sebej@gmail.com Abstract.
More informationClarifications 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 informationFinite 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 informationTheory of Computation (II) Yijia Chen Fudan University
Theory of Computation (II) Yijia Chen Fudan University Review A language L is a subset of strings over an alphabet Σ. Our goal is to identify those languages that can be recognized by one of the simplest
More information