Some Properties of Brzozowski Derivatives of Regular Expressions

Similar documents
Content. Languages, Alphabets and Strings. Operations on Strings. a ab abba baba. aaabbbaaba b 5. Languages. A language is a set of strings

Review of CFGs and Parsing I Context-free Languages and Grammars. Winter 2014 Costas Busch - RPI 1

A general theory of minimal increments for Hirsch-type indices and applications to the mathematical characterization of Kosmulski-indices

Abel type inequalities, complex numbers and Gauss Pólya type integral inequalities

Review of the Riemann Integral

Power Series Solutions to Generalized Abel Integral Equations

Schrödinger Equation Via Laplace-Beltrami Operator

0 otherwise. sin( nx)sin( kx) 0 otherwise. cos( nx) sin( kx) dx 0 for all integers n, k.

Double Sums of Binomial Coefficients

We will begin by supplying the proof to (a).

Basic Limit Theorems

INTEGRAL SOLUTIONS OF THE TERNARY CUBIC EQUATION

SOME SHARP OSTROWSKI-GRÜSS TYPE INEQUALITIES

Integral Operator Defined by k th Hadamard Product

Convergence rates of approximate sums of Riemann integrals

On A Subclass of Harmonic Univalent Functions Defined By Generalized Derivative Operator

lecture 16: Introduction to Least Squares Approximation

( a n ) converges or diverges.

Review of Sections

Reversing the Arithmetic mean Geometric mean inequality

INFINITE SERIES. ,... having infinite number of terms is called infinite sequence and its indicated sum, i.e., a 1

Chapter 7 Infinite Series

Statistics for Financial Engineering Session 1: Linear Algebra Review March 18 th, 2006

Non-Deterministic Finite Automata. Fall 2018 Costas Busch - RPI 1

Non Deterministic Automata. Linz: Nondeterministic Finite Accepters, page 51

MATH 104 FINAL SOLUTIONS. 1. (2 points each) Mark each of the following as True or False. No justification is required. y n = x 1 + x x n n

Lecture 08: Feb. 08, 2019

Certain sufficient conditions on N, p n, q n k summability of orthogonal series

Chapter 2 Infinite Series Page 1 of 9

A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD

Some New Iterative Methods Based on Composite Trapezoidal Rule for Solving Nonlinear Equations

Linear Programming. Preliminaries

CONVERGENCE OF THE RATIO OF PERIMETER OF A REGULAR POLYGON TO THE LENGTH OF ITS LONGEST DIAGONAL AS THE NUMBER OF SIDES OF POLYGON APPROACHES TO

1. (25 points) Use the limit definition of the definite integral and the sum formulas to compute. [1 x + x2

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

The total number of permutations of S is n!. We denote the set of all permutations of S by

CHAPTER 1 Regular Languages. Contents

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38

MA123, Chapter 9: Computing some integrals (pp )

Sequence and Series of Functions

Convergence rates of approximate sums of Riemann integrals

Course Material. CS Lecture 1 Deterministic Finite Automata. Grading and Policies. Workload. Website:

The Weierstrass Approximation Theorem

SOME IDENTITIES BETWEEN BASIC HYPERGEOMETRIC SERIES DERIVING FROM A NEW BAILEY-TYPE TRANSFORMATION

Theory of Computation Regular Languages

The Elementary Arithmetic Operators of Continued Fraction

1.4 Nonregular Languages

FOURIER SERIES PART I: DEFINITIONS AND EXAMPLES. To a 2π-periodic function f(x) we will associate a trigonometric series. a n cos(nx) + b n sin(nx),

RULES FOR MANIPULATING SURDS b. This is the addition law of surds with the same radicals. (ii)

Approximations of Definite Integrals

Math 104: Final exam solutions

UNIVERSITY OF BRISTOL. Examination for the Degrees of B.Sc. and M.Sci. (Level C/4) ANALYSIS 1B, SOLUTIONS MATH (Paper Code MATH-10006)

PROGRESSIONS AND SERIES

Chapter System of Equations

MTH 146 Class 16 Notes

In an algebraic expression of the form (1), like terms are terms with the same power of the variables (in this case

Week 13 Notes: 1) Riemann Sum. Aim: Compute Area Under a Graph. Suppose we want to find out the area of a graph, like the one on the right:

Automata and Languages

INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)

Infinite Series Sequences: terms nth term Listing Terms of a Sequence 2 n recursively defined n+1 Pattern Recognition for Sequences Ex:

is infinite. The converse is proved similarly, and the last statement of the theorem is clear too.

Graphing Review Part 3: Polynomials

POWER SERIES R. E. SHOWALTER

CS375: Logic and Theory of Computing

APPLICATION OF DIFFERENCE EQUATIONS TO CERTAIN TRIDIAGONAL MATRICES

b a 2 ((g(x))2 (f(x)) 2 dx

degree non-homogeneous Diophantine equation in six unknowns represented by x y 2z

MAS221 Analysis, Semester 2 Exercises

NFAs and Regular Expressions. NFA-ε, continued. Recall. Last class: Today: Fun:

Lecture 6 Regular Grammars

,... are the terms of the sequence. If the domain consists of the first n positive integers only, the sequence is a finite sequence.

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

f(bx) dx = f dx = dx l dx f(0) log b x a + l log b a 2ɛ log b a.

CSC 311 Theory of Computation

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J.

DETERMINANT. = 0. The expression a 1. is called a determinant of the second order, and is denoted by : y + c 1

RADICALS. Upon completion, you should be able to. define the principal root of numbers. simplify radicals

Variational Iteration Method for Solving Volterra and Fredholm Integral Equations of the Second Kind

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research

Section IV.6: The Master Method and Applications

General properties of definite integrals

Vectors. Vectors in Plane ( 2

Canonical Form and Separability of PPT States on Multiple Quantum Spaces

Regular expressions, Finite Automata, transition graphs are all the same!!

The Average Complexity of Moore s State Minimization Algorithm is O(n log log n)

Section 6.3: Geometric Sequences

Students must always use correct mathematical notation, not calculator notation. the set of positive integers and zero, {0,1, 2, 3,...

Lexical Analysis Finite Automate

ON BILATERAL GENERATING FUNCTIONS INVOLVING MODIFIED JACOBI POLYNOMIALS

Numbers (Part I) -- Solutions

The Basic Properties of the Integral

( ) k ( ) 1 T n 1 x = xk. Geometric series obtained directly from the definition. = 1 1 x. See also Scalars 9.1 ADV-1: lim n.

Lecture 09: Myhill-Nerode Theorem

SUTCLIFFE S NOTES: CALCULUS 2 SWOKOWSKI S CHAPTER 11

[ 20 ] 1. Inequality exists only between two real numbers (not complex numbers). 2. If a be any real number then one and only one of there hold.

Riemann Integration. Chapter 1

Anatomy of a Deterministic Finite Automaton. Deterministic Finite Automata. A machine so simple that you can understand it in less than one minute

Remarks: (a) The Dirac delta is the function zero on the domain R {0}.

Why study large deviations? The problem of estimating buer overow frequency The performance of many systems is limited by events which have a small pr

Multiplication and Translation Operators on the Fock Spaces for the q-modified Bessel Function *

Transcription:

Itertiol Jourl of Computer Treds d Techology (IJCTT) volume 13 umber 1 Jul 014 Some Properties of Brzozoski erivtives of Regulr Expressios NMuruges #1, OVShmug Sudrm * #1 Assistt Professor, ept of Mthemtics, Govermet Arts College (Autoomous), Coimbtore 641018, Tmil Ndu, Idi, * Assistt Professor, ept of Mthemtics, Sri Shkthi Istitute of Egieerig & Techology, Coimbtore 64106, Tmil Ndu, Idi Abstrct :- Brzozoski s derivtives of regulr expressio re developed for costructig determiistic utomt from the give regulr expressio i the lgebric y I this pper, some lemms of the regulr expressios re discussed d the regulr lguges of the derivtives re illustrted Also the geerliztios of the Brzozoski s derivtives re proved s theorems ith help of properties d ko results AMS MSC010 Certifictio: 68Q45, 68Q70 Keyords Regulr expressios, derivtives, d Kleee Closure I INTROUCTION Regulr expressios re declrtive y of defiig regulr lguges recogized by FA or NFA They re equivlet to oe other i the sese tht, for give regulr expressio, it c be costructed fiite stte utomt recogizig the sme lguge described by the regulr expressio, d vice vers All over the yers, vrious ttempts hve bee mde to ccomplish this tsk I the yer 1960, RMcNughto d HYmd [6] provided lgorithm to costruct o determiistic fiite utomto from regulr expressio GBerry d RSethi [1] discussed the theoreticl bckgroud for the RMcNughto d HYmd lgorithm VMGlushkov [4] hs lso give similr lgorithm i the yer 1961 A elegt costructio of determiistic fiite utomt bsed o the derivtives of regulr expressios s proposed by JA Brzozoski [] i the yer 1964 JEHopcroft d JUllm [5] discussed the costructio of - NFA from the give regulr expressio JMChmprud d others [3] described vrit of the step by step costructio hich ssocites stdrd d trim utomt to regulr lguges I this pper, e discuss some bsic set theoretic properties ivolved i Brzozoski y of costructios of utomt hve bee discussed II REGULAR EXPRESSIONS Let be lphbet of symbols A ord over lphbet is fiite sequece of symbols from tht lphbet The set of ll ords over is deoted by The empty ord is deoted by A regulr expressio is defied iductively s (i) is regulr expressio (ii) For y, the symbol is regulr expressio (iii) If E d F re regulr expressios, the,, E F EF E re ll regulr expressios The regulr expressios E F, EF, E re clled respectively uio, coctetio, Kleee closure of the correspodig regulr expressios The lguge of regulr expressio E is deoted s L E, d defied the sme for vrious regulr expressios s follos ( i) L ( ii) L ( iii) L E F L E L F ( iv) L EF L E L F ( v) L E L E The empty set is lso cosidered s lguge of regulr expressio deoted by the symbol itself It is ssumed tht E E E; E E ; E E E The properties of the regulr lguges re discussed i [9] The folloig lemm gives some lgebric type idetities ith respect to regulr expressios 1 Lemm Let E d F re y to regulr expressios The, i E F F E ii EF FE oly he iii E F G E F G E F or b oeof E, F is or iv E E v E F G E F E G ISSN: 31-5381 http://ijcttjourlorg Pge 9

Itertiol Jourl of Computer Treds d Techology (IJCTT) volume 13 umber 1 Jul 014 Not ll lgebric type idetities re hold i the cse of regulr expressios Lemm: For y to regulr expressios E d F, the, i E F E F ii EF E F iii EF FE 3 Lemm: Provided tht E d F re ot equl to or i ( vi) ( ii) ( vii) b b ( iii) ( viii) ( iv) b b b ( ix) ( v) b b b ( x) xi bc b c ( xiv) ( xii) b c c bc ( xv) ( xiii ) b b b Some of the proofs of the equivlet regulr expressios give i the bove lemms re proved i [7] III erivtives of Regulr Expressios 31 efiitio Give lguge L d symbol, the derivtive of L ith respect to symbol is defied s L b b L The derivtives of regulr expressios ith respect to symbol re defied s follos: 1 b O th er ise E F F if L E E F E F o th e r ise 3 E F E F 4 5 E E E if b 6 E E 7 E E The opertor is treted s prefix opertor ith high precedece th +, d * The derivtives ivolvig the opertors itersectio, d complemet re defied by E F E F d E F E F It c be verified tht b b b b 3 Exmples 1 3 Let E b b E The E b Let E b b b E The E b b Let E b The E b b b b b b b b b E b b b b b b b b b b b b b 33 efiitio Let L be regulr lguge We defie if L E if L It c be esily see tht i, fo r y ii, d iii E F E F iv E 34 efiitio Let 1 d E be regulr expressio The, E E 1 1 E E 1 3 3 1 ISSN: 31-5381 http://ijcttjourlorg Pge 30

Itertiol Jourl of Computer Treds d Techology (IJCTT) volume 13 umber 1 Jul 014 I geerl, e hve E E 13 E 1 1 35 Theorem Let E, F re to regulr expressios d the ord 1 strig over the Kleee closure of lphbet The, E F E F 36 Theorem Let E, F re to regulr expressios d the ord 1 The, EF E F E F 1 1 1 E F EF E F E E F 1 1 1 1 I geerl, 1 1 1 E F 1 1 E F 1 1 E F 1 3 1 E F E F E F P F 1 3 3 37 Theorem Let the ord 1 The, E E E E E 1 1 E E E 1 1 1 E 1 E 3 1 E E 3 E 1 E E 3 E E 3 1 3 1 3 E E E E E E 1 3 1 3 E E E E E 1 3 Similrly, e c geerlize E 1 3 E E E E E E E E E 1 3 1 3 1 1 38 Lemm, here, L,,,,,,,,,,, L Hece the correspodig regulr expressio is 39 Lemm Let E be regulr expressio, the LE LELE, here,,, L E E E E,, L E E E E, E, E E, E L E L E 310 Theorem Let E be y regulr expressio d be y symbol over the lphbet L E L E Cse (i): Let E Also, the L E, d, d L O the other hd, if E, the L E L E L E d E Hece the theorem is true he E Cse (ii): Let E The, L E Hece Also LE, d L E ISSN: 31-5381 http://ijcttjourlorg Pge 31

Itertiol Jourl of Computer Treds d Techology (IJCTT) volume 13 umber 1 Jul 014, the If E b L E L E Cse (iii):let E F G We prove first E F G Suppose, if F F ' E F G d ' ' ' ' L E L F L G d G G ',the Let F d G re to regulr expressios begi ith symbol other th The F G Hece E d L E I the first cse, LF d LG u u Hece LE, u, u, Hece LE LF ' LG ' ie, LE LF ' LG ' I the secod cse, LF b b, d LG bu b, u LE b, bu b,, u Therefore, Hece L E L E L E, Whe E F G Cse (iv): Let E FG Suppose if F d G re to regulr expressios begi ith symbol, the it c be foud s i the cse (iii), tht L E L E L F' L G' Similrly, if F d G re regulr expressios begi ith other th, it c be foud s L E L E Cse (v): E F the E F F F, Let Agi there re to possibilities, sy F F ' or F bf ' he b I the first cse, F F ' d ' I the secod cse, F Therefore F F F E Hece the sttemet trivilly true If F F ' F, the L E L E is ' L F ' L F L E L F L F O the other hd, if E F d F F ' The Hece ' L E L F L F ' L E L F L F L E L E Hece This proves the theorem ' LF 311 Theorem Let 1, d E be regulr expressio over lphbet The E E 1 3 1 Suppose if the E E, As illustrtio, let b d E bb the E b b b b b b b b b b b b b Geerlizig the bove illustrtio, the folloig theorems re obtied 31 Theorem Let d E m; m ; the E 313 Theorem If E E, the 314 Theorem If u, u, d E v, v The, E v here Let u 1 The u ISSN: 31-5381 http://ijcttjourlorg Pge 3

Itertiol Jourl of Computer Treds d Techology (IJCTT) volume 13 umber 1 Jul 014 E E 1 3 1 1 1 3 1 1 E E v 1 1 1 3 u v v v 315 Theorem If u; E bv, here, b d u, v, The E III CONCLUSION Brzozoski derivtives of the regulr expressios re lys helpful tool for costructig FA The geerliztios of the derivtives re useful for trsformig the size of the derivtives of the expressios reserch orieted ork REFERENCES [1] Berry G, Sethi R, From regulr expressios to determiistic utomt, Theoreticl Computer Sciece 48 (1986), 117 16 [] Brzozoski JA, erivtives of regulr expressios, JACM 11(4):481-494, 1964 [3] Chmprud JM, Poty JL, Zidi, From regulr expressios to fiite utomt, ItJ ComM, 7(4), 1999, 415 431 [4] Glushkov VM, The Abstrct Theory of Automt, Russi Mthemticl Surveys 16(1961), 1-53 [5] Hopcroft JE d Ullm J,, Itroductio to Automt Theory, Lguges d Computtio, Addiso Wesley, 1979 [6] McNughto R, Ymd H, Regulr expressios d stte grphs for utomt, IRE Trs o Electroic Computers EC-9:1 (1960) 38 47 [7] Muruges N, Priciples of Automt theory d Computtio, 004, Shithi Publictios [8] Muruges N d Shmugsudrm OV, Costructio of Stte digrm of regulr expressiousig erivtives,m- hikricom/ms/ms-01/ms/sudrmams1-4- 01pdf,Applied Mthemticl Scieces, Vol 6, 01, o 4, 1173 1179 [9] Yu S, Regulr Lguges, i: ASlom, eds, Hdbook of Forml Lguges, Vol I, Spriger-Verlg, Berli, 1997, 41 110 ISSN: 31-5381 http://ijcttjourlorg Pge 33