Transparency No. 1 Formal Language and Automata Theory Homework 1.

Slides:



Advertisements
Similar presentations
Chapter 2 Revision of Mathematical Notations and Techniques
Advertisements

Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
Chapter 6 Languages: finite state machines
YES-NO machines Finite State Automata as language recognizers.
Equivalence, Order, and Inductive Proof
8.4 Closures of Relations. Intro Consider the following example (telephone line, bus route,…) abc d Is R, defined above on the set A={a, b, c, d}, transitive?
1 Languages. 2 A language is a set of strings String: A sequence of letters Examples: “cat”, “dog”, “house”, … Defined over an alphabet: Languages.
Finite Automata Section 1.1 CSC 4170 Theory of Computation.
Intro to DFAs Readings: Sipser 1.1 (pages 31-44) With basic background from Sipser 0.
Intro to DFAs Readings: Sipser 1.1 (pages 31-44) With basic background from Sipser 0.
Transparency No. 2-1 Formal Language and Automata Theory Chapter 2 Deterministic Finite Automata (DFA) (include Lecture 3 and 4)
Regular Languages Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 3 Comments, additions and modifications.
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
CS 310 – Fall 2006 Pacific University CS310 Strings, String Operators, and Languages Sections: August 30, 2006.
Regular Languages Sequential Machine Theory Prof. K. J. Hintz Department of Electrical and Computer Engineering Lecture 3 Comments, additions and modifications.
1 Languages and Finite Automata or how to talk to machines...
CS5371 Theory of Computation Lecture 4: Automata Theory II (DFA = NFA, Regular Language)
Topics Automata Theory Grammars and Languages Complexities
Theory of Computing Lecture 22 MAS 714 Hartmut Klauck.
1 Regular Expressions/Languages Regular languages –Inductive definitions –Regular expressions syntax semantics Not covered in lecture.
Transparency No. 8-1 Formal Language and Automata Theory Chapter 8 DFA state minimization (lecture 13, 14)
Lecture 1 String and Language. String string is a finite sequence of symbols. For example, string ( s, t, r, i, n, g) CS4384 ( C, S, 4, 3, 8) (1,
Relations Chapter 9.
Regular Languages A language is regular over  if it can be built from ;, {  }, and { a } for every a 2 , using operators union ( [ ), concatenation.
Formal Language Finite set of alphabets Σ: e.g., {0, 1}, {a, b, c}, { ‘{‘, ‘}’ } Language L is a subset of strings on Σ, e.g., {00, 110, 01} a finite language,
Chapter 2 Languages.
Languages & Strings String Operations Language Definitions.
DECIDABILITY OF PRESBURGER ARITHMETIC USING FINITE AUTOMATA Presented by : Shubha Jain Reference : Paper by Alexandre Boudet and Hubert Comon.
CSC312 Automata Theory Lecture # 2 Languages.
CSC312 Automata Theory Lecture # 2 Languages.
Lecture Two: Formal Languages Formal Languages, Lecture 2, slide 1 Amjad Ali.
Two examples English-Words English-Sentences alphabet S ={a,b,c,d,…}
Introduction to CS Theory Lecture 3 – Regular Languages Piotr Faliszewski
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
1 Chapter 1 Introduction to the Theory of Computation.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2006.
Languages Given an alphabet , we can make a word or string by concatenating the letters of . Concatenation of “x” and “y” is “xy” Typical example: 
Introduction to Theory of Automata By: Wasim Ahmad Khan.
1 Module 14 Regular languages –Inductive definitions –Regular expressions syntax semantics.
4.3 Recursive Definitions and Structural Induction Sometimes it is difficult to define an object explicitly. However, it may be easy to define this object.
Language: Set of Strings
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2010.
1 Partial Orderings Aaron Bloomfield CS 202 Epp, section ???
1 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.
Recognising Languages We will tackle the problem of defining languages by considering how we could recognise them. Problem: Is there a method of recognising.
Classifications LanguageGrammarAutomaton Regular, right- linear Right-linear, left-linear DFA, NFA Context-free PDA Context- sensitive LBA Recursively.
Lecture 2 Overview Topics What I forgot from last lecture Proof techniques continued Alphabets, strings, languages Automata June 2, 2015 CSCE 355 Foundations.
Strings and Languages Denning, Section 2.7. Alphabet An alphabet V is a finite nonempty set of symbols. Each symbol is a non- divisible or atomic object.
Theory of computation Introduction theory of computation: It comprises the fundamental mathematical properties of computer hardware, software,
Transparency No. 2-1 Formal Language and Automata Theory Homework 2.
Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and B = {a,b} {( 0, a), (
CSE 311: Foundations of Computing Fall 2013 Lecture 18: Structural induction, regular expressions.
1/29/02CSE460 - MSU1 Nondeterminism-NFA Section 4.1 of Martin Textbook CSE460 – Computability & Formal Language Theory Comp. Science & Engineering Michigan.
1 Partial Orderings Epp, section Introduction An equivalence relation is a relation that is reflexive, symmetric, and transitive A partial ordering.
Deterministic Finite-State Machine (or Deterministic Finite Automaton) A DFA is a 5-tuple, (S, Σ, T, s, A), consisting of: S: a finite set of states Σ:
Lecture Three: Finite Automata Finite Automata, Lecture 3, slide 1 Amjad Ali.
Foundations of Computing Science
Relations Chapter 9.
Languages.
Aaron Bloomfield CS 202 Epp, section ???
Formal Language & Automata Theory
Hierarchy of languages
Discrete Math (2) Haiming Chen Associate Professor, PhD
Introduction Reading: Sections 1.5 – 1.7.
Chapter 1 Introduction to the Theory of Computation
Finite-State Machines with No Output
CSC 4170 Theory of Computation Finite Automata Section 1.1.
What is it? The term "Automata" is derived from the Greek word "αὐτόματα" which means "self-acting". An automaton (Automata in plural) is an abstract self-propelled.
CSCE 355 Foundations of Computation
Terminology and Symbols
Presentation transcript:

Transparency No. 1 Formal Language and Automata Theory Homework 1

Deterministic Finite Automata Transparency No. 2 Problems 1.1 Let A = {0.11} and B = {00.11}. Find each of theses sets (a) AB, (b) BA(c)A 2 (d) B Find all pairs of languages A and B for which AB = {10,111,1010,1000,10111,101000}. 1.3 Determine whether the string is in each of these languages : (a) {0,1}*(b) {1}* {0}* {1}*(c) {11}{0}*{01} (d) {11}* {01}*(e) {111}*{0}*{1} (f) {11,0} {00,101}

Deterministic Finite Automata Transparency No. 3 [Preliminary definitions] A string x over a set (or alphabet)  of symbols is a finite sequence : x 1 x 2 … x n with n  0 and x i   for all 1  i  n, or alternatively, a function x : [n]  , where [n] = def {0,1,…,n}, with x(i) = x i for all 1  i  n. For a string x :[n]  , n is called the length of x and is denoted |x|. The minimum value of string length is 0 and there is exactly one string, denoted , with zero length (|  | = 0). If a  is a symbol, and y is a string y 1,…,y m, we use ay to denote the string: a y 1,…,y m., and ya to denote the string y 1,…,y m,a. More generally, if x = x 1 x 2 … x n and y = y 1,…,y m, then we use xy to denote the string: x 1 x 2 … x n, y 1,…,y m. Now the set  * = def {x 1 x 2 … x n | n  0 and x i   for all 1  i  n } of all strings over  can be defined to be the least subset of sequences satisfying the rules : Basis :  is a member of  *, closure: for each a  and member y of  *, ay is member of  *.

Deterministic Finite Automata Transparency No According to the inductive definition of  *, give a recursive definition for each of the following functions over strings. 2.1 len :  *  N such that len(x) = |x|. (ex: len(aba) = 3 ). 2.2 concat :  * x  *   * such that concat(x,y) = x y. 2.3 reverse :  *   * such that reverse(x 1 x 2 … x n ) = x 1n x n-1 … x According to your definition given at problem 2, Show that the following equations hold using structural induciton. 3.1 for all x, y, len(concat(x,y)) = len(x) + len(y). 3.2 for all x, y, len(reverse(x)) = len(x) 3.3 for all x, y, reverse(reverse(x)) = x, 3.4 for all x,y, reverse(concat(x,y)) = concat(reverse(y), reverse(x))

Deterministic Finite Automata Transparency No. 5 Note that if  is an alphabet and A     is a language (string set) over , then : A* = def {x 1 x 2 …x n | n  0 and all x i  A } = {  } U A U A 2 U A 3 U … A + = def {x 1 x 2 …x n | n > 0 and all x i  A } = A U A 2 U A 3 U … 4. Show that the following equalities holds for all languages A,B,C: 4.1. A (B  C) = AB  AC. 4.2 A*A* = A* 4.3. A** = A* 4.4. AA* = A*A.

Deterministic Finite Automata Transparency No Let B be any set of strings over an alphabet . We say B is transitive if BB  B. Prove that for any set of strings A, A + is the smallest transitive set containing A. That is, show that 5.1. A + is a transitive set containing A, and 5.2. if B is another transitive set containing A, then A*  B. 6. Show that if (S,  ) is a well-founded poset, then 6.1 (S 2,  2 ) is well-founded, but 6.2 (S*,  * ) is not well-founded provided there are a, b in S such that a < b. Here  2 and  * are the lexicographical order induced by , Namelylexicographical order (1) (x1,x2)  2 (y1,y2) iff (x1 < y1) or (x1=y1 and x2  y2)), and (2) (x1,x2,…,xm)  * (y1,y2,…,yn) iff (x1 < y1) or (x1=y1 and x2<y2) or (x1=y1,x2=y2, x3 < y3) or … iff (m  n and (y1,y2,…,ym) = (x1,x2,…,xm) ) or there is k  m such that x k < y k and x t =y t for all t < k.