A canonical semi-deterministic transducer
|
|
- Coleen Preston
- 6 years ago
- Views:
Transcription
1 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
2 The Results There are learning algorithms for deterministic transducers. How far toward non-determinism can we extend learning? We consider a natural extension of deterministic transducers called semi-deterministic transducers (SDTs), and we find three results: There is a canonical form for SDTs. Even with domain knowledge, they are not learnable regardless of efficiency bounds. They are learnable with very weak additional queries (with polynomial bounds). It is possible that these weak queries can be simulated through statistical methods.
3 The Model A picture to illustrate the definition. a:aa,bb q a a:aa,bb q λ b:λ q aa a:a b:ab,ba q b b:ab,ba
4 The Model A picture to illustrate the definition. aa:aa,bb q a a:aa,bb q λ b:λ q aa a:a b:ab,ba q b b:ab,ba For a transition, e, the input (i(e)) is a member of the input alphabet (Σ).
5 The Model A picture to illustrate the definition. a:aa,bb q a a:aa,bb q λ b:λ q aa a:a b:a,ab q b b:ab,ba For a transition, e, the input (i(e)) is a member of the input alphabet (Σ). The output (o(e)) is a finite set of incomparable strings over the output alphabet (Ω).
6 The Model A picture to illustrate the definition. a:aa,bb q a a:aa,bb q λ b:λ q aa a:a b:ab,ba q b b:ab,ba b:a For a transition, e, the input (i(e)) is a member of the input alphabet (Σ). The output (o(e)) is a finite set of incomparable strings over the output alphabet (Ω). From each state, there is at most one transition with input x Σ.
7 The Model A picture to illustrate the definition. a:aa,bb q a a:aa,bb q λ b:λ q aa a:a b:ab,ba q b b:ab,ba The translations of aa are AAAA, AABB, BBAA and BBBB. The number of translations of a string can grow exponentially in the length of the string, for a fixed transducer.
8 The Model One final assumption: there is a unique initial state. This is for convenience. A few useful observations: λ is never the input of transition. If λ is in a set of outputs, it is the only member. Every string has a unique path through an SDT. Every string has a finite number of translations. These observations allow us to form a tree of outputs analogous to one for a sequential or subsequential transducer. In our case it is a tree of output trees.
9 The Tree of Output Trees Consider the tree of inputs that will not be rejected. λ a b aa bb aaa aab bba bbb aaaa aabb aaab aaba bbaa bbbb bbab bbba
10 The Tree of Output Trees The tree is the domain of a function to P(Ω ). λ {λ} a {AA, BB} b {AB, BA} aa {AAAA, AABB, BBAA, BBBB} bb {ABAB, ABBA, BAAB, BABA} (further outputs omitted) aaa aab bba bbb aaaa aabb aaab aaba bbaa bbbb bbab bbba
11 The Tree of Output Trees By looking one level higher in the ranked universe, a relation that was not well-defined has become a well-defined function. This function is the semantic representation of the transducer. In OSTIA and other state-merging algorithms, there are two phases: onwarding and merging. Onwarding is performed for deterministic transducers by finding common prefixes for translations comparing outputs in a much simpler tree of outputs. We demonstrate that this is possible in the much more general case of SDTs.
12 Onwarding The existing technique: Fix a dataset. λ : λ a : AB ba : AAB aaa : ABBA abb : ABAA bba : AABB bbb : AABA
13 Onwarding The existing technique: Fix a dataset. Consider inputs with a common prefix. λ : λ a : AB b :? ba : AAB aaa : ABBA abb : ABAA bba : AABB bbb : AABA
14 Onwarding The existing technique: Fix a dataset. Consider inputs with a common prefix. List the outputs of those inputs. λ : λ a : AB b :? ba : AAB aaa : ABBA abb : ABAA bba : AABB bbb : AABA
15 Onwarding The existing technique: Fix a dataset. Consider inputs with a common prefix. List the outputs of those inputs. Find the prefixes common to all the outputs. λ : λ a : AB b : A, AA or AAB ba : AAB aaa : ABBA abb : ABAA bba : AABB bbb : AABA
16 Onwarding The existing technique: Fix a dataset. Consider inputs with a common prefix. List the outputs of those inputs. Find the prefixes common to all the outputs. Choose a best common prefix to onward. λ : λ a : AB b : AAB ba : AAB aaa : ABBA abb : ABAA bba : AABB bbb : AABA
17 Onwarding To understand our new technique, we examine sets of prefixes. Consider the translations of aabb using the earlier example: {AAAAAB, AAAABA, AABBAB, AABBBA, BBAAAB, BBAABA, BBBBAB, BBBBBA} AAAAAB AABBAB AAAABA AABBBA BBAAAB BBBBAB BBAABA BBBBBA
18 Onwarding To understand our new technique, we examine sets of prefixes. Consider the translations of aabb using the earlier example: {AAAAAB, AAAABA, AABBAB, AABBBA, BBAAAB, BBAABA, BBBBAB, BBBBBA} AA BB AAAAAB AABBAB AAAABA AABBBA BBAAAB BBBBAB BBAABA BBBBBA
19 Onwarding {AA, BB} is a maximal antichain of the tree. We call it a valid antichain because the tree below AA is identical to the tree below BB. This is a consequence of AA and BB being outputs of the same transition. For a tree T and x T, T x is the tree of suffixes of x in T. Definition Given a tree, T, a subset S of T is a valid antichain if S is a maximal antichain and ( x, y S)(T x = T y ). Definition For P and Q, sets of strings over some common alphabet, we say that P < ac Q (P is antichain less than Q) if either 1. P < Q, or 2. P = Q and, for all x P and y Q, if x y, then x y.
20 Onwarding Theorem For a finite set of strings, S, the valid antichains of S are a finite linear order under < ac. Consequence: A canonical way of decomposing trees into initial segments. The new technique: Consider all inputs that have a common prefix. List the trees of outputs for those inputs. Find the valid antichains of the trees. Pick a valid antichain common to all of the trees.
21 Conclusion Given access to translation queries, the canonical form can be found and SDTs can be learned from a polynomial size characteristic sample. In other words, there is a single algorithm that learns every SDT under these conditions. Without translation queries, this is not possible. One possible avenue to pursue is to determine if translation queries can be replaced with statistical analysis: both provide negative information. This will require a careful development of probabilistic model.
22 Thank You
Chapter 4. Regular Expressions. 4.1 Some Definitions
Chapter 4 Regular Expressions 4.1 Some Definitions Definition: If S and T are sets of strings of letters (whether they are finite or infinite sets), we define the product set of strings of letters to be
More informationThe 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 informationFABER 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 informationCSCI 340: Computational Models. Regular Expressions. Department of Computer Science
CSCI 340: Computational Models Regular Expressions Chapter 4 Department of Computer Science Yet Another New Method for Defining Languages Given the Language: L 1 = {x n for n = 1 2 3...} We could easily
More informationCS6902 Theory of Computation and Algorithms
CS6902 Theory of Computation and Algorithms Any mechanically (automatically) discretely computation of problem solving contains at least three components: - problem description - computational tool - procedure/analysis
More informationDeciding Representability of Sets of Words of Equal Length
Deciding Representability of Sets of Words of Equal Length F. Blanchet-Sadri 1 Sean Simmons 2 November 24, 2012 Abstract Partial words are sequences over a finite alphabet that may have holes that match,
More informationStream Codes. 6.1 The guessing game
About Chapter 6 Before reading Chapter 6, you should have read the previous chapter and worked on most of the exercises in it. We ll also make use of some Bayesian modelling ideas that arrived in the vicinity
More informationThe assignment is not difficult, but quite labour consuming. Do not wait until the very last day.
CAS 705 CAS 705. Sample solutions to the assignment 1 (many questions have more than one solutions). Total of this assignment is 129 pts. Each assignment is worth 25%. The assignment is not difficult,
More information6.4 Binomial Coefficients
64 Bioial Coefficiets Pascal s Forula Pascal s forula, aed after the seveteeth-cetury Frech atheaticia ad philosopher Blaise Pascal, is oe of the ost faous ad useful i cobiatorics (which is the foral ter
More informationCS Automata, Computability and Formal Languages
Automata, Computability and Formal Languages Luc Longpré faculty.utep.edu/longpre 1 - Pg 1 Slides : version 3.1 version 1 A. Tapp version 2 P. McKenzie, L. Longpré version 2.1 D. Gehl version 2.2 M. Csűrös,
More informationA Canonical Semi-Deterministic Transducer
JMLR: Workshop and Conference Proceedings 34:33 48, 2014 Proceedings of the 12th ICGI A Canonical Semi-Deterministic Transducer Achilles Beros Colin de la Higuera Laboratoire LINA UMR CNRS 6241 UFR de
More informationAuthor: 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 informationIn 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 informationLinear Classifiers (Kernels)
Universität Potsdam Institut für Informatik Lehrstuhl Linear Classifiers (Kernels) Blaine Nelson, Christoph Sawade, Tobias Scheffer Exam Dates & Course Conclusion There are 2 Exam dates: Feb 20 th March
More informationLearning 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 informationCOSE212: 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 informationComputational Learning Theory Learning Patterns (Monomials)
Computational Learning Theory Learning Patterns (Monomials) Akihiro Yamamoto 山本章博 http://www.iip.ist.i.kyoto-u.ac.jp/member/akihiro/ akihiro@i.kyoto-u.ac.jp 1 Formal Languages : a finite set of symbols
More informationAutomata Theory CS F-08 Context-Free Grammars
Automata Theory CS411-2015F-08 Context-Free Grammars David Galles Department of Computer Science University of San Francisco 08-0: Context-Free Grammars Set of Terminals (Σ) Set of Non-Terminals Set of
More informationCOSE212: 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 informationCS A Term 2009: Foundations of Computer Science. Homework 2. By Li Feng, Shweta Srivastava, and Carolina Ruiz.
CS3133 - A Term 2009: Foundations of Computer Science Prof. Carolina Ruiz Homework 2 WPI By Li Feng, Shweta Srivastava, and Carolina Ruiz Chapter 4 Problem 1: (10 Points) Exercise 4.3 Solution 1: S is
More informationLearning 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 informationFormal solution Chen-Fliess series
Formal solution Chen-Fliess series Ṡ = S(t) u a (t) a, S() = 1 Z = m a Z on algebra Â(Z ) of formal power series in aset Z of noncommuting indeterminates (letters) has the unique solution CF(T, u) = w
More informationdownload instant at Assume that (w R ) R = w for all strings w Σ of length n or less.
Chapter 2 Languages 3. We prove, by induction on the length of the string, that w = (w R ) R for every string w Σ. Basis: The basis consists of the null string. In this case, (λ R ) R = (λ) R = λ as desired.
More informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 14 SMALL REVIEW FOR FINAL SOME Y/N QUESTIONS Q1 Given Σ =, there is L over Σ Yes: = {e} and L = {e} Σ Q2 There are uncountably
More information1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u,
1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u, v, x, y, z as per the pumping theorem. 3. Prove that
More informationAutomata 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 informationUsing Multiplicity Automata to Identify Transducer Relations from Membership and Equivalence Queries
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
More informationForeword. 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 informationTheory of Computer Science
Theory of Computer Science C1. Formal Languages and Grammars Malte Helmert University of Basel March 14, 2016 Introduction Example: Propositional Formulas from the logic part: Definition (Syntax of Propositional
More informationOn Parsing Expression Grammars A recognition-based system for deterministic languages
Bachelor thesis in Computer Science On Parsing Expression Grammars A recognition-based system for deterministic languages Author: Démian Janssen wd.janssen@student.ru.nl First supervisor/assessor: Herman
More informationRecap from Last Time
Regular Expressions Recap from Last Time Regular Languages A language L is a regular language if there is a DFA D such that L( D) = L. Theorem: The following are equivalent: L is a regular language. There
More informationcse303 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{a, b, c} {a, b} {a, c} {b, c} {a}
Section 4.3 Order Relations A binary relation is an partial order if it transitive and antisymmetric. If R is a partial order over the set S, we also say, S is a partially ordered set or S is a poset.
More informationPREDICTING NEW STRUCTURES: THE SIMPLE CUBIC AND PEROVSKITE CASE
PREDICTING NEW STRUCTURES: THE SIMPLE CUBIC AND PEROVSKITE CASE by Matthew Lords advisor Dr. Gus Hart Physics 492R Capstone Project Report Department of Physics and Astronomy Brigham Young University March
More informationComputational Learning Theory Regular Expression vs. Monomilas
Computational Learning Theory Regular Expression vs. Monomilas Akihiro Yamamoto 山本章博 http://www.iip.ist.i.kyoto-u.ac.jp/member/akihiro/ akihiro@i.kyoto-u.ac.jp 1 Contents What about a regular expressions?
More informationCS 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 informationContext Free Languages. Automata Theory and Formal Grammars: Lecture 6. Languages That Are Not Regular. Non-Regular Languages
Context Free Languages Automata Theory and Formal Grammars: Lecture 6 Context Free Languages Last Time Decision procedures for FAs Minimum-state DFAs Today The Myhill-Nerode Theorem The Pumping Lemma Context-free
More informationLecture 11 Context-Free Languages
Lecture 11 Context-Free Languages COT 4420 Theory of Computation Chapter 5 Context-Free Languages n { a b : n n { ww } 0} R Regular Languages a *b* ( a + b) * Example 1 G = ({S}, {a, b}, S, P) Derivations:
More informationHomework 4. Chapter 7. CS A Term 2009: Foundations of Computer Science. By Li Feng, Shweta Srivastava, and Carolina Ruiz
CS3133 - A Term 2009: Foundations of Computer Science Prof. Carolina Ruiz Homework 4 WPI By Li Feng, Shweta Srivastava, and Carolina Ruiz Chapter 7 Problem: Chap 7.1 part a This PDA accepts the language
More information60-354, Theory of Computation Fall Asish Mukhopadhyay School of Computer Science University of Windsor
60-354, Theory of Computation Fall 2013 Asish Mukhopadhyay School of Computer Science University of Windsor Pushdown Automata (PDA) PDA = ε-nfa + stack Acceptance ε-nfa enters a final state or Stack is
More informationNondeterministic 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 information18 Learning Transducers
18 Learning Transducers Pulpo a Feira, Octopus at a party Anonymous, From a menu in O Grove, Galicia Die Mathematiker sind eine Art Franzosen: Redet man zu ihnen, so übersetzen sie es in ihre Sprache,
More informationCSEP 590 Data Compression Autumn Arithmetic Coding
CSEP 590 Data Compression Autumn 2007 Arithmetic Coding Reals in Binary Any real number x in the interval [0,1) can be represented in binary as.b 1 b 2... where b i is a bit. x 0 0 1 0 1... binary representation
More informationHarvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries
Harvard CS121 and CSCI E-121 Lecture 2: Mathematical Preliminaries Harry Lewis September 5, 2013 Reading: Sipser, Chapter 0 Sets Sets are defined by their members A = B means that for every x, x A iff
More informationAvoiding Large Squares in Partial Words
Avoiding Large Squares in Partial Words F Blanchet-Sadri 1 Ilkyoo Choi 2 Robert Mercaş 3 April 5, 2011 Abstract Well-known results on the avoidance of large squares in (full) words include: (1) Fraenkel
More informationUsing bases to simplify asymptotic expansions
1 Using bases to simplify asymptotic expansions Matthias Kawski 1 Amit Sanyal 2 1 Department of Mathematics and Statistics Arizona State University 2 Department of Mechanical and Aerospace Engineering
More information16 Learning Probabilistic Finite Automata
16 Learning Probabilistic Finite Automata En efecto, las computadoras parten del sofisma, políticamente inaceptable, de que dos y dos son cuatro. Su conservadurismo es feroz en este respeto. Pablo de la
More informationAutomata, Computability and Complexity with Applications Exercises in the Book Solutions Elaine Rich
Automata, Computability and Complexity with Applications Exercises in the Book Solutions Elaine Rich Part I: Introduction 1 Why Study Automata Theory? 2 Languages and Strings 1) Consider the language L
More informationTheoretical 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 informationPushdown Automata. Reading: Chapter 6
Pushdown Automata Reading: Chapter 6 1 Pushdown Automata (PDA) Informally: A PDA is an NFA-ε with a infinite stack. Transitions are modified to accommodate stack operations. Questions: What is a stack?
More informationLR2: LR(0) Parsing. LR Parsing. CMPT 379: Compilers Instructor: Anoop Sarkar. anoopsarkar.github.io/compilers-class
LR2: LR(0) Parsing LR Parsing CMPT 379: Compilers Instructor: Anoop Sarkar anoopsarkar.github.io/compilers-class Parsing - Roadmap Parser: decision procedure: builds a parse tree Top-down vs. bottom-up
More informationTheoretical Computer Science
Theoretical Computer Science 412 (2011) 3752 3758 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: wwwelseviercom/locate/tcs Avoiding large squares in partial words
More informationAutomata Theory CS F-04 Non-Determinisitic Finite Automata
Automata Theory CS411-2015F-04 Non-Determinisitic Finite Automata David Galles Department of Computer Science University of San Francisco 04-0: Non-Determinism A Deterministic Finite Automata s transition
More informationContext-Free Grammar
Context-Free Grammar CFGs are more powerful than regular expressions. They are more powerful in the sense that whatever can be expressed using regular expressions can be expressed using context-free grammars,
More informationFLAC Context-Free Grammars
FLAC Context-Free Grammars Klaus Sutner Carnegie Mellon Universality Fall 2017 1 Generating Languages Properties of CFLs Generation vs. Recognition 3 Turing machines can be used to check membership in
More informationC1.1 Introduction. Theory of Computer Science. Theory of Computer Science. C1.1 Introduction. C1.2 Alphabets and Formal Languages. C1.
Theory of Computer Science March 20, 2017 C1. Formal Languages and Grammars Theory of Computer Science C1. Formal Languages and Grammars Malte Helmert University of Basel March 20, 2017 C1.1 Introduction
More informationAutomata: 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 informationComplexité palindromique des codages de rotations et conjectures
Complexité palindromique des codages de rotations et conjectures Sébastien Labbé Laboratoire d Informatique, de Robotique et de Microélectronique de Montpellier Université Montpellier 2 Laboratoire de
More informationSturmian Words, Sturmian Trees and Sturmian Graphs
Sturmian Words, Sturmian Trees and Sturmian Graphs A Survey of Some Recent Results Jean Berstel Institut Gaspard-Monge, Université Paris-Est CAI 2007, Thessaloniki Jean Berstel (IGM) Survey on Sturm CAI
More informationarxiv: v1 [math.gr] 21 Feb 2014
LEFT TRANSITIVE AG-GROUPOIDS M. RASHAD, I. AHMAD, AND M. SHAH arxiv:1402.5296v1 [math.gr] 21 Feb 2014 Abstract. An AG-groupoid is an algebraic structure that satisfies the left invertive law: (ab)c = (cb)a.
More informationOne-relation languages and ω-code generators
One-relation languages and ω-code generators Tran Vinh Duc, Igor Litovsky I3S Université de Nice - Sophia Antipolis France Journées Montoises d Informatique Théorique AMIENS, 2010 Infinite words Let A
More informationTheory 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 informationA Universal Turing Machine
A Universal Turing Machine A limitation of Turing Machines: Turing Machines are hardwired they execute only one program Real Computers are re-programmable Solution: Universal Turing Machine Attributes:
More informationTheoretical Computer Science
Theoretical Computer Science Zdeněk Sawa Department of Computer Science, FEI, Technical University of Ostrava 17. listopadu 15, Ostrava-Poruba 708 33 Czech republic September 22, 2017 Z. Sawa (TU Ostrava)
More informationCompiler Design 1. LR Parsing. Goutam Biswas. Lect 7
Compiler Design 1 LR Parsing Compiler Design 2 LR(0) Parsing An LR(0) parser can take shift-reduce decisions entirely on the basis of the states of LR(0) automaton a of the grammar. Consider the following
More informationFALL 07 CSE 213: HW4
FALL 07 CSE 213: HW4 1) R 1 is not a partial ordered relation, since it is not antisymmetric. Having (1,3) and (3,1) in the relation; does not imply that 1=3 because 1 3. R 2 is a partial order because
More informationContext-free Languages and Pushdown Automata
Context-free Languages and Pushdown Automata Finite Automata vs CFLs E.g., {a n b n } CFLs Regular From earlier results: Languages every regular language is a CFL but there are CFLs that are not regular
More informationchao-dyn/ Nov 1995
DESY 95{98 ISSN 048 { 9833 November 995 Symbolic Dynamics and Periodic Orbits for the Cardioid Billiard by chao-dyn/95004 6 Nov 995 Abstract: A. Backer y) and H. R. Dullin z 2) ) II. Institut fur Theoretische
More informationDynamic Programming. Shuang Zhao. Microsoft Research Asia September 5, Dynamic Programming. Shuang Zhao. Outline. Introduction.
Microsoft Research Asia September 5, 2005 1 2 3 4 Section I What is? Definition is a technique for efficiently recurrence computing by storing partial results. In this slides, I will NOT use too many formal
More informationNonregular Languages
Nonregular Languages Recap from Last Time Theorem: The following are all equivalent: L is a regular language. There is a DFA D such that L( D) = L. There is an NFA N such that L( N) = L. There is a regular
More informationCompiler Design. Spring Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz
Compiler Design Spring 2011 Lexical Analysis Sample Exercises and Solutions Prof. Pedro C. Diniz USC / Information Sciences Institute 4676 Admiralty Way, Suite 1001 Marina del Rey, California 90292 pedro@isi.edu
More informationCSE 105 THEORY OF COMPUTATION
CSE 105 THEORY OF COMPUTATION "Winter" 2018 http://cseweb.ucsd.edu/classes/wi18/cse105-ab/ Today's learning goals Sipser Section 1.1 Design an automaton that recognizes a given language. Specify each of
More informationEntropy Games and Matrix Multiplication Games. EQINOCS seminar
Entropy Games and Matrix Multiplication Games Eugene Asarin Julien Cervelle Aldric Degorre Cătălin Dima Florian Horn Victor Kozyakin IRIF, LACL, IITP EQINOCS seminar 2016-05-11 A game of freedom The story
More informationRight Derivations on Semirings
International Mathematical Forum, Vol. 8, 2013, no. 32, 1569-1576 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/imf.2013.38150 Right Derivations on Semirings S. P. Nirmala Devi Department of
More informationConcordia University Department of Computer Science & Software Engineering
Concordia University Department of Computer Science & Software Engineering COMP 335/4 Theoretical Computer Science Winter 2015 Assignment 3 1. In each case, what language is generated by CFG s below. Justify
More informationThe Probability of Winning a Series. Gregory Quenell
The Probability of Winning a Series Gregory Quenell Exercise: Team A and Team B play a series of n + games. The first team to win n + games wins the series. All games are independent, and Team A wins any
More informationCongruence based approaches
Congruence based approaches Learnable representations for languages Alexander Clark Department of Computer Science Royal Holloway, University of London August 00 ESSLLI, 00 Outline Distributional learning
More informationEmergent Chance. Christian List and Marcus Pivato * Abstract: We offer a new argument for the claim that there can be non-degenerate
1 Emergent Chance Christian List and Marcus Pivato * February-April 2013, revised June 2014 Abstract: We offer a new argument for the claim that there can be non-degenerate objective chance in a deterministic
More informationSupplementary Examples for
Supplementary Examples for Infinite Interval Exchange Transformations from Shifts ([LN15]) Luis-Miguel Lopez Philippe Narbel Version 1.0, April, 2016 Contents A The Shifted Intervals Preservation (Lemma
More information1 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 informationCS375 Midterm Exam Solution Set (Fall 2017)
CS375 Midterm Exam Solution Set (Fall 2017) Closed book & closed notes October 17, 2017 Name sample 1. (10 points) (a) Put in the following blank the number of strings of length 5 over A={a, b, c} that
More informationHomework 4 Solutions. 2. Find context-free grammars for the language L = {a n b m c k : k n + m}. (with n 0,
Introduction to Formal Language, Fall 2016 Due: 21-Apr-2016 (Thursday) Instructor: Prof. Wen-Guey Tzeng Homework 4 Solutions Scribe: Yi-Ruei Chen 1. Find context-free grammars for the language L = {a n
More informationCompressed Suffix Arrays and Suffix Trees with Applications to Text Indexing and String Matching
Compressed Suffix Arrays and Suffix Trees with Applications to Text Indexing and String Matching Roberto Grossi Dipartimento di Informatica Università di Pisa 56125 Pisa, Italy grossi@di.unipi.it Jeffrey
More informationLecture 1 09/08/2017
15CS54 Automata Theory & Computability By Harivinod N Asst. Professor, Dept of CSE, VCET Puttur 1 Lecture 1 09/08/2017 3 1 Text Books 5 Why Study the Theory of Computation? Implementations come and go.
More information2018 Canadian Senior Mathematics Contest
The CENTRE for EDUCATION in MATHEMATICS and COMPUTING cemc.uwaterloo.ca 208 Canadian Senior Mathematics Contest Wednesday, November 2, 208 (in North America and South America) Thursday, November 22, 208
More informationÖVNINGSUPPGIFTER I SAMMANHANGSFRIA SPRÅK. 17 april Classrum Edition
ÖVNINGSUPPGIFTER I SAMMANHANGSFRIA SPRÅK 7 april 23 Classrum Edition CONTEXT FREE LANGUAGES & PUSH-DOWN AUTOMATA CONTEXT-FREE GRAMMARS, CFG Problems Sudkamp Problem. (3.2.) Which language generates the
More informationBasics of WQO theory, with some applications in computer science
Basics of WQO theory, with some applications in computer science aka WQOs for dummies Ph. Schnoebelen LSV, CNRS, Cachan CMI Silver Jubilee Lecture Chennai, Feb. 23rd, 2015 INTRODUCTION Well-quasi-orderings,
More informationImproved TBL algorithm for learning context-free grammar
Proceedings of the International Multiconference on ISSN 1896-7094 Computer Science and Information Technology, pp. 267 274 2007 PIPS Improved TBL algorithm for learning context-free grammar Marcin Jaworski
More informationAdvanced Spin-spin Coupling. NMR Spectroscopy. Magnetic Equivalence (Revisited)
Magnetic Equivalence (Revisited) Remember the following example: 1,1-difluroethene The two protons are chemically equivalent The two protons are not magnetically equivalent as they each have a different
More informationFundamentele Informatica II
Fundamentele Informatica II Answer to selected exercises 5 John C Martin: Introduction to Languages and the Theory of Computation M.M. Bonsangue (and J. Kleijn) Fall 2011 5.1.a (q 0, ab, Z 0 ) (q 1, b,
More informationAlgebraic Expressions
Algebraic Expressions Mathematics is often defined as the science of space and number. it was not until the recent resonance of computers and mathematics that a more apt definition became fully evident:
More informationDe Bruijn sequences on primitive words and squares
De Bruijn sequences on primitive words and squares arxiv:0904.3997v2 [math.co] 24 Nov 2009 Yu-Hin Au Department of Combinatorics & Optimization yau@uwaterloo.ca November 24, 2009 Abstract We present a
More informationTheory 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 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 informationcse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska
cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 6a REVIEW for Q2 Q2 covers Lecture 5 and Lecture 6 Chapter 2 - Deterministic Finite Automata DFA Chapter 2 - Nondeterministic
More informationW3203 Discrete Mathema1cs. Coun1ng. Spring 2015 Instructor: Ilia Vovsha.
W3203 Discrete Mathema1cs Coun1ng Spring 2015 Instructor: Ilia Vovsha h@p://www.cs.columbia.edu/~vovsha/w3203 Outline Bijec1on rule Sum, product, division rules Permuta1ons and combina1ons Sequences with
More information1. (a) Explain the procedure to convert Context Free Grammar to Push Down Automata.
Code No: R09220504 R09 Set No. 2 II B.Tech II Semester Examinations,December-January, 2011-2012 FORMAL LANGUAGES AND AUTOMATA THEORY Computer Science And Engineering Time: 3 hours Max Marks: 75 Answer
More informationThe Pumping Lemma (cont.) 2IT70 Finite Automata and Process Theory
The Pumping Lemma (cont.) 2IT70 Finite Automata and Process Theory Technische Universiteit Eindhoven May 4, 2016 The Pumping Lemma theorem if L Σ is a regular language then m > 0 : w L, w m : x,y,z : w
More informationFormal Languages and Automata
Formal Languages and Automata 5 lectures for 2016-17 Computer Science Tripos Part IA Discrete Mathematics by Ian Leslie c 2014,2015 AM Pitts; 2016,2017 IM Leslie (minor tweaks) What is this course about?
More informationOn the suffix automaton with mismatches
On the suffix automaton with mismatches Maxime Crochemore, Chiara Epifanio, Alessandra Gabriele, Filippo Mignosi To cite this version: Maxime Crochemore, Chiara Epifanio, Alessandra Gabriele, Filippo Mignosi.
More information