such that is accepted of states in , where Finite Automata Lecture 2-1: Regular Languages be an FA. A string is the transition function,

Similar documents
CHAPTER 2 DECOMPOSITION OF GRAPHS

Sequential search. Building Java Programs Chapter 13. Sequential search. Sequential search

Concurrent models of computation for embedded software

For instance, ; the five basic number-sets are increasingly more n A B & B A A = B (1)

Problem Set 3 Solutions

Harvard University CS 101 Fall 2005, Shimon Schocken. Assembler. Elements of Computing Systems 1 Assembler (Ch. 6)

Regular Languages and Regular Expressions

Assembler. Shimon Schocken. Spring Elements of Computing Systems 1 Assembler (Ch. 6) Compiler. abstract interface.

Hermite Splines in Lie Groups as Products of Geodesics

Programming Assignment Six. Semester Calendar. 1D Excel Worksheet Arrays. Review VBA Arrays from Excel. Programming Assignment Six May 2, 2017

A Binarization Algorithm specialized on Document Images and Photos

Intro. Iterators. 1. Access

Finite automata. We have looked at using Lex to build a scanner on the basis of regular expressions.

Programming in Fortran 90 : 2017/2018

F Geometric Mean Graphs

Pass by Reference vs. Pass by Value

CE 221 Data Structures and Algorithms

Loop Transformations, Dependences, and Parallelization

Data Representation in Digital Design, a Single Conversion Equation and a Formal Languages Approach

Assignment # 2. Farrukh Jabeen Algorithms 510 Assignment #2 Due Date: June 15, 2009.

Math Homotopy Theory Additional notes

Recognition of Tokens

Oracle Database: SQL and PL/SQL Fundamentals Certification Course

Brave New World Pseudocode Reference

SENSITIVITY ANALYSIS IN LINEAR PROGRAMMING USING A CALCULATOR

ALEKSANDROV URYSOHN COMPACTNESS CRITERION ON INTUITIONISTIC FUZZY S * STRUCTURE SPACE

The Erdős Pósa property for vertex- and edge-disjoint odd cycles in graphs on orientable surfaces

Array transposition in CUDA shared memory

K-means and Hierarchical Clustering

Universal Hinge Patterns for Folding Orthogonal Shapes

Machine Learning: Algorithms and Applications

Solving two-person zero-sum game by Matlab

CMPS 10 Introduction to Computer Science Lecture Notes

Hierarchical clustering for gene expression data analysis

Last lecture CMSC330. This lecture. Finite Automata: States. Finite Automata. Implementing Regular Expressions. Languages. Regular expressions

Angle-Independent 3D Reconstruction. Ji Zhang Mireille Boutin Daniel Aliaga

Lecture 3: Computer Arithmetic: Multiplication and Division

An Optimal Algorithm for Prufer Codes *

Parallel Solutions of Indexed Recurrence Equations

Exercises (Part 4) Introduction to R UCLA/CCPR. John Fox, February 2005

Sorting Review. Sorting. Comparison Sorting. CSE 680 Prof. Roger Crawfis. Assumptions

CSE 326: Data Structures Quicksort Comparison Sorting Bound

6.854 Advanced Algorithms Petar Maymounkov Problem Set 11 (November 23, 2005) With: Benjamin Rossman, Oren Weimann, and Pouya Kheradpour

Loop Transformations for Parallelism & Locality. Review. Scalar Expansion. Scalar Expansion: Motivation

Today Using Fourier-Motzkin elimination for code generation Using Fourier-Motzkin elimination for determining schedule constraints

Introduction. Leslie Lamports Time, Clocks & the Ordering of Events in a Distributed System. Overview. Introduction Concepts: Time

News. Recap: While Loop Example. Reading. Recap: Do Loop Example. Recap: For Loop Example

On the Computation of Document Frequency Statistics from Spoken Corpora using Factor Automata

NFAs and Myhill-Nerode. CS154 Chris Pollett Feb. 22, 2006.

Genetic Tuning of Fuzzy Logic Controller for a Flexible-Link Manipulator

1. (10 points) Draw the state diagram of the DFA that recognizes the language over Σ = {0, 1}

CS5371 Theory of Computation. Lecture 8: Automata Theory VI (PDA, PDA = CFG)

CSE450. Translation of Programming Languages. Lecture 20: Automata and Regular Expressions

Compiler Design. Spring Register Allocation. Sample Exercises and Solutions. Prof. Pedro C. Diniz

PHYSICS-ENHANCED L-SYSTEMS

Decision Properties of RLs & Automaton Minimization

Decidable Problems. We examine the problems for which there is an algorithm.

Module Management Tool in Software Development Organizations

Active Contours/Snakes

MATHEMATICS FORM ONE SCHEME OF WORK 2004

Complex Numbers. Now we also saw that if a and b were both positive then ab = a b. For a second let s forget that restriction and do the following.

An Approach to Real-Time Recognition of Chinese Handwritten Sentences

Today s Outline. Sorting: The Big Picture. Why Sort? Selection Sort: Idea. Insertion Sort: Idea. Sorting Chapter 7 in Weiss.

Sorting and Algorithm Analysis

Course Introduction. Algorithm 8/31/2017. COSC 320 Advanced Data Structures and Algorithms. COSC 320 Advanced Data Structures and Algorithms

Sum of Linear and Fractional Multiobjective Programming Problem under Fuzzy Rules Constraints

Definition: A context-free grammar (CFG) is a 4- tuple. variables = nonterminals, terminals, rules = productions,,

lec3:nondeterministic finite state automata

CSE 326: Data Structures Quicksort Comparison Sorting Bound

AN ALGEBRAIC APPROACH TO CONSISTENCY CHECKING BETWEEN CLASS DIAGRAMS

CSE 105 THEORY OF COMPUTATION

13 th Annual Johns Hopkins Math Tournament Saturday, February 18, 2012 Explorations Unlimited Round Automata Theory

FEATURE EXTRACTION. Dr. K.Vijayarekha. Associate Dean School of Electrical and Electronics Engineering SASTRA University, Thanjavur

Support Vector Machines

Type-2 Fuzzy Non-uniform Rational B-spline Model with Type-2 Fuzzy Data

b * -Open Sets in Bispaces

Lecture 2 Finite Automata

CSCI 104 Sorting Algorithms. Mark Redekopp David Kempe

Outline. Discriminative classifiers for image recognition. Where in the World? A nearest neighbor recognition example 4/14/2011. CS 376 Lecture 22 1

Parallel Numerics. 1 Preconditioning & Iterative Solvers (From 2016)

Q.1 Q.20 Carry One Mark Each. is differentiable for all real values of x

Fitting: Deformable contours April 26 th, 2018

Implementation of Lexical Analysis

Real-time interactive applications

Polyhedral Compilation Foundations

Shape Representation Robust to the Sketching Order Using Distance Map and Direction Histogram

the nber of vertces n the graph. spannng tree T beng part of a par of maxmally dstant trees s called extremal. Extremal trees are useful n the mxed an

CS240: Programming in C. Lecture 12: Polymorphic Sorting

Loop Permutation. Loop Transformations for Parallelism & Locality. Legality of Loop Interchange. Loop Interchange (cont)

Agenda & Reading. Simple If. Decision-Making Statements. COMPSCI 280 S1C Applications Programming. Programming Fundamentals

A SYSTOLIC APPROACH TO LOOP PARTITIONING AND MAPPING INTO FIXED SIZE DISTRIBUTED MEMORY ARCHITECTURES

Lecture #15 Lecture Notes

AMath 483/583 Lecture 21 May 13, Notes: Notes: Jacobi iteration. Notes: Jacobi with OpenMP coarse grain

Biostatistics 615/815

Assembler. Building a Modern Computer From First Principles.

A DATA ANALYSIS CODE FOR MCNP MESH AND STANDARD TALLIES

2x x l. Module 3: Element Properties Lecture 4: Lagrange and Serendipity Elements

Edge Detection in Noisy Images Using the Support Vector Machines

CMPSCI 250: Introduction to Computation. Lecture 20: Deterministic and Nondeterministic Finite Automata David Mix Barrington 16 April 2013

GENETIC ALGORITHMS APPLIED FOR PATTERN GENERATION FOR DOWNHOLE DYNAMOMETER CARDS

Transcription:

* Lecture - Regular Languages S Lecture - Fnte Automata where A fnte automaton s a -tuple s a fnte set called the states s a fnte set called the alphabet s the transton functon s the ntal state s the set of acceptng states s accepted such that be an FA A strng f there exsts a seuence for every of states n Let by S Lecture - s the notated as The language recognzed (or accepted by language over such that accepts over (* for every strng Example A FA that recognzes the language over consstng of all the strngs wth an even number of s an even number of s S Lecture - Regular Languages be two languages Defne Let or ' s Unon of ' s ( oncatenaton of '- s Star of The class of regular languages s the class of languages recognzed by fnte automata S Lecture -

8 8 = < 7 * 9 > > 9 > ' ' = ( Nondetermnstc Fnte Automata A nondetermnstc fnte automaton s a -tuple where now s a mappng of to the power set of the collecton of all subsets of where e states that upon readng each can go from to any state n For each an s accepted by f there exsts a seuence of states n a representaton over for every A strng 6 of 6 such that S Lecture - Example of NFA An NFA that recognzes the language over that conssts of all strngs such that s ether a multple of or a multple of r r r S Lecture - 6 FA = NFA Theorem Every NFA can be converted an euvalent FA be an NFA Defne a FA Proof Let by 9 ; ' *> B A? @ > 8 for each s the set of all states that can go to from one of the upon recevng symbol So over s accepted by f takes from the state to a subset of contanng an (the set of such subsets s Here states n only f element n S Lecture - 7 Regular Expresson s s a regular expresson f An expresson n some alphabet for some for some regular expressons or for some regular expressons for some regular expresson * 6 S Lecture - 8

Fnte Automata are euvalent to Regular Expressons Ths reures proofs n both drectons FA Every regular expresson descrbes a NFA Lemma (REXPR regular language Proof Each set consstng only of a sngle letter s regular the set consstng only of the empty strng s regular the empty set s regular fnal states Let be a FA wth ntal state onstruct an NFA wth ntal state fnal states D ; to -move to Unon has an oncatenaton of to -move from each an to -move from each an Star of Step ombne multple labels (a For every transton label label k j n the NFA change t to S Lecture - 9 label label k j a regular expresson so we call the resultng automaton a GENERALIZED NFA (GNFA Lemma (FA NFA REXPR Every regular language s descrbed by some regular expresson Proof (Sketch We want to get from an FA to a regular expresson Step hange an FA for any gven regular language to an euvalent NFA wth a new start state a new unue acceptng state usng -transtons HANGE TO NFA FA S Lecture - S Lecture - (b For every par of transtons (whle there reman such pars label j label n the GNFA change these to label label j S Lecture -

Step Elmnate ( rp out successve states of the GNFA (other than replacng lost -step paths by -step paths we generally lose some local paths @ E Ie when we elmnate a state of the form label rp label j may be the same or dstnct j label the self loop may or may not be present For each such local path (a nsert a sngle arrow labeled lke ths label (label label j * S Lecture - (b If there was already a transton label j merge the two arrows nto F to from ( label (label * label label j S Lecture - Result regular expresson the language recognzed by the The regular expresson descrbes orgnal FA Showng ths reures an nductve proof that at each step of the converson the resultng GNFA stll accepts exactly the same nput seuences as before We ll omt further detals S Lecture - REXPR Example of FA A FA that recognzes the language over that conssts of all strngs wth no solated s e wherever there s a there s another adjacent on ts left or rght S Lecture - 6

Steps combned labels S Lecture - 7 Step Rp there are local paths to replace * * * * combned labels S Lecture - 8 Step contnued Rp there are local paths to replace * * ( * * combned labels * * S Lecture - 9 so t just dsappears G Step contnued Rp there are no local paths through G there s local path to replace H Rp ( * (( * * ( * * S Lecture -

* Step concluded ombne labels * ( * (( * * ( * * Not as smple as t mght be S Lecture -