Using Multiplicity Automata to Identify Transducer Relations from Membership and Equivalence Queries

Size: px
Start display at page:

Download "Using Multiplicity Automata to Identify Transducer Relations from Membership and Equivalence Queries"

Transcription

1 Using Multiplicity Automata to Identify Transducer Relations from Membership and Equivalence Queries Jose Oncina Dept. Lenguajes y Sistemas Informáticos - Universidad de Alicante oncina@dlsi.ua.es September 2008

2 Motivation Usually a transduction is viewed as a string to string function f ("My red car") = "mi coche rojo" A particular type of transductions is the Subsequential Transductions are based on a DFA We have algorithms to deal with this type of transductions The OSTIA algorithm: from input-output pairs The Vilar algorithm: from MAT Sometimes we have to cope with ambiguities f ("My red car") = "Mi coche ( rojo + colorado + encarnado)" 2/26 September 2008 Ambiguous Transducers Jose Oncina

3 Motivation Usually a transduction is viewed as a string to string function f ("My red car") = "mi coche rojo" A particular type of transductions is the Subsequential Transductions are based on a DFA We have algorithms to deal with this type of transductions The OSTIA algorithm: from input-output pairs The Vilar algorithm: from MAT Sometimes we have to cope with ambiguities f ("My red car") = "Mi coche ( rojo + colorado + encarnado)" 2/26 September 2008 Ambiguous Transducers Jose Oncina

4 Motivation Usually a transduction is viewed as a string to string function f ("My red car") = "mi coche rojo" A particular type of transductions is the Subsequential Transductions are based on a DFA We have algorithms to deal with this type of transductions The OSTIA algorithm: from input-output pairs The Vilar algorithm: from MAT Sometimes we have to cope with ambiguities f ("My red car") = "Mi coche ( rojo + colorado + encarnado)" 2/26 September 2008 Ambiguous Transducers Jose Oncina

5 Motivation Usually a transduction is viewed as a string to string function f ("My red car") = "mi coche rojo" A particular type of transductions is the Subsequential Transductions are based on a DFA We have algorithms to deal with this type of transductions The OSTIA algorithm: from input-output pairs The Vilar algorithm: from MAT Sometimes we have to cope with ambiguities f ("My red car") = "Mi coche ( rojo + colorado + encarnado)" 2/26 September 2008 Ambiguous Transducers Jose Oncina

6 Outline 1. Multiplicity Automata 2. Exact Learning 3. A bit of Algebra 4. Examples 3/26 September 2008 Ambiguous Transducers Jose Oncina

7 Outline 1. Multiplicity Automata 2. Exact Learning 3. A bit of Algebra 4. Examples 4/26 September 2008 Ambiguous Transducers Jose Oncina

8 Multiplicity Automata Multiplicity automata are essentially non deterministic stochastic automata with only one initial state and no restrictions to force the normalization Definition (Multiplicity Automata) A Multiplicity Automaton (MA) of size r, is: a set of Σ r r matrices {µ σ : σ Σ} with elements of the field K a row-vector λ = (λ 1,..., λ r ) K r a column-vector γ = (γ 1,..., γ r ) t K r The MA A defines a function f A : Σ K as: f A (x 1... x n) = λµ x1... µ xn γ 5/26 September 2008 Ambiguous Transducers Jose Oncina

9 Multiplicity Automata Example Let the MA A defined by: λ = `1 «1 1 0 µ a = µ 0 1 b = In this case: µ(x) = µ(x 1... x n) = µ x1... µ xn = «1 0 γ = 0 1 «1 α 0 1 «0 1 Where α is the number of times that a appears in x. Then f A (x) = λµ(x)γ = `1 0 1 ««α 0 = α start a, b 1 q 0 0 a 1 q 1 1 a, b 1 6/26 September 2008 Ambiguous Transducers Jose Oncina

10 The Hankel Matrix Let f : Σ K be a function. The Hankel matrix is an infinite matrix F each of its rows and columns are indexed by strings in Σ. The (x, y) entry of F (F x,y) contains the value f (xy). Example (a-count function) 0 1 ɛ a b aa ab ba bb... ɛ a b F = aa ab ba bb C A /26 September 2008 Ambiguous Transducers Jose Oncina

11 Carlyle and Paz theorem [1971] Theorem (Carlyle and Paz theorem, 1971) Let f : Σ K such that f 0 and let F be the corresponding Hankel matrix. Then, the size r of the smallest MA A such that f A f satisfies r = rank(f) (over the field) Example (a-count function) The rank is 2, F ɛ and F a are a basis. The other rows: F ɛ = (1, 0)(F ɛ, F a) t F b = (1, 0)(F ɛ, F a) t F ab = (0, 1)(F ɛ, F a) t F bb = (1, 0)(F ɛ, F a) t... F a = (0, 1)(F ɛ, F a) t F aa = ( 1, 2)(F ɛ, F a) t F ba = (0, 1)(F ɛ, F a) t 8/26 September 2008 Ambiguous Transducers Jose Oncina

12 Carlyle and Paz theorem [1971] Theorem (Carlyle and Paz theorem, 1971) Let f : Σ K such that f 0 and let F be the corresponding Hankel matrix. Then, the size r of the smallest MA A such that f A f satisfies r = rank(f) (over the field) Example (a-count function) The rank is 2, F ɛ and F a are a basis. The other rows: F ɛ = (1, 0)(F ɛ, F a) t F b = (1, 0)(F ɛ, F a) t F ab = (0, 1)(F ɛ, F a) t F bb = (1, 0)(F ɛ, F a) t... F a = (0, 1)(F ɛ, F a) t F aa = ( 1, 2)(F ɛ, F a) t F ba = (0, 1)(F ɛ, F a) t 8/26 September 2008 Ambiguous Transducers Jose Oncina

13 Carlyle and Paz theorem [1971] Note: Let x 1 = ɛ, x 2,..., x r a basis of the Hankel matrix. The Theorem states that we can build the MA as: λ = (1, 0,..., 0); γ = (f (x 1 ),..., f (x r )) for every σ, define the ith row of the matrix µ σ as the (unique) coefficients of the row F xi σ when expressed as a linear combination of F x1,..., F xr. That is: F xi σ = rx [µ σ] i,j F xj j=1 a 1 b 1 q 0 0 q 1 1 a 1 a 2, b 1 Example (a-count function) γ = `1 «0 Fɛ a µ a = = F a a «0 1 µ 1 2 b = Fɛ b F a b «= « /26 September 2008 Ambiguous Transducers Jose Oncina

14 Carlyle and Paz theorem [1971] Note: Let x 1 = ɛ, x 2,..., x r a basis of the Hankel matrix. The Theorem states that we can build the MA as: λ = (1, 0,..., 0); γ = (f (x 1 ),..., f (x r )) for every σ, define the ith row of the matrix µ σ as the (unique) coefficients of the row F xi σ when expressed as a linear combination of F x1,..., F xr. That is: F xi σ = rx [µ σ] i,j F xj j=1 a 1 b 1 q 0 0 q 1 1 a 1 a 2, b 1 Example (a-count function) γ = `1 «0 Fɛ a µ a = = F a a «0 1 µ 1 2 b = Fɛ b F a b «= « /26 September 2008 Ambiguous Transducers Jose Oncina

15 Carlyle and Paz theorem [1971] Note: Let x 1 = ɛ, x 2,..., x r a basis of the Hankel matrix. The Theorem states that we can build the MA as: λ = (1, 0,..., 0); γ = (f (x 1 ),..., f (x r )) for every σ, define the ith row of the matrix µ σ as the (unique) coefficients of the row F xi σ when expressed as a linear combination of F x1,..., F xr. That is: F xi σ = rx [µ σ] i,j F xj j=1 a 1 b 1 q 0 0 q 1 1 a 1 a 2, b 1 Example (a-count function) γ = `1 «0 Fɛ a µ a = = F a a «0 1 µ 1 2 b = Fɛ b F a b «= « /26 September 2008 Ambiguous Transducers Jose Oncina

16 Outline 1. Multiplicity Automata 2. Exact Learning 3. A bit of Algebra 4. Examples 10/26 September 2008 Ambiguous Transducers Jose Oncina

17 Queries Definition (Equivalence query) Let f be a target function. Given a hypothesis h, an equivalence query (EQ(h)) returns: YES if h f a counterexample otherwise Definition (Membership query) Let f be a target function. Given an assignment z a membership query (MQ(z)) returns f (z) 11/26 September 2008 Ambiguous Transducers Jose Oncina

18 Queries Definition (Equivalence query) Let f be a target function. Given a hypothesis h, an equivalence query (EQ(h)) returns: YES if h f a counterexample otherwise Definition (Membership query) Let f be a target function. Given an assignment z a membership query (MQ(z)) returns f (z) 11/26 September 2008 Ambiguous Transducers Jose Oncina

19 The exact learning model Definition (Angluin, 1988) Given a target function f, a learning algorithm should return a hypothesis function h equivalent to f. In order to do so, the learner can resort to membership and equivalence queries. We say that the learner learns a class of functions C, if, for every function f C, the learner outputs a hypothesis h that is equivalent to f and does so in time polynomial in the size of a shortest representation of f and the length of the longest counterexample. 12/26 September 2008 Ambiguous Transducers Jose Oncina

20 The MA Learning Algorithm [Beimel et all, 00] The idea is to work with a finite version of the Hankel matrix. Algorithm 1. initialize the matrix to null 2. build a MA using the matrix and making membership queries if necessary 3. ask an equivalence query 4. if the answer is YES then STOP 5. use the counterexample to add new rows an columns in the matrix 6. use membership queries to fill the holes in the matrix 7. Go to step 2 13/26 September 2008 Ambiguous Transducers Jose Oncina

21 Outline 1. Multiplicity Automata 2. Exact Learning 3. A bit of Algebra 4. Examples 14/26 September 2008 Ambiguous Transducers Jose Oncina

22 What is a Field? Definition (Field) (K, +, ) is a field if: Closure of K under + and a, b K, both a + b and a b belong to K Both + and are associative a, b, c K, a + (b + c) = (a + b) + c and a (b c) = (a b) c. Both + and are commutative a, b K, a + b = b + a and a b = b a. The operation is distributive over the operation + a, b, c K, a (b + c) = (a b) + (a c). Existence of an additive identity 0 K: a K, a + 0 = a. Existence of a multiplicative identity 1 K, 1 0: a K, a 1 = a. Existence of additive inverses a K, a K: a + ( a) = 0. Existence of multiplicative inverses a K, a 0, a 1 K: a a 1 = 1. 15/26 September 2008 Ambiguous Transducers Jose Oncina

23 Working with transducers Idea: Use the learning algorithm using: concatenation as the operator the inclusion in a (multi)set as the + operator We are going to extend this operations in order to have a Field and be able to identify a superclass of the ambiguous rational transducers 16/26 September 2008 Ambiguous Transducers Jose Oncina

24 Concatenation extension The concatenation is going to play the role of the multiplication. For each a Σ let we include in Σ its inverse (a 1 ). Example aabb aba 1 b aaa 1 b ( ab) a 1 b 1 Extended concatenation properties: Closure Associative Non Commutative (not good) Existence of a multiplicative identity (ɛ) Existence of multiplicative inverses 17/26 September 2008 Ambiguous Transducers Jose Oncina

25 Concatenation extension The concatenation is going to play the role of the multiplication. For each a Σ let we include in Σ its inverse (a 1 ). Example aabb aba 1 b aaa 1 b ( ab) a 1 b 1 Extended concatenation properties: Closure Associative Non Commutative (not good) Existence of a multiplicative identity (ɛ) Existence of multiplicative inverses 17/26 September 2008 Ambiguous Transducers Jose Oncina

26 Concatenation extension The concatenation is going to play the role of the multiplication. For each a Σ let we include in Σ its inverse (a 1 ). Example aabb aba 1 b aaa 1 b ( ab) a 1 b 1 Extended concatenation properties: Closure Associative Non Commutative (not good) Existence of a multiplicative identity (ɛ) Existence of multiplicative inverses 17/26 September 2008 Ambiguous Transducers Jose Oncina

27 Multiset inclusion extension the multiset inclusion is going to play the role the addition For each multiset x let we define its inverse ( x). Example aaa + bbb aaa aaa ( ) a + a a ( a) aaa Multiset inclusion properties: Closure: the inclusion of a multiset into another is a multiset. Associative: (x + y) + z = x + (y + z) Commutative: x + y = y + x Existence of an additive identity: x + = x Existence of additive inverses: x + ( x) = 18/26 September 2008 Ambiguous Transducers Jose Oncina

28 Multiset inclusion extension the multiset inclusion is going to play the role the addition For each multiset x let we define its inverse ( x). Example aaa + bbb aaa aaa ( ) a + a a ( a) aaa Multiset inclusion properties: Closure: the inclusion of a multiset into another is a multiset. Associative: (x + y) + z = x + (y + z) Commutative: x + y = y + x Existence of an additive identity: x + = x Existence of additive inverses: x + ( x) = 18/26 September 2008 Ambiguous Transducers Jose Oncina

29 Multiset inclusion extension the multiset inclusion is going to play the role the addition For each multiset x let we define its inverse ( x). Example aaa + bbb aaa aaa ( ) a + a a ( a) aaa Multiset inclusion properties: Closure: the inclusion of a multiset into another is a multiset. Associative: (x + y) + z = x + (y + z) Commutative: x + y = y + x Existence of an additive identity: x + = x Existence of additive inverses: x + ( x) = 18/26 September 2008 Ambiguous Transducers Jose Oncina

30 Combining concatenation and inclusion Properties: The concatenation is distributive over the inclusion: x (y + z) = x y + x z We have a Field with a non commutative multiplication. This is known as a Divisive Ring But the Carlyle an Paz theorem does not use the commutativity in the multiplication! Their theorem is also true for Divisive Rings! Then the inference algorithm can be used exactly as it is just substituting: addition by the (extended) inclusion multiplication by the (extended) concatenation 19/26 September 2008 Ambiguous Transducers Jose Oncina

31 Combining concatenation and inclusion Properties: The concatenation is distributive over the inclusion: x (y + z) = x y + x z We have a Field with a non commutative multiplication. This is known as a Divisive Ring But the Carlyle an Paz theorem does not use the commutativity in the multiplication! Their theorem is also true for Divisive Rings! Then the inference algorithm can be used exactly as it is just substituting: addition by the (extended) inclusion multiplication by the (extended) concatenation 19/26 September 2008 Ambiguous Transducers Jose Oncina

32 Outline 1. Multiplicity Automata 2. Exact Learning 3. A bit of Algebra 4. Examples 20/26 September 2008 Ambiguous Transducers Jose Oncina

33 Non ambiguous, non subsequential example f (x n ) = ( a n b n if n is odd if n is even Text books proposal: x a x a q 1 ɛ x a q 3 start q 0 ɛ x b q 2 x b x b q 4 ɛ 21/26 September 2008 Ambiguous Transducers Jose Oncina

34 The Result Applying the algorithm we obtain: x b 4 (a 4 b 4 )(a 2 b 2 ) 1 b 2 start q 1 ɛ x ɛ q 1 x ɛ q 2 x ɛ a bb q 3 aaa It can be shown that for any input we obtain a plain string Open questions: x (a 4 b 4 )(a 2 b 2 ) 1 Does there exist a general method to simplify and compare string expressions? Does there exist a method to know if a multiplicity automaton produces only plain strings? Does there exist a method to remove complex expressions in arcs and states, possibly adding more states? 22/26 September 2008 Ambiguous Transducers Jose Oncina

35 The Result Applying the algorithm we obtain: x b 4 (a 4 b 4 )(a 2 b 2 ) 1 b 2 start q 1 ɛ x ɛ q 1 x ɛ q 2 x ɛ a bb q 3 aaa It can be shown that for any input we obtain a plain string Open questions: x (a 4 b 4 )(a 2 b 2 ) 1 Does there exist a general method to simplify and compare string expressions? Does there exist a method to know if a multiplicity automaton produces only plain strings? Does there exist a method to remove complex expressions in arcs and states, possibly adding more states? 22/26 September 2008 Ambiguous Transducers Jose Oncina

36 An ambiguous example f (x n ) = nx a i The good one x ɛ + a i=0 A non equivalent one x ɛ x ɛ + a start q 0 ɛ x a q 1 ɛ + a start The second transducer does not preserve the multiplicity of the strings Note that in the ambiguous case, the membership query should return all the possible transductions. Open questions: Can we still be able to learn if only information about just one transduction is provided in each query? Does any learnable function remain learnable if the multiplicity is not taken into account? 23/26 September 2008 Ambiguous Transducers Jose Oncina q 0 ɛ

37 An ambiguous example f (x n ) = nx a i The good one x ɛ + a i=0 A non equivalent one x ɛ x ɛ + a start q 0 ɛ x a q 1 ɛ + a start The second transducer does not preserve the multiplicity of the strings Note that in the ambiguous case, the membership query should return all the possible transductions. Open questions: Can we still be able to learn if only information about just one transduction is provided in each query? Does any learnable function remain learnable if the multiplicity is not taken into account? 23/26 September 2008 Ambiguous Transducers Jose Oncina q 0 ɛ

38 Another ambiguous example Applying the algorithm: f (x n ) = 2nX a i i=0 x ɛ + a 2 start q 0 ɛ x ɛ q 1 x ɛ q 2 P 2 i=0 ai P 4 i=0 ai x a 2 24/26 September 2008 Ambiguous Transducers Jose Oncina

39 Conclusions We have proposed a learning algorithm that: Can identify any rational fuction with output built up with no empty-transitions extended concatenations extended multiset inclusions It uses membership and equivalence queries As a special case, it identifies any ambiguous rational transducer (with finite output) It works in polynomial time (perhaps there is a problem in the parsing) 25/26 September 2008 Ambiguous Transducers Jose Oncina

40 Any Questions? 26/26 September 2008 Ambiguous Transducers Jose Oncina

Learning Regular Sets

Learning Regular Sets Learning Regular Sets Author: Dana Angluin Presented by: M. Andreína Francisco Department of Computer Science Uppsala University February 3, 2014 Minimally Adequate Teachers A Minimally Adequate Teacher

More information

Advanced Automata Theory 11 Regular Languages and Learning Theory

Advanced Automata Theory 11 Regular Languages and Learning Theory Advanced Automata Theory 11 Regular Languages and Learning Theory Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Advanced

More information

Le rning Regular. A Languages via Alt rn ting. A E Autom ta

Le rning Regular. A Languages via Alt rn ting. A E Autom ta 1 Le rning Regular A Languages via Alt rn ting A E Autom ta A YALE MIT PENN IJCAI 15, Buenos Aires 2 4 The Problem Learn an unknown regular language L using MQ and EQ data mining neural networks geometry

More information

Learning k-edge Deterministic Finite Automata in the Framework of Active Learning

Learning k-edge Deterministic Finite Automata in the Framework of Active Learning Learning k-edge Deterministic Finite Automata in the Framework of Active Learning Anuchit Jitpattanakul* Department of Mathematics, Faculty of Applied Science, King Mong s University of Technology North

More information

Theoretical Computer Science

Theoretical Computer Science Theoretical Computer Science 448 (2012) 41 46 Contents lists available at SciVerse ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Polynomial characteristic sets

More information

Learning cover context-free grammars from structural data

Learning cover context-free grammars from structural data Learning cover context-free grammars from structural data Mircea Marin Gabriel Istrate West University of Timişoara, Romania 11th International Colloquium on Theoretical Aspects of Computing ICTAC 2014

More information

CS 133 : Automata Theory and Computability

CS 133 : Automata Theory and Computability CS 133 : Automata Theory and Computability Lecture Slides 1 Regular Languages and Finite Automata Nestine Hope S. Hernandez Algorithms and Complexity Laboratory Department of Computer Science University

More information

1 Alphabets and Languages

1 Alphabets and Languages 1 Alphabets and Languages Look at handout 1 (inference rules for sets) and use the rules on some examples like {a} {{a}} {a} {a, b}, {a} {{a}}, {a} {{a}}, {a} {a, b}, a {{a}}, a {a, b}, a {{a}}, a {a,

More information

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings.

MATH 433 Applied Algebra Lecture 22: Semigroups. Rings. MATH 433 Applied Algebra Lecture 22: Semigroups. Rings. Groups Definition. A group is a set G, together with a binary operation, that satisfies the following axioms: (G1: closure) for all elements g and

More information

Theory of Computation

Theory of Computation Fall 2002 (YEN) Theory of Computation Midterm Exam. Name:... I.D.#:... 1. (30 pts) True or false (mark O for true ; X for false ). (Score=Max{0, Right- 1 2 Wrong}.) (1) X... If L 1 is regular and L 2 L

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

Kleene Algebras and Algebraic Path Problems

Kleene Algebras and Algebraic Path Problems Kleene Algebras and Algebraic Path Problems Davis Foote May 8, 015 1 Regular Languages 1.1 Deterministic Finite Automata A deterministic finite automaton (DFA) is a model of computation that can simulate

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

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission.

CSE 105 Homework 1 Due: Monday October 9, Instructions. should be on each page of the submission. CSE 5 Homework Due: Monday October 9, 7 Instructions Upload a single file to Gradescope for each group. should be on each page of the submission. All group members names and PIDs Your assignments in this

More information

Complexity of Equivalence and Learning for Multiplicity Tree Automata

Complexity of Equivalence and Learning for Multiplicity Tree Automata Journal of Machine Learning Research 16 (2015) 2465-2500 Submitted 11/14; Revised 6/15; Published 12/15 Complexity of Equivalence and Learning for Multiplicity Tree Automata Ines Marušić James Worrell

More information

Classes of Boolean Functions

Classes of Boolean Functions Classes of Boolean Functions Nader H. Bshouty Eyal Kushilevitz Abstract Here we give classes of Boolean functions that considered in COLT. Classes of Functions Here we introduce the basic classes of functions

More information

Theory of Computation

Theory of Computation Theory of Computation Lecture #2 Sarmad Abbasi Virtual University Sarmad Abbasi (Virtual University) Theory of Computation 1 / 1 Lecture 2: Overview Recall some basic definitions from Automata Theory.

More information

FS Properties and FSTs

FS Properties and FSTs FS Properties and FSTs Chris Dyer Algorithms for NLP 11-711 Announcements HW1 has been posted; due in class in 2 weeks Goals of Today s Lecture Understand properties of regular languages Understand Brzozowski

More information

Learning Context Free Grammars with the Syntactic Concept Lattice

Learning Context Free Grammars with the Syntactic Concept Lattice Learning Context Free Grammars with the Syntactic Concept Lattice Alexander Clark Department of Computer Science Royal Holloway, University of London alexc@cs.rhul.ac.uk ICGI, September 2010 Outline Introduction

More information

straight segment and the symbol b representing a corner, the strings ababaab, babaaba and abaabab represent the same shape. In order to learn a model,

straight segment and the symbol b representing a corner, the strings ababaab, babaaba and abaabab represent the same shape. In order to learn a model, The Cocke-Younger-Kasami algorithm for cyclic strings Jose Oncina Depto. de Lenguajes y Sistemas Informaticos Universidad de Alicante E-03080 Alicante (Spain) e-mail: oncina@dlsi.ua.es Abstract The chain-code

More information

Closure under the Regular Operations

Closure 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

A canonical semi-deterministic transducer

A canonical semi-deterministic transducer A canonical semi-deterministic transducer Achilles A. Beros Joint work with Colin de la Higuera Laboratoire d Informatique de Nantes Atlantique, Université de Nantes September 18, 2014 The Results There

More information

Learning Restricted Models of Arithmetic Circuits

Learning Restricted Models of Arithmetic Circuits Learning Restricted Models of Arithmetic Circuits Adam R. Klivans Department of Computer Science University of Texas at Austin Austin, TX 78712-1188 klivans@cs.utexas.edu Amir Shpilka Faculty of Computer

More information

Automata: a short introduction

Automata: a short introduction ILIAS, University of Luxembourg Discrete Mathematics II May 2012 What is a computer? Real computers are complicated; We abstract up to an essential model of computation; We begin with the simplest possible

More information

Regular Expressions [1] Regular Expressions. Regular expressions can be seen as a system of notations for denoting ɛ-nfa

Regular Expressions [1] Regular Expressions. Regular expressions can be seen as a system of notations for denoting ɛ-nfa Regular Expressions [1] Regular Expressions Regular expressions can be seen as a system of notations for denoting ɛ-nfa They form an algebraic representation of ɛ-nfa algebraic : expressions with equations

More information

AC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013

AC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013 Q.2 a. Prove by mathematical induction n 4 4n 2 is divisible by 3 for n 0. Basic step: For n = 0, n 3 n = 0 which is divisible by 3. Induction hypothesis: Let p(n) = n 3 n is divisible by 3. Induction

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

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 14 Ana Bove May 14th 2018 Recap: Context-free Grammars Simplification of grammars: Elimination of ǫ-productions; Elimination of

More information

Author: Vivek Kulkarni ( )

Author: Vivek Kulkarni ( ) Author: Vivek Kulkarni ( vivek_kulkarni@yahoo.com ) Chapter-3: Regular Expressions Solutions for Review Questions @ Oxford University Press 2013. All rights reserved. 1 Q.1 Define the following and give

More information

Open Problems in Automata Theory: An Idiosyncratic View

Open Problems in Automata Theory: An Idiosyncratic View Open Problems in Automata Theory: An Idiosyncratic View Jeffrey Shallit School of Computer Science University of Waterloo Waterloo, Ontario N2L 3G1 Canada shallit@cs.uwaterloo.ca http://www.cs.uwaterloo.ca/~shallit

More information

Weighted Automata and Monadic Second Order Logic

Weighted Automata and Monadic Second Order Logic and Monadic Second Order Logic Nadia Labai and Johann A. Makowsky ************************* Revised and expanded slides originally presented at GandALF 2013 File:cd-title Probabilistic automata (Rabin

More information

2. Two binary operations (addition, denoted + and multiplication, denoted

2. Two binary operations (addition, denoted + and multiplication, denoted Chapter 2 The Structure of R The purpose of this chapter is to explain to the reader why the set of real numbers is so special. By the end of this chapter, the reader should understand the difference between

More information

Finite Automata and Regular Languages (part III)

Finite Automata and Regular Languages (part III) Finite Automata and Regular Languages (part III) Prof. Dan A. Simovici UMB 1 / 1 Outline 2 / 1 Nondeterministic finite automata can be further generalized by allowing transitions between states without

More information

AFFINE AND PROJECTIVE GEOMETRY, E. Rosado & S.L. Rueda 4. BASES AND DIMENSION

AFFINE AND PROJECTIVE GEOMETRY, E. Rosado & S.L. Rueda 4. BASES AND DIMENSION 4. BASES AND DIMENSION Definition Let u 1,..., u n be n vectors in V. The vectors u 1,..., u n are linearly independent if the only linear combination of them equal to the zero vector has only zero scalars;

More information

MODEL ANSWERS TO HWK #7. 1. Suppose that F is a field and that a and b are in F. Suppose that. Thus a = 0. It follows that F is an integral domain.

MODEL ANSWERS TO HWK #7. 1. Suppose that F is a field and that a and b are in F. Suppose that. Thus a = 0. It follows that F is an integral domain. MODEL ANSWERS TO HWK #7 1. Suppose that F is a field and that a and b are in F. Suppose that a b = 0, and that b 0. Let c be the inverse of b. Multiplying the equation above by c on the left, we get 0

More information

Languages. A language is a set of strings. String: A sequence of letters. Examples: cat, dog, house, Defined over an alphabet:

Languages. A language is a set of strings. String: A sequence of letters. Examples: cat, dog, house, Defined over an alphabet: Languages 1 Languages A language is a set of strings String: A sequence of letters Examples: cat, dog, house, Defined over an alphaet: a,, c,, z 2 Alphaets and Strings We will use small alphaets: Strings

More information

Semidefinite and Second Order Cone Programming Seminar Fall 2001 Lecture 2

Semidefinite and Second Order Cone Programming Seminar Fall 2001 Lecture 2 Semidefinite and Second Order Cone Programming Seminar Fall 2001 Lecture 2 Instructor: Farid Alizadeh Scribe: Xuan Li 9/17/2001 1 Overview We survey the basic notions of cones and cone-lp and give several

More information

FABER Formal Languages, Automata. Lecture 2. Mälardalen University

FABER Formal Languages, Automata. Lecture 2. Mälardalen University CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2010 1 Content Languages, g Alphabets and Strings Strings & String Operations Languages & Language Operations

More information

MODEL ANSWERS TO THE FIRST HOMEWORK

MODEL ANSWERS TO THE FIRST HOMEWORK MODEL ANSWERS TO THE FIRST HOMEWORK 1. Chapter 4, 1: 2. Suppose that F is a field and that a and b are in F. Suppose that a b = 0, and that b 0. Let c be the inverse of b. Multiplying the equation above

More information

Regular Expressions and Language Properties

Regular Expressions and Language Properties Regular Expressions and Language Properties Mridul Aanjaneya Stanford University July 3, 2012 Mridul Aanjaneya Automata Theory 1/ 47 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque

Kleene Algebra and Arden s Theorem. Anshul Kumar Inzemamul Haque Kleene Algebra and Arden s Theorem Anshul Kumar Inzemamul Haque Motivation Regular Expression is a Kleene Algebra. We can use the properties and theorems of Kleene Algebra to simplify regular expressions

More information

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1)

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1) COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2017 Fall Hakjoo Oh COSE212 2017 Fall, Lecture 1 September 4, 2017 1 / 9 Inductive Definitions Inductive definition (induction)

More information

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Theory of Computation. Copyright By NODIA & COMPANY

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Theory of Computation. Copyright By NODIA & COMPANY No part of this publication may be reproduced or distributed in any form or any means, electronic, mechanical, photocopying, or otherwise without the prior permission of the author. GATE SOLVED PAPER Computer

More information

Nondeterministic Finite Automata and Regular Expressions

Nondeterministic Finite Automata and Regular Expressions Nondeterministic Finite Automata and Regular Expressions CS 2800: Discrete Structures, Spring 2015 Sid Chaudhuri Recap: Deterministic Finite Automaton A DFA is a 5-tuple M = (Q, Σ, δ, q 0, F) Q is a finite

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

Theory Bridge Exam Example Questions

Theory Bridge Exam Example Questions Theory Bridge Exam Example Questions Annotated version with some (sometimes rather sketchy) answers and notes. This is a collection of sample theory bridge exam questions. This is just to get some idea

More information

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1)

COSE212: Programming Languages. Lecture 1 Inductive Definitions (1) COSE212: Programming Languages Lecture 1 Inductive Definitions (1) Hakjoo Oh 2018 Fall Hakjoo Oh COSE212 2018 Fall, Lecture 1 September 5, 2018 1 / 10 Inductive Definitions Inductive definition (induction)

More information

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8.

Linear Algebra M1 - FIB. Contents: 5. Matrices, systems of linear equations and determinants 6. Vector space 7. Linear maps 8. Linear Algebra M1 - FIB Contents: 5 Matrices, systems of linear equations and determinants 6 Vector space 7 Linear maps 8 Diagonalization Anna de Mier Montserrat Maureso Dept Matemàtica Aplicada II Translation:

More information

An algebraic characterization of unary two-way transducers

An algebraic characterization of unary two-way transducers An algebraic characterization of unary two-way transducers (Extended Abstract) Christian Choffrut 1 and Bruno Guillon 1 LIAFA, CNRS and Université Paris 7 Denis Diderot, France. Abstract. Two-way transducers

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: 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 information

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

CMSC 330: Organization of Programming Languages. Regular Expressions and Finite Automata CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC330 Spring 2018 1 How do regular expressions work? What we ve learned What regular expressions are What they

More information

Set Theory. CSE 215, Foundations of Computer Science Stony Brook University

Set Theory. CSE 215, Foundations of Computer Science Stony Brook University Set Theory CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 Set theory Abstract set theory is one of the foundations of mathematical thought Most mathematical

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

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Organization of Programming Languages Regular Expressions and Finite Automata CMSC 330 Spring 2017 1 How do regular expressions work? What we ve learned What regular expressions are What they

More information

Chapter 4 Finite Fields

Chapter 4 Finite Fields Chapter 4 Finite Fields Introduction will now introduce finite fields of increasing importance in cryptography AES, Elliptic Curve, IDEA, Public Key concern operations on numbers what constitutes a number

More information

Countable and uncountable sets. Matrices.

Countable and uncountable sets. Matrices. Lecture 11 Countable and uncountable sets. Matrices. Instructor: Kangil Kim (CSE) E-mail: kikim01@konkuk.ac.kr Tel. : 02-450-3493 Room : New Milenium Bldg. 1103 Lab : New Engineering Bldg. 1202 Next topic:

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

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Context-Free Languages (Pre Lecture)

Context-Free Languages (Pre Lecture) Context-Free Languages (Pre Lecture) Dr. Neil T. Dantam CSCI-561, Colorado School of Mines Fall 2017 Dantam (Mines CSCI-561) Context-Free Languages (Pre Lecture) Fall 2017 1 / 34 Outline Pumping Lemma

More information

Notes on generating functions in automata theory

Notes on generating functions in automata theory Notes on generating functions in automata theory Benjamin Steinberg December 5, 2009 Contents Introduction: Calculus can count 2 Formal power series 5 3 Rational power series 9 3. Rational power series

More information

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Section 2.1 Introduction Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Important for counting. Programming languages have set operations. Set theory

More information

acs-04: Regular Languages Regular Languages Andreas Karwath & Malte Helmert Informatik Theorie II (A) WS2009/10

acs-04: Regular Languages Regular Languages Andreas Karwath & Malte Helmert Informatik Theorie II (A) WS2009/10 Regular Languages Andreas Karwath & Malte Helmert 1 Overview Deterministic finite automata Regular languages Nondeterministic finite automata Closure operations Regular expressions Nonregular languages

More information

Learning Weighted Automata

Learning Weighted Automata Learning Weighted Automata Borja Balle 1 and Mehryar Mohri 2,3 1 School of Computer Science, McGill University, Montréal, Canada 2 Courant Institute of Mathematical Sciences, New York, NY 3 Google Research,

More information

Pushdown automata. Twan van Laarhoven. Institute for Computing and Information Sciences Intelligent Systems Radboud University Nijmegen

Pushdown automata. Twan van Laarhoven. Institute for Computing and Information Sciences Intelligent Systems Radboud University Nijmegen Pushdown automata Twan van Laarhoven Institute for Computing and Information Sciences Intelligent Systems Version: fall 2014 T. van Laarhoven Version: fall 2014 Formal Languages, Grammars and Automata

More information

LBT for Procedural and Reac1ve Systems Part 2: Reac1ve Systems Basic Theory

LBT for Procedural and Reac1ve Systems Part 2: Reac1ve Systems Basic Theory LBT for Procedural and Reac1ve Systems Part 2: Reac1ve Systems Basic Theory Karl Meinke, karlm@kth.se School of Computer Science and Communica:on KTH Stockholm 0. Overview of the Lecture 1. Learning Based

More information

Learning Regular ω-languages

Learning Regular ω-languages Learning Regular ω-languages The Goal Device an algorithm for learning an unknown regular ω-language L 3 The Goal Device an algorithm for learning an unknown regular ω-language L set of infinite words

More information

Closure under the Regular Operations

Closure under the Regular Operations Closure under the Regular Operations 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

More information

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence Section 2.4 1 Section Summary Sequences. Examples: Geometric Progression, Arithmetic Progression Recurrence Relations Example: Fibonacci Sequence Summations 2 Introduction Sequences are ordered lists of

More information

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved.

7.5 Operations with Matrices. Copyright Cengage Learning. All rights reserved. 7.5 Operations with Matrices Copyright Cengage Learning. All rights reserved. What You Should Learn Decide whether two matrices are equal. Add and subtract matrices and multiply matrices by scalars. Multiply

More information

UNIT-III REGULAR LANGUAGES

UNIT-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 information

Theory of Computation (Classroom Practice Booklet Solutions)

Theory of Computation (Classroom Practice Booklet Solutions) Theory of Computation (Classroom Practice Booklet Solutions) 1. Finite Automata & Regular Sets 01. Ans: (a) & (c) Sol: (a) The reversal of a regular set is regular as the reversal of a regular expression

More information

This lecture covers Chapter 7 of HMU: Properties of CFLs

This lecture covers Chapter 7 of HMU: Properties of CFLs This lecture covers Chapter 7 of HMU: Properties of CFLs Chomsky Normal Form Pumping Lemma for CFs Closure Properties of CFLs Decision Properties of CFLs Additional Reading: Chapter 7 of HMU. Chomsky Normal

More information

Properties of Context-Free Languages

Properties of Context-Free Languages Properties of Context-Free Languages 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

More information

Foreword. Grammatical inference. Examples of sequences. Sources. Example of problems expressed by sequences Switching the light

Foreword. Grammatical inference. Examples of sequences. Sources. Example of problems expressed by sequences Switching the light Foreword Vincent Claveau IRISA - CNRS Rennes, France In the course of the course supervised symbolic machine learning technique concept learning (i.e. 2 classes) INSA 4 Sources s of sequences Slides and

More information

PS2 - Comments. University of Virginia - cs3102: Theory of Computation Spring 2010

PS2 - Comments. University of Virginia - cs3102: Theory of Computation Spring 2010 University of Virginia - cs3102: Theory of Computation Spring 2010 PS2 - Comments Average: 77.4 (full credit for each question is 100 points) Distribution (of 54 submissions): 90, 12; 80 89, 11; 70-79,

More information

Monoids. Definition: A binary operation on a set M is a function : M M M. Examples:

Monoids. Definition: A binary operation on a set M is a function : M M M. Examples: Monoids Definition: A binary operation on a set M is a function : M M M. If : M M M, we say that is well defined on M or equivalently, that M is closed under the operation. Examples: Definition: A monoid

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 4 Ana Bove March 23rd 2018 Recap: Formal Proofs How formal should a proof be? Depends on its purpose...... but should be convincing......

More information

The Binomial Theorem.

The Binomial Theorem. The Binomial Theorem RajeshRathod42@gmail.com The Problem Evaluate (A+B) N as a polynomial in powers of A and B Where N is a positive integer A and B are numbers Example: (A+B) 5 = A 5 +5A 4 B+10A 3 B

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 5 CHAPTER 2 FINITE AUTOMATA 1. Deterministic Finite Automata DFA 2. Nondeterministic Finite Automata NDFA 3. Finite Automata

More information

POLI270 - Linear Algebra

POLI270 - Linear Algebra POLI7 - Linear Algebra Septemer 8th Basics a x + a x +... + a n x n b () is the linear form where a, b are parameters and x n are variables. For a given equation such as x +x you only need a variable and

More information

Elementary maths for GMT

Elementary maths for GMT Elementary maths for GMT Linear Algebra Part 2: Matrices, Elimination and Determinant m n matrices The system of m linear equations in n variables x 1, x 2,, x n a 11 x 1 + a 12 x 2 + + a 1n x n = b 1

More information

CMP 309: Automata Theory, Computability and Formal Languages. Adapted from the work of Andrej Bogdanov

CMP 309: Automata Theory, Computability and Formal Languages. Adapted from the work of Andrej Bogdanov CMP 309: Automata Theory, Computability and Formal Languages Adapted from the work of Andrej Bogdanov Course outline Introduction to Automata Theory Finite Automata Deterministic Finite state automata

More information

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018 Homework #1 Assigned: August 20, 2018 Review the following subjects involving systems of equations and matrices from Calculus II. Linear systems of equations Converting systems to matrix form Pivot entry

More information

Linear Algebra. Min Yan

Linear Algebra. Min Yan Linear Algebra Min Yan January 2, 2018 2 Contents 1 Vector Space 7 1.1 Definition................................. 7 1.1.1 Axioms of Vector Space..................... 7 1.1.2 Consequence of Axiom......................

More information

Formal Languages, Automata and Models of Computation

Formal 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 information

ICS 6N Computational Linear Algebra Matrix Algebra

ICS 6N Computational Linear Algebra Matrix Algebra ICS 6N Computational Linear Algebra Matrix Algebra Xiaohui Xie University of California, Irvine xhx@uci.edu February 2, 2017 Xiaohui Xie (UCI) ICS 6N February 2, 2017 1 / 24 Matrix Consider an m n matrix

More information

CS6901: review of Theory of Computation and Algorithms

CS6901: review of Theory of Computation and Algorithms CS6901: review of Theory of Computation and Algorithms Any mechanically (automatically) discretely computation of problem solving contains at least three components: - problem description - computational

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

Definition 2.3. We define addition and multiplication of matrices as follows.

Definition 2.3. We define addition and multiplication of matrices as follows. 14 Chapter 2 Matrices In this chapter, we review matrix algebra from Linear Algebra I, consider row and column operations on matrices, and define the rank of a matrix. Along the way prove that the row

More information

ECEN 5022 Cryptography

ECEN 5022 Cryptography Elementary Algebra and Number Theory University of Colorado Spring 2008 Divisibility, Primes Definition. N denotes the set {1, 2, 3,...} of natural numbers and Z denotes the set of integers {..., 2, 1,

More information

Planning in POMDPs Using Multiplicity Automata

Planning in POMDPs Using Multiplicity Automata Planning in POMDPs Using Multiplicity Automata Eyal Even-Dar School of Computer Science Tel-Aviv University Tel-Aviv, Israel 69978 evend@post.tau.ac.il Sham M. Kakade Computer and Information Science University

More information

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field.

MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field. MATH 423 Linear Algebra II Lecture 3: Subspaces of vector spaces. Review of complex numbers. Vector space over a field. Vector space A vector space is a set V equipped with two operations, addition V V

More information

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES Contents i SYLLABUS UNIT - I CHAPTER - 1 : AUT UTOMA OMATA Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 2 : FINITE AUT UTOMA OMATA An Informal Picture of Finite Automata,

More information

In English, there are at least three different types of entities: letters, words, sentences.

In English, there are at least three different types of entities: letters, words, sentences. Chapter 2 Languages 2.1 Introduction In English, there are at least three different types of entities: letters, words, sentences. letters are from a finite alphabet { a, b, c,..., z } words are made up

More information

Non-context-Free Languages. CS215, Lecture 5 c

Non-context-Free Languages. CS215, Lecture 5 c Non-context-Free Languages CS215, Lecture 5 c 2007 1 The Pumping Lemma Theorem. (Pumping Lemma) Let be context-free. There exists a positive integer divided into five pieces, Proof for for each, and..

More information

Automata Theory Final Exam Solution 08:10-10:00 am Friday, June 13, 2008

Automata Theory Final Exam Solution 08:10-10:00 am Friday, June 13, 2008 Automata Theory Final Exam Solution 08:10-10:00 am Friday, June 13, 2008 Name: ID #: This is a Close Book examination. Only an A4 cheating sheet belonging to you is acceptable. You can write your answers

More information

Homework 1/Solutions. Graded Exercises

Homework 1/Solutions. Graded Exercises MTH 310-3 Abstract Algebra I and Number Theory S18 Homework 1/Solutions Graded Exercises Exercise 1. Below are parts of the addition table and parts of the multiplication table of a ring. Complete both

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2016 http://cseweb.ucsd.edu/classes/sp16/cse105-ab/ Today's learning goals Sipser Ch 1.4 Give an example of a non-regular language Outline two strategies for proving

More information

The Partial Derivative method in Arithmetic Circuit Complexity

The Partial Derivative method in Arithmetic Circuit Complexity The Partial Derivative method in Arithmetic Circuit Complexity A thesis submitted in partial fulllment of the requirements for the award of the degree of Master of Science by Yadu Vasudev Junior Research

More information