Sticker Systems over Permutation Groups

Size: px
Start display at page:

Download "Sticker Systems over Permutation Groups"

Transcription

1 World Applied Sciences Journl 1 (Specil Issue of Applied Mth): , 01 ISSN ; IDOSI Pulictions, 01 DOI: /idosi.wsj.01.1.m.11 Sticker Systems over Permuttion Groups 1 N.A. Mohd Sery, N.H. Srmin, W.H. Fong nd 4 S. Turev 1 Deprtment of Mthemticl Sciences, Fculty of Science, Universiti Teknologi Mlysi, Mlysi Deprtment of Mthemticl Sciences nd Inu Sin Institute for Fundmentl Science Studies, Fculty of Science, Universiti Teknologi Mlysi, Mlysi Inu Sin Institute for Fundmentl Science Studies, Universiti Teknologi Mlysi, Mlysi 4 Fculty of Computer Science nd Informtion Technology, Universiti Putr Mlysi, Mlysi Astrct: Sticker systems were first introduced s lnguge generting device sed on the opertion of sticking. A new molecule is produced from the strting xiom, which is prolonged to the left or to the right using given single strnded strings or dominoes. For ech sticker opertion, n element of group (clled vlence) will e ssocited with the xioms nd dominoes nd then the vlue of the group opertion of the newly produced string is computed. Vlence grmmrs were introduced s grmmrs with regulted rewriting using permuttion groups nd groups s control mechnisms. The definition for vlence grmmr is lter extended to vlence H systems which ssocite integer numers with strings nd the vlues ssocited with the result of newly produced strings re computed. A complete doule strnded molecule is considered to e vlid if the computtion of the ssocited element produces the identity element. However, the converse is not true. Using the ide from the definition of vlence H system nd extended vlence H system, the concept of vlence sticker system over permuttion groups is introduced in this reserch nd the computtionl power of the lnguge produced is lso investigted. Key words: Vlence grmmr vlence sticker system h system sticker opertion INTRODUCTION PRELIMINARIES Moleculr computing hs gined mny interests mong reserchers since Hed [1] introduced the first theoreticl model for DNA sed computtion using the splicing opertion in Another model for DNA computing ws proposed y Adlemn [] in 1994 using the sticker opertion. He used the opertion in his successful experiment for the computtion of Hmiltonin pths in grph. According to this sticker opertion, lnguge genertive mechnism clled sticker system is defined s set of (incomplete) doule-strnded sequences (xioms) nd set of pirs of single or doule strnded complementry sequences []. The initil sequences re prolonged to the left nd to the right y using sequences from the ltter set, respectively. These processes stop when complete doule strnded sequence is otined. The min im of this reserch is to introduce sticker systems over permuttion groups, in which with ech sticker opertion, n element of the permuttion group is ssocited nd complete doule strnded sequence is considered to e vlid if the computtion of the ssocited elements of the permuttion group produces the identity element of the group tht is (1). Sticker opertion: Consider the lphet V ( finite set of symols) nd symmetric iologicl reltion ρ, where ρ V V Let e specil symol not in V, denoting n empty spce (the lnk symol). The symol V + denotes the set of ll strings of symol over V while V + represents the set of ll strings not including the empty string. The mtching se pirs of doule x1 strnded molecules of DNA cn e represented s x where x 1 is the upper strnd nd x is the lower strnd. Also, x 1 is complement to x. Using the elements of V, the following set of composite symols is constructed: The Wtson-Crick domin is clled well-formed doule strnded sequence (or simply doule strnded sequence) or molecules [4, 5]. The Wtson-Crick Corresponding Author: N.A. Mohd Sery, Deprtment of Mthemticl Sciences, Fculty of Science, Universiti Teknologi Mlysi, Mlysi 119

2 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , 01 A sequence x1 x... x k, where x1 A, is domin is denoted y WKρ (V), which is ssocited to the lphet V nd the complementry reltion ρ. The concept of incomplete molecules is used in this pper s n strction of DNA molecules with sticky ends [4, 6]. The incomplete molecule (W ρ (V)) is the element of the set: clled computtion in γ with length k-1 (notice tht, we strt from x1 A). If xk W ρ (V), where no sticky end nd hence lnk symol is present in the lst string of composite symol, the ove computtion is considered s complete. Sticker lnguge: The sticker lnguge is lnguge generting device sed on the sticker opertion which is n strct model of the nneling opertion occurring in DNA computing [, 7]. The lnguge generted y sticker system consists of ll strings formed y the set of upper strnds of ll complete molecules derived from the xioms for which n exctly mtching sequence of lower stickers cn e found [7, 8]. The sticker lnguge is the set of ll possile lnguges (from complete molecules) generted y sticker system. Let γ = (V,ρ,A,D) e sticker system, the unrestricted moleculr lnguge generted y γ is defined in [9] s follows: where:. The symol Lρ (V) represents for left incomplete molecule, Rρ (V) represents right incomplete molecule nd LRρ (V) represents left-right incomplete molecule. A sticker opertion µ stimultes the conctention nd the ligtion or nneling opertion mong the elements of Wρ (V). The elements of Wρ (V) cn e prolonged to the left or to the right with rick or dominoes, providing the complementrity etween the corresponding sticky ends of dominoes to produce complete doule strnded molecule. of γ} Furthermore, the unrestricted sticker lnguge generted y is the projection onto the first (upper) component of the moleculr lnguge, ecuse of the complementrity reltion of ρ. The lnguge is denoted s L(γ) nd is defined y: Sticker system: Sticker system is lnguge generting device which ws first introduced y Kri et l. [] in 1998 s forml lnguge model for the self-ssemly phse of Adlemn s experiment. A sticker system is construct of 4-tuple In this reserch, SL will denote sticker lnguge. Only complete computtion will e considered when defining SL. Permuttion group: Permuttion mens of ojects such s permuttion of numers {1,,, 4,, n}. Permuttions cn e written in mtrix form for where V is n lphet, endowed with the symmetric reltion ρ V V in V, A is finite suset of xioms (W ρ (V)) nd D is finite set of pirs (Bd, Bu ) where Bd nd Bu re finite susets of lower nd upper stickers of + V exmple σ = + Definition 1[10] Permuttion: A permuttion of set is function φ: A A tht is oth one to one nd onto. the forms nd, respectively. V For given sticker system γ = ( V, ρ, A, Bd, B u ) nd Definition [10] permuttion group: Let A e finite set {1,,, 4,, n}. The group of ll permuttions of or permuttion group A is the symmetric group of n letters nd is denoted y Sn. two sequences x,y Wρ ( V ), we write, x y if nd only if y = µ ( Bd, µ ( x, Bu ) ). Note tht, µ ( Bd, µ ( x,b u ) ) = µ( µ ( Bd, x ), B u ) ecuse the prolongtion to the left is independent with the prolongtion to the right []. By *, we denote the reflexive nd trnsitive closure of the reltion. Vlence grmmr: Grmmr with regulted rewriting ws first introduced y Pun [11] nd is termed s vlence grmmr. In vlence grmmr, ech 10

3 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , 01 production of Chomsky grmmr is ssocited with n integer vlue nd computes the vlue of derivtion y dding the vlences nd the vlence of the production is only considered if the vlences of the productions used dd to zero [1]. Definition [11] Vlence Grmmr: A vlence grmmr over permuttion group is quintuple G = (N, T, S, P, M) where N, T, S re specified s in context -free grmmr. M = (M, ) is permuttion group with neutrl element, e nd inry opertion. The set P is finite set of pirs r = (P, m) with context -free rule P nd m M. The lnguge L(G) generted y G is clled vlence lnguge nd is defined s Extended H system over groups ( Z, +,0) nd ( Q,,0) hve een introduced in [1] nd re known + s n extended vlence H system. The definition of extended vlence H system hs een defined in [1] which discusses the computtionl power of H systems with vlences. multiplying the vlences of the strings to produce new vlence which equls to (1). Following is the definition of sticker systems over permuttion groups. Definition 6: Sticker systems over permuttion groups: Let (G,,e) e permuttion group with opertion nd the identity e. A sticker system over permuttion group, G is construct of vlence sticker system over permuttion group, VSS = (V,ρ,A,D,M) where V, ρ, A re s in the usul definition of sticker system nd D is finite suset of ( B G,B G) for nd,v1 Bu M,,v Bd M,v 1 v WK ρ V where v 1,v G nd we write d ( ) µ,v 1,,v =,v1 v u Definition 4 [1] Extended vlence H systems: Let (M,,e) e group with opertion nd the identity e. An extended vlence H system over M is construct γ = (V,T,A,R), where V, T nd R re s in usul extended H system nd A is finite suset of V * M. For ( x,v 1),( y,v ),( w,v) V M nd r R, we write ( ) ( ) ( ) ( x,y) r x,v 1, y,v r w,v V M if nd only if w nd v = v1 v. Then the lnguge generted y the system is defined s ( γ ) = ( ) σ ( ) L x T x,e A The vlence grmmr introduced y Dssow nd Pun in 1989 [14] will e used to introduce the concept of sticker system over permuttion groups. The definition of extended vlence H system termed y Mnc nd Pun in [1] is used to define sticker system over permuttion groups. Vlence sticker systems over permuttion groups: In this study, the set of sticker system with opertion of permuttion group is used where for ech sticker opertion, n element of permuttion group is ssocited nd the vlue of permuttion group is computed from two initil strings to produce new string. The vlue of derivtion is computed y if nd only if (,) ρ. The set of possile lnguges generted y vlence sticker system over permuttion group is clled vlence sticker lnguge over permuttion group denoted y VSL nd is defined in the following: re given. 11 ( γ ) = ρ( ) ( ) ( ( )) VSL w w WK V, A,(1) W, 1 where w WK ρ (V) is complete doule strnd, produced y itertive opertion of sticking on strting xiom, A with elements in D. The vlue of the vlence ssigned to A must e equl to the identity of the permuttion group, which is (1) nd the computtion of sticker systems with the ssocitive elements of the permuttion group produces the identity element, (1). The ide ehind this computtion is with ech sticker opertion, n element of permuttion group is ssocited to ech xiom nd the vlence of permuttion group opertion of the new string from two initil strings is computed. A complete doule strnded sequence produced is considered to e vlid if the computtion of the ssocited elements of the permuttion group produces the identity element of the group. In the following, some exmples of the computtion of sticker system with permuttion group

4 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , 01 µ, (1),, (1 ) =, (1) Exmple 1: Computtion of Sticker System over Permuttion Group of Length Two Given vlence sticker system VSS = (V,ρ,A,D,G) with µ, (1),, (1 ) = G = ( S,,( 1) ), ρ = {(, ), (,)}, A = nd D ( B d M,Bu M ), (1) µ, (1),, (1) =,(1 ) where 4 µ, (1),, (1 ) =, (1) nd 5 4 µ, (1),, (1) =, (1 ) µ Here, the permuttion group is S = {(1),()}. We strt with A =, (1). Then, the string 5 6, (1),, (1 ) =, (1) Note tht, from the ove computtions, if the string, (1) is used followed y, (1), (1) is joined to the strting xiom A. The repetedly with (k-1)th itertions, string of the form computtions re s follows: k 1 µ, (1),, (1 ) =, (1),(1 ) is otined with the vlence equl to (1) where (k-1) is n even numer. Then the string, (1) is used nd this will µ, (1 ),, (1) =, (1) result in n extr strnd. Thus, the string of the k µ, (1),, (1 ) =, (1 ) form, (1 ) is otined with the vlue of the vlence equl to (1). The incomplete molecule µ, (1 ),, (1) =, (1) otined is then terminted y the string, (1 ) k string to produce the string of the form, (1). The string produced is complete doule strnded molecule nd the multiplied vlence is equl to the identity element of the permuttion group, which is (1). However, to otin lnguge in the generl form, longer computtion is needed. The computtion gin strts with The string produced stisfies the condition needed which is complete doule strnded molecule with the vlue of the vlence equl to the identity of the permuttion group. Hence, the lnguge generted from the computtion is VSL = { k : k }. For k = 1, the A =, (1) nd joined with, (1). The computtion is not vlid nd for k =, the only possile lnguge will e produced is VSL = { }. computtions re shown s in the following: 1

5 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , 01 D ( B d A, B u A ) Then, we hve to derive grmmr tht genertes the lnguge so tht we cn clssify the grmmr s well s the lnguge to the clss of Chomsky grmmr. Therefore, we will hve the following grmmr: where G = ({S,A}, {,},S,P ) nd with productions Here, the permuttion group A = {(1), (1), (1 )} is n From the solution, the lnguge produced is CFREG lnguge. The next exmple is the computtion of sticker system with the permuttion group of length three. lternting group nd sugroup of S. We strt with A =, (1). Then, the computtions Exmple : Computtion of Sticker System over Permuttion Group of Length Three Given vlence sticker system VSS = (v,ρ,a,d,g) with re done s follows: 1. µ, (1),, (1) =,1 ( ) G = A, ρ = {(, ), (,)}, A = µ, (1),,(1 ) =, (1) nd. µ, (1),, (1) =,1 ( ) µ, (1 ),,(1 ) =, (1) µ, (1),, (1 ) =,1 ( ) µ, (1),,(1 ) =, (1). µ, (1),, (1) =,1 ( ) µ, (1 ),, (1 ) =, (1) µ, (1 ),, (1) =, (1) µ, (1 ),, (1 ) =, (1) µ, (1),,(1) = µ, (1),, (1 ) = 1, (1 ), (1)

6 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , µ,1 ( ),,1 ( ),1 ( ) = 4 µ,1,,1 =,1 4 4,1,,1,1 = µ ( ) ( ) ( ) Notice tht, t computtion numer 4, the numer of generted is not equl to the numer of. The lnguge produced from the computtion which is n n is only stisfied when n =. However, further computtions re needed to identify the lnguge in generl form s well s the grmmr when the computtions re done with n th itertions. Hence the computtions re continued s in the following; 4 5. µ,1 ( ),,1 ( ),1 ( ) = 4 5 µ,1 ( ),,1 ( ),1 ( ) = 5 5,1,,1 =,1 µ ( ) ( ) ( ) 5 5 µ,1 ( ),,1 ( ),1 ( ) = µ,1 ( ),,1 ( ),1 ( ) = 5 6 µ,1 ( ),,1 ( ),1 ( ) = 6 6 µ,1,,1 =,1 6 6 µ,1 ( ),,1 ( ) =,1 ( ) 6 6 µ,1 ( ),,1 ( ),1 ( ) = µ,1 ( ),,1 ( ),1 ( ) = 6 7 µ,1,,1 =,1 7 7,1,,1,1 = µ ( ) ( ) ( ) 14

7 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , µ,1 ( ),,1 ( ),1 ( ) = 7 8 µ,1 ( ),,1 ( ),1 ( ) = 8 8,1,,1 =,1 µ ( ) ( ) ( ) 8 8 µ,1 ( ),,1 ( ),1 ( ) = µ,1,,1 =,1 8 9 µ,1,,1 =,1 9 9 µ,1,,1 =,1 9 9 µ,1,,1 =,1 9 9 µ,1,,1 =,1 Continuing the sticking opertion with n th itertions, string of the forms n1 + n+,1,,1 n,1 nd ( ) re otined. Therefore the lnguges produced re; 1 n1 + VSL = ;n 1 with productions with productions G G = = ({ S,A },,,S,P) ({ S,A },,,S,P) n+ VSL = ;n 1 n VSL = ;n The following grmmrs re otined with respect to the lnguges produced ove: with productions G1 = ({ S,A },,,S,P) 15 From the solutions, the lnguges produced re ll CF-REG lnguge. The computtion of sticker system over groups must stisfy two conditions which re: The string from the computtion is only considered vlid if complete doule strnded molecule is produced, The vlence of the complete doule strnded molecule is equl to the identity of the respective groups. It is importnt to know tht oth conditions must e stisfied when deling with computtion of sticker

8 World Appl. Sci. J., 1 (Specil Issue of Applied Mth): , 01 system over groups. Furthermore, the choose of the strting xioms, nd the finite suset of pirs of B d B u ffects the lnguge produced from the computtion of the sticker system. Besides, if we define ρ of complementrity to other thn identity, for exmple (, ), different lnguge will e produced. ACKNOWLEDGMENT The uthors would like to cknowledge Reserch Mngement Center (RMC), UTM for the prtil finncil funding through Vote No. 00H48. Thnks lso to the Applied Alger nd Anlysis Group (AAAG) nd Postgrdute Student Society, Fculty of Science (PGSS), Universiti Teknologi Mlysi for ll the ctivities eneficil to this reserch. REFERENCES 1. Hed, T., Forml lnguge theory nd DNA: An nlysis of the genertive cpcity of specific recominnt ehviors. Bulletin of Mthemticl Biology, 49: Adlemn, L.M., Moleculr computtions of solutions to comintoril prolems. Science, 66: Kri, L., G. Pun, G. Rozenerg, A. Slom nd S. Yu, DNA computing, sticker systems nd universlity. Act Informtic, 5: Pun, G. nd G. Rozenerg, Sticker systems. Theoreticl Computer Science, 04: Rozenerg, G., G. Pun nd A. Slom, DNA computing: A new computing prdigms. New York: Springer-Verlg. 6. Xu, J., Y. Dong nd X. Wei, 004. Sticker DNA computer model, prt 1: Theory. Chinese Science Bulletin, 49 (8): Freund, R., G. Pun, G. Rozenerg nd A. Slom, A Bidirectionl Sticker Systems. In Altmn, R.B., A.K. Dunker, L. Hunter nd T.E. Klein (Eds.). Pcific Symposium on Biocomputing. World Scientific, Singpore, pp: Hoogeoom, H.J. nd N.V. Vugt, 000. Fir sticker lnguges. Act Informtic, 7: Vugt, N.V., 00. Models of Moleculr Computing. University of Leiden, Ph.D. Thesis. 10. Clerk Mxwell, J., 189. A Tretise on Electricity nd Mgnetism, rd Edn., Oxford: Clrendon, : Dssow, J. nd G. Pun, Regulted Rewriting in Forml Lnguge Theory. In EATCS Monogrph in Theoreticl Computer Science, Springer-Verlg, Vol: Fernu, H. nd R. Stiee, Regultion y Vlences. In Rovn, B. (Ed.). Mthemticl Foundtions of Computer Science 1997 nd Interntionl Symposium, MFCS 97 Proceedings, Springer-Verlg. 1. Mnc, V. nd G. Pun, Arithmeticlly controlled H systems. Computer Science of Moldov, 6:

Minimal DFA. minimal DFA for L starting from any other

Minimal DFA. minimal DFA for L starting from any other Miniml DFA Among the mny DFAs ccepting the sme regulr lnguge L, there is exctly one (up to renming of sttes) which hs the smllest possile numer of sttes. Moreover, it is possile to otin tht miniml DFA

More information

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton

AUTOMATA AND LANGUAGES. Definition 1.5: Finite Automaton 25. Finite Automt AUTOMATA AND LANGUAGES A system of computtion tht only hs finite numer of possile sttes cn e modeled using finite utomton A finite utomton is often illustrted s stte digrm d d d. d q

More information

Watson-Crick local languages and Watson-Crick two dimensional local languages

Watson-Crick local languages and Watson-Crick two dimensional local languages Interntionl Journl of Mthemtics nd Soft Comuting Vol.5 No.. (5) 65-7. ISSN Print : 49 338 ISSN Online: 39 55 Wtson-Crick locl lnguges nd Wtson-Crick two dimensionl locl lnguges Mry Jemim Smuel nd V.R.

More information

Formal Languages and Automata

Formal Languages and Automata Moile Computing nd Softwre Engineering p. 1/5 Forml Lnguges nd Automt Chpter 2 Finite Automt Chun-Ming Liu cmliu@csie.ntut.edu.tw Deprtment of Computer Science nd Informtion Engineering Ntionl Tipei University

More information

Coalgebra, Lecture 15: Equations for Deterministic Automata

Coalgebra, Lecture 15: Equations for Deterministic Automata Colger, Lecture 15: Equtions for Deterministic Automt Julin Slmnc (nd Jurrin Rot) Decemer 19, 2016 In this lecture, we will study the concept of equtions for deterministic utomt. The notes re self contined

More information

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS CS 310 (sec 20) - Winter 2003 - Finl Exm (solutions) SOLUTIONS 1. (Logic) Use truth tles to prove the following logicl equivlences: () p q (p p) (q q) () p q (p q) (p q) () p q p q p p q q (q q) (p p)

More information

The size of subsequence automaton

The size of subsequence automaton Theoreticl Computer Science 4 (005) 79 84 www.elsevier.com/locte/tcs Note The size of susequence utomton Zdeněk Troníček,, Ayumi Shinohr,c Deprtment of Computer Science nd Engineering, FEE CTU in Prgue,

More information

Lecture 08: Feb. 08, 2019

Lecture 08: Feb. 08, 2019 4CS4-6:Theory of Computtion(Closure on Reg. Lngs., regex to NDFA, DFA to regex) Prof. K.R. Chowdhry Lecture 08: Fe. 08, 2019 : Professor of CS Disclimer: These notes hve not een sujected to the usul scrutiny

More information

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages

Assignment 1 Automata, Languages, and Computability. 1 Finite State Automata and Regular Languages Deprtment of Computer Science, Austrlin Ntionl University COMP2600 Forml Methods for Softwre Engineering Semester 2, 206 Assignment Automt, Lnguges, nd Computility Smple Solutions Finite Stte Automt nd

More information

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.) CS 373, Spring 29. Solutions to Mock midterm (sed on first midterm in CS 273, Fll 28.) Prolem : Short nswer (8 points) The nswers to these prolems should e short nd not complicted. () If n NF M ccepts

More information

Closure Properties of Regular Languages

Closure Properties of Regular Languages Closure Properties of Regulr Lnguges Regulr lnguges re closed under mny set opertions. Let L 1 nd L 2 e regulr lnguges. (1) L 1 L 2 (the union) is regulr. (2) L 1 L 2 (the conctention) is regulr. (3) L

More information

Rectangular group congruences on an epigroup

Rectangular group congruences on an epigroup cholrs Journl of Engineering nd Technology (JET) ch J Eng Tech, 015; 3(9):73-736 cholrs Acdemic nd cientific Pulisher (An Interntionl Pulisher for Acdemic nd cientific Resources) wwwsspulishercom IN 31-435X

More information

CHAPTER 1 Regular Languages. Contents

CHAPTER 1 Regular Languages. Contents Finite Automt (FA or DFA) CHAPTE 1 egulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, euivlence of NFAs nd DFAs, closure under regulr

More information

First Midterm Examination

First Midterm Examination 24-25 Fll Semester First Midterm Exmintion ) Give the stte digrm of DFA tht recognizes the lnguge A over lphet Σ = {, } where A = {w w contins or } 2) The following DFA recognizes the lnguge B over lphet

More information

Homework 3 Solutions

Homework 3 Solutions CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 3 Solutions 1. Give NFAs with the specified numer of sttes recognizing ech of the following lnguges. In ll cses, the lphet is Σ = {,1}.

More information

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1

Chapter Five: Nondeterministic Finite Automata. Formal Language, chapter 5, slide 1 Chpter Five: Nondeterministic Finite Automt Forml Lnguge, chpter 5, slide 1 1 A DFA hs exctly one trnsition from every stte on every symol in the lphet. By relxing this requirement we get relted ut more

More information

Designing finite automata II

Designing finite automata II Designing finite utomt II Prolem: Design DFA A such tht L(A) consists of ll strings of nd which re of length 3n, for n = 0, 1, 2, (1) Determine wht to rememer out the input string Assign stte to ech of

More information

Harvard University Computer Science 121 Midterm October 23, 2012

Harvard University Computer Science 121 Midterm October 23, 2012 Hrvrd University Computer Science 121 Midterm Octoer 23, 2012 This is closed-ook exmintion. You my use ny result from lecture, Sipser, prolem sets, or section, s long s you quote it clerly. The lphet is

More information

Finite-State Automata: Recap

Finite-State Automata: Recap Finite-Stte Automt: Recp Deepk D Souz Deprtment of Computer Science nd Automtion Indin Institute of Science, Bnglore. 09 August 2016 Outline 1 Introduction 2 Forml Definitions nd Nottion 3 Closure under

More information

Parse trees, ambiguity, and Chomsky normal form

Parse trees, ambiguity, and Chomsky normal form Prse trees, miguity, nd Chomsky norml form In this lecture we will discuss few importnt notions connected with contextfree grmmrs, including prse trees, miguity, nd specil form for context-free grmmrs

More information

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages

Grammar. Languages. Content 5/10/16. Automata and Languages. Regular Languages. Regular Languages 5//6 Grmmr Automt nd Lnguges Regulr Grmmr Context-free Grmmr Context-sensitive Grmmr Prof. Mohmed Hmd Softwre Engineering L. The University of Aizu Jpn Regulr Lnguges Context Free Lnguges Context Sensitive

More information

A negative answer to a question of Wilke on varieties of!-languages

A negative answer to a question of Wilke on varieties of!-languages A negtive nswer to question of Wilke on vrieties of!-lnguges Jen-Eric Pin () Astrct. In recent pper, Wilke sked whether the oolen comintions of!-lnguges of the form! L, for L in given +-vriety of lnguges,

More information

DFA minimisation using the Myhill-Nerode theorem

DFA minimisation using the Myhill-Nerode theorem DFA minimistion using the Myhill-Nerode theorem Johnn Högerg Lrs Lrsson Astrct The Myhill-Nerode theorem is n importnt chrcteristion of regulr lnguges, nd it lso hs mny prcticl implictions. In this chpter,

More information

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014

CMPSCI 250: Introduction to Computation. Lecture #31: What DFA s Can and Can t Do David Mix Barrington 9 April 2014 CMPSCI 250: Introduction to Computtion Lecture #31: Wht DFA s Cn nd Cn t Do Dvid Mix Brrington 9 April 2014 Wht DFA s Cn nd Cn t Do Deterministic Finite Automt Forml Definition of DFA s Exmples of DFA

More information

Nondeterminism and Nodeterministic Automata

Nondeterminism and Nodeterministic Automata Nondeterminism nd Nodeterministic Automt 61 Nondeterminism nd Nondeterministic Automt The computtionl mchine models tht we lerned in the clss re deterministic in the sense tht the next move is uniquely

More information

CM10196 Topic 4: Functions and Relations

CM10196 Topic 4: Functions and Relations CM096 Topic 4: Functions nd Reltions Guy McCusker W. Functions nd reltions Perhps the most widely used notion in ll of mthemtics is tht of function. Informlly, function is n opertion which tkes n input

More information

Convert the NFA into DFA

Convert the NFA into DFA Convert the NF into F For ech NF we cn find F ccepting the sme lnguge. The numer of sttes of the F could e exponentil in the numer of sttes of the NF, ut in prctice this worst cse occurs rrely. lgorithm:

More information

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University

Farey Fractions. Rickard Fernström. U.U.D.M. Project Report 2017:24. Department of Mathematics Uppsala University U.U.D.M. Project Report 07:4 Frey Frctions Rickrd Fernström Exmensrete i mtemtik, 5 hp Hledre: Andres Strömergsson Exmintor: Jörgen Östensson Juni 07 Deprtment of Mthemtics Uppsl University Frey Frctions

More information

Finite Automata-cont d

Finite Automata-cont d Automt Theory nd Forml Lnguges Professor Leslie Lnder Lecture # 6 Finite Automt-cont d The Pumping Lemm WEB SITE: http://ingwe.inghmton.edu/ ~lnder/cs573.html Septemer 18, 2000 Exmple 1 Consider L = {ww

More information

First Midterm Examination

First Midterm Examination Çnky University Deprtment of Computer Engineering 203-204 Fll Semester First Midterm Exmintion ) Design DFA for ll strings over the lphet Σ = {,, c} in which there is no, no nd no cc. 2) Wht lnguge does

More information

a,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1

a,b a 1 a 2 a 3 a,b 1 a,b a,b 2 3 a,b a,b a 2 a,b CS Determinisitic Finite Automata 1 CS4 45- Determinisitic Finite Automt -: Genertors vs. Checkers Regulr expressions re one wy to specify forml lnguge String Genertor Genertes strings in the lnguge Deterministic Finite Automt (DFA) re nother

More information

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true.

1. For each of the following theorems, give a two or three sentence sketch of how the proof goes or why it is not true. York University CSE 2 Unit 3. DFA Clsses Converting etween DFA, NFA, Regulr Expressions, nd Extended Regulr Expressions Instructor: Jeff Edmonds Don t chet y looking t these nswers premturely.. For ech

More information

Hamiltonian Cycle in Complete Multipartite Graphs

Hamiltonian Cycle in Complete Multipartite Graphs Annls of Pure nd Applied Mthemtics Vol 13, No 2, 2017, 223-228 ISSN: 2279-087X (P), 2279-0888(online) Pulished on 18 April 2017 wwwreserchmthsciorg DOI: http://dxdoiorg/1022457/pmv13n28 Annls of Hmiltonin

More information

Normal Forms for Context-free Grammars

Normal Forms for Context-free Grammars Norml Forms for Context-free Grmmrs 1 Linz 6th, Section 6.2 wo Importnt Norml Forms, pges 171--178 2 Chomsky Norml Form All productions hve form: A BC nd A vrile vrile terminl 3 Exmples: S AS S AS S S

More information

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science

CSCI 340: Computational Models. Kleene s Theorem. Department of Computer Science CSCI 340: Computtionl Models Kleene s Theorem Chpter 7 Deprtment of Computer Science Unifiction In 1954, Kleene presented (nd proved) theorem which (in our version) sttes tht if lnguge cn e defined y ny

More information

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy:

Scanner. Specifying patterns. Specifying patterns. Operations on languages. A scanner must recognize the units of syntax Some parts are easy: Scnner Specifying ptterns source code tokens scnner prser IR A scnner must recognize the units of syntx Some prts re esy: errors mps chrcters into tokens the sic unit of syntx x = x + y; ecomes

More information

Bases for Vector Spaces

Bases for Vector Spaces Bses for Vector Spces 2-26-25 A set is independent if, roughly speking, there is no redundncy in the set: You cn t uild ny vector in the set s liner comintion of the others A set spns if you cn uild everything

More information

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4 Intermedite Mth Circles Wednesdy, Novemer 14, 2018 Finite Automt II Nickols Rollick nrollick@uwterloo.c Regulr Lnguges Lst time, we were introduced to the ide of DFA (deterministic finite utomton), one

More information

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA)

CHAPTER 1 Regular Languages. Contents. definitions, examples, designing, regular operations. Non-deterministic Finite Automata (NFA) Finite Automt (FA or DFA) CHAPTER Regulr Lnguges Contents definitions, exmples, designing, regulr opertions Non-deterministic Finite Automt (NFA) definitions, equivlence of NFAs DFAs, closure under regulr

More information

ɛ-closure, Kleene s Theorem,

ɛ-closure, Kleene s Theorem, DEGefW5wiGH2XgYMEzUKjEmtCDUsRQ4d 1 A nice pper relevnt to this course is titled The Glory of the Pst 2 NICTA Resercher, Adjunct t the Austrlin Ntionl University nd Griffith University ɛ-closure, Kleene

More information

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors:

Vectors , (0,0). 5. A vector is commonly denoted by putting an arrow above its symbol, as in the picture above. Here are some 3-dimensional vectors: Vectors 1-23-2018 I ll look t vectors from n lgeric point of view nd geometric point of view. Algericlly, vector is n ordered list of (usully) rel numers. Here re some 2-dimensionl vectors: (2, 3), ( )

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2016 CS125 Lecture 12 Fll 2016 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Thoery of Automata CS402

Thoery of Automata CS402 Thoery of Automt C402 Theory of Automt Tle of contents: Lecture N0. 1... 4 ummry... 4 Wht does utomt men?... 4 Introduction to lnguges... 4 Alphets... 4 trings... 4 Defining Lnguges... 5 Lecture N0. 2...

More information

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

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers. Mehryar Mohri Courant Institute and Google Research Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Mehryr Mohri Cournt Institute nd Google Reserch mohri@cims.nyu.com Preliminries Finite lphet Σ, empty string. Set of ll strings over

More information

Table of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings...

Table of contents: Lecture N Summary... 3 What does automata mean?... 3 Introduction to languages... 3 Alphabets... 3 Strings... Tle of contents: Lecture N0.... 3 ummry... 3 Wht does utomt men?... 3 Introduction to lnguges... 3 Alphets... 3 trings... 3 Defining Lnguges... 4 Lecture N0. 2... 7 ummry... 7 Kleene tr Closure... 7 Recursive

More information

M A T H F A L L CORRECTION. Algebra I 2 1 / 0 9 / U N I V E R S I T Y O F T O R O N T O

M A T H F A L L CORRECTION. Algebra I 2 1 / 0 9 / U N I V E R S I T Y O F T O R O N T O M A T H 2 4 0 F A L L 2 0 1 4 HOMEWORK ASSIGNMENT #1 CORRECTION Alger I 2 1 / 0 9 / 2 0 1 4 U N I V E R S I T Y O F T O R O N T O 1. Suppose nd re nonzero elements of field F. Using only the field xioms,

More information

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama

Homework 4. 0 ε 0. (00) ε 0 ε 0 (00) (11) CS 341: Foundations of Computer Science II Prof. Marvin Nakayama CS 341: Foundtions of Computer Science II Prof. Mrvin Nkym Homework 4 1. UsetheproceduredescriedinLemm1.55toconverttheregulrexpression(((00) (11)) 01) into n NFA. Answer: 0 0 1 1 00 0 0 11 1 1 01 0 1 (00)

More information

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q.

Analytically, vectors will be represented by lowercase bold-face Latin letters, e.g. a, r, q. 1.1 Vector Alger 1.1.1 Sclrs A physicl quntity which is completely descried y single rel numer is clled sclr. Physiclly, it is something which hs mgnitude, nd is completely descried y this mgnitude. Exmples

More information

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz

Compiler Design. Fall Lexical Analysis. Sample Exercises and Solutions. Prof. Pedro C. Diniz University of Southern Cliforni Computer Science Deprtment Compiler Design Fll Lexicl Anlysis Smple Exercises nd Solutions Prof. Pedro C. Diniz USC / Informtion Sciences Institute 4676 Admirlty Wy, Suite

More information

FABER Formal Languages, Automata and Models of Computation

FABER Formal Languages, Automata and Models of Computation DVA337 FABER Forml Lnguges, Automt nd Models of Computtion Lecture 5 chool of Innovtion, Design nd Engineering Mälrdlen University 2015 1 Recp of lecture 4 y definition suset construction DFA NFA stte

More information

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck.

Automata Theory 101. Introduction. Outline. Introduction Finite Automata Regular Expressions ω-automata. Ralf Huuck. Outline Automt Theory 101 Rlf Huuck Introduction Finite Automt Regulr Expressions ω-automt Session 1 2006 Rlf Huuck 1 Session 1 2006 Rlf Huuck 2 Acknowledgement Some slides re sed on Wolfgng Thoms excellent

More information

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS

The University of Nottingham SCHOOL OF COMPUTER SCIENCE A LEVEL 2 MODULE, SPRING SEMESTER LANGUAGES AND COMPUTATION ANSWERS The University of Nottinghm SCHOOL OF COMPUTER SCIENCE LEVEL 2 MODULE, SPRING SEMESTER 2016 2017 LNGUGES ND COMPUTTION NSWERS Time llowed TWO hours Cndidtes my complete the front cover of their nswer ook

More information

Tutorial Automata and formal Languages

Tutorial Automata and formal Languages Tutoril Automt nd forml Lnguges Notes for to the tutoril in the summer term 2017 Sestin Küpper, Christine Mik 8. August 2017 1 Introduction: Nottions nd sic Definitions At the eginning of the tutoril we

More information

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes

CSE : Exam 3-ANSWERS, Spring 2011 Time: 50 minutes CSE 260-002: Exm 3-ANSWERS, Spring 20 ime: 50 minutes Nme: his exm hs 4 pges nd 0 prolems totling 00 points. his exm is closed ook nd closed notes.. Wrshll s lgorithm for trnsitive closure computtion is

More information

New Expansion and Infinite Series

New Expansion and Infinite Series Interntionl Mthemticl Forum, Vol. 9, 204, no. 22, 06-073 HIKARI Ltd, www.m-hikri.com http://dx.doi.org/0.2988/imf.204.4502 New Expnsion nd Infinite Series Diyun Zhng College of Computer Nnjing University

More information

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras Intuitionistic Fuzzy Lttices nd Intuitionistic Fuzzy oolen Algebrs.K. Tripthy #1, M.K. Stpthy *2 nd P.K.Choudhury ##3 # School of Computing Science nd Engineering VIT University Vellore-632014, TN, Indi

More information

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

Regular expressions, Finite Automata, transition graphs are all the same!! CSI 3104 /Winter 2011: Introduction to Forml Lnguges Chpter 7: Kleene s Theorem Chpter 7: Kleene s Theorem Regulr expressions, Finite Automt, trnsition grphs re ll the sme!! Dr. Neji Zgui CSI3104-W11 1

More information

Domino Recognizability of Triangular Picture Languages

Domino Recognizability of Triangular Picture Languages Interntionl Journl of Computer Applictions (0975 8887) Volume 57 No.5 Novemer 0 Domino Recognizility of ringulr icture Lnguges V. Devi Rjselvi Reserch Scholr Sthym University Chenni 600 9. Klyni Hed of

More information

1 Nondeterministic Finite Automata

1 Nondeterministic Finite Automata 1 Nondeterministic Finite Automt Suppose in life, whenever you hd choice, you could try oth possiilities nd live your life. At the end, you would go ck nd choose the one tht worked out the est. Then you

More information

Model Reduction of Finite State Machines by Contraction

Model Reduction of Finite State Machines by Contraction Model Reduction of Finite Stte Mchines y Contrction Alessndro Giu Dip. di Ingegneri Elettric ed Elettronic, Università di Cgliri, Pizz d Armi, 09123 Cgliri, Itly Phone: +39-070-675-5892 Fx: +39-070-675-5900

More information

Lecture 3: Equivalence Relations

Lecture 3: Equivalence Relations Mthcmp Crsh Course Instructor: Pdric Brtlett Lecture 3: Equivlence Reltions Week 1 Mthcmp 2014 In our lst three tlks of this clss, we shift the focus of our tlks from proof techniques to proof concepts

More information

Exercises Chapter 1. Exercise 1.1. Let Σ be an alphabet. Prove wv = w + v for all strings w and v.

Exercises Chapter 1. Exercise 1.1. Let Σ be an alphabet. Prove wv = w + v for all strings w and v. 1 Exercises Chpter 1 Exercise 1.1. Let Σ e n lphet. Prove wv = w + v for ll strings w nd v. Prove # (wv) = # (w)+# (v) for every symol Σ nd every string w,v Σ. Exercise 1.2. Let w 1,w 2,...,w k e k strings,

More information

Formal Languages and Automata Theory. D. Goswami and K. V. Krishna

Formal Languages and Automata Theory. D. Goswami and K. V. Krishna Forml Lnguges nd Automt Theory D. Goswmi nd K. V. Krishn Novemer 5, 2010 Contents 1 Mthemticl Preliminries 3 2 Forml Lnguges 4 2.1 Strings............................... 5 2.2 Lnguges.............................

More information

Lecture 6 Regular Grammars

Lecture 6 Regular Grammars Lecture 6 Regulr Grmmrs COT 4420 Theory of Computtion Section 3.3 Grmmr A grmmr G is defined s qudruple G = (V, T, S, P) V is finite set of vribles T is finite set of terminl symbols S V is specil vrible

More information

Symbolic enumeration methods for unlabelled structures

Symbolic enumeration methods for unlabelled structures Go & Šjn, Comintoril Enumertion Notes 4 Symolic enumertion methods for unlelled structures Definition A comintoril clss is finite or denumerle set on which size function is defined, stisfying the following

More information

Formal Language and Automata Theory (CS21004)

Formal Language and Automata Theory (CS21004) Forml Lnguge nd Automt Forml Lnguge nd Automt Theory (CS21004) Khrgpur Khrgpur Khrgpur Forml Lnguge nd Automt Tle of Contents Forml Lnguge nd Automt Khrgpur 1 2 3 Khrgpur Forml Lnguge nd Automt Forml Lnguge

More information

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers

Speech Recognition Lecture 2: Finite Automata and Finite-State Transducers Speech Recognition Lecture 2: Finite Automt nd Finite-Stte Trnsducers Eugene Weinstein Google, NYU Cournt Institute eugenew@cs.nyu.edu Slide Credit: Mehryr Mohri Preliminries Finite lphet, empty string.

More information

Java II Finite Automata I

Java II Finite Automata I Jv II Finite Automt I Bernd Kiefer Bernd.Kiefer@dfki.de Deutsches Forschungszentrum für künstliche Intelligenz Finite Automt I p.1/13 Processing Regulr Expressions We lredy lerned out Jv s regulr expression

More information

Lexical Analysis Finite Automate

Lexical Analysis Finite Automate Lexicl Anlysis Finite Automte CMPSC 470 Lecture 04 Topics: Deterministic Finite Automt (DFA) Nondeterministic Finite Automt (NFA) Regulr Expression NFA DFA A. Finite Automt (FA) FA re grph, like trnsition

More information

Some Theory of Computation Exercises Week 1

Some Theory of Computation Exercises Week 1 Some Theory of Computtion Exercises Week 1 Section 1 Deterministic Finite Automt Question 1.3 d d d d u q 1 q 2 q 3 q 4 q 5 d u u u u Question 1.4 Prt c - {w w hs even s nd one or two s} First we sk whether

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. Comparing DFAs and NFAs (cont.) Finite Automata 2 CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

set is not closed under matrix [ multiplication, ] and does not form a group.

set is not closed under matrix [ multiplication, ] and does not form a group. Prolem 2.3: Which of the following collections of 2 2 mtrices with rel entries form groups under [ mtrix ] multipliction? i) Those of the form for which c d 2 Answer: The set of such mtrices is not closed

More information

Lecture 9: LTL and Büchi Automata

Lecture 9: LTL and Büchi Automata Lecture 9: LTL nd Büchi Automt 1 LTL Property Ptterns Quite often the requirements of system follow some simple ptterns. Sometimes we wnt to specify tht property should only hold in certin context, clled

More information

INF1383 -Bancos de Dados

INF1383 -Bancos de Dados 3//0 INF383 -ncos de Ddos Prof. Sérgio Lifschitz DI PUC-Rio Eng. Computção, Sistems de Informção e Ciênci d Computção LGER RELCIONL lguns slides sedos ou modificdos dos originis em Elmsri nd Nvthe, Fundmentls

More information

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014

12.1 Nondeterminism Nondeterministic Finite Automata. a a b ε. CS125 Lecture 12 Fall 2014 CS125 Lecture 12 Fll 2014 12.1 Nondeterminism The ide of nondeterministic computtions is to llow our lgorithms to mke guesses, nd only require tht they ccept when the guesses re correct. For exmple, simple

More information

Deterministic Finite Automata

Deterministic Finite Automata Finite Automt Deterministic Finite Automt H. Geuvers nd J. Rot Institute for Computing nd Informtion Sciences Version: fll 2016 J. Rot Version: fll 2016 Tlen en Automten 1 / 21 Outline Finite Automt Finite

More information

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata

CS103B Handout 18 Winter 2007 February 28, 2007 Finite Automata CS103B ndout 18 Winter 2007 Ferury 28, 2007 Finite Automt Initil text y Mggie Johnson. Introduction Severl childrens gmes fit the following description: Pieces re set up on plying ord; dice re thrown or

More information

Chapter 2 Finite Automata

Chapter 2 Finite Automata Chpter 2 Finite Automt 28 2.1 Introduction Finite utomt: first model of the notion of effective procedure. (They lso hve mny other pplictions). The concept of finite utomton cn e derived y exmining wht

More information

Name Ima Sample ASU ID

Name Ima Sample ASU ID Nme Im Smple ASU ID 2468024680 CSE 355 Test 1, Fll 2016 30 Septemer 2016, 8:35-9:25.m., LSA 191 Regrding of Midterms If you elieve tht your grde hs not een dded up correctly, return the entire pper to

More information

SWEN 224 Formal Foundations of Programming WITH ANSWERS

SWEN 224 Formal Foundations of Programming WITH ANSWERS T E W H A R E W Ā N A N G A O T E Ū P O K O O T E I K A A M Ā U I VUW V I C T O R I A UNIVERSITY OF WELLINGTON Time Allowed: 3 Hours EXAMINATIONS 2011 END-OF-YEAR SWEN 224 Forml Foundtions of Progrmming

More information

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers

80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES. 2.6 Finite State Automata With Output: Transducers 80 CHAPTER 2. DFA S, NFA S, REGULAR LANGUAGES 2.6 Finite Stte Automt With Output: Trnsducers So fr, we hve only considered utomt tht recognize lnguges, i.e., utomt tht do not produce ny output on ny input

More information

1.4 Nonregular Languages

1.4 Nonregular Languages 74 1.4 Nonregulr Lnguges The number of forml lnguges over ny lphbet (= decision/recognition problems) is uncountble On the other hnd, the number of regulr expressions (= strings) is countble Hence, ll

More information

IST 4 Information and Logic

IST 4 Information and Logic IST 4 Informtion nd Logic T = tody x= hw#x out x= hw#x due mon tue wed thr 28 M1 oh 1 4 oh M1 11 oh oh 1 2 M2 18 oh oh 2 fri oh oh = office hours oh 25 oh M2 2 3 oh midterms oh Mx= MQx out 9 oh 3 T 4 oh

More information

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University

CS415 Compilers. Lexical Analysis and. These slides are based on slides copyrighted by Keith Cooper, Ken Kennedy & Linda Torczon at Rice University CS415 Compilers Lexicl Anlysis nd These slides re sed on slides copyrighted y Keith Cooper, Ken Kennedy & Lind Torczon t Rice University First Progrmming Project Instruction Scheduling Project hs een posted

More information

Random subgroups of a free group

Random subgroups of a free group Rndom sugroups of free group Frédérique Bssino LIPN - Lortoire d Informtique de Pris Nord, Université Pris 13 - CNRS Joint work with Armndo Mrtino, Cyril Nicud, Enric Ventur et Pscl Weil LIX My, 2015 Introduction

More information

Revision Sheet. (a) Give a regular expression for each of the following languages:

Revision Sheet. (a) Give a regular expression for each of the following languages: Theoreticl Computer Science (Bridging Course) Dr. G. D. Tipldi F. Bonirdi Winter Semester 2014/2015 Revision Sheet University of Freiurg Deprtment of Computer Science Question 1 (Finite Automt, 8 + 6 points)

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 CMSC 330 1 Types of Finite Automt Deterministic Finite Automt (DFA) Exctly one sequence of steps for ech string All exmples so fr Nondeterministic

More information

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb.

Types of Finite Automata. CMSC 330: Organization of Programming Languages. Comparing DFAs and NFAs. NFA for (a b)*abb. CMSC 330: Orgniztion of Progrmming Lnguges Finite Automt 2 Types of Finite Automt Deterministic Finite Automt () Exctly one sequence of steps for ech string All exmples so fr Nondeterministic Finite Automt

More information

8. Complex Numbers. We can combine the real numbers with this new imaginary number to form the complex numbers.

8. Complex Numbers. We can combine the real numbers with this new imaginary number to form the complex numbers. 8. Complex Numers The rel numer system is dequte for solving mny mthemticl prolems. But it is necessry to extend the rel numer system to solve numer of importnt prolems. Complex numers do not chnge the

More information

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

Theory of Computation Regular Languages. (NTU EE) Regular Languages Fall / 38 Theory of Computtion Regulr Lnguges (NTU EE) Regulr Lnguges Fll 2017 1 / 38 Schemtic of Finite Automt control 0 0 1 0 1 1 1 0 Figure: Schemtic of Finite Automt A finite utomton hs finite set of control

More information

Computing with finite semigroups: part I

Computing with finite semigroups: part I Computing with finite semigroups: prt I J. D. Mitchell School of Mthemtics nd Sttistics, University of St Andrews Novemer 20th, 2015 J. D. Mitchell (St Andrews) Novemer 20th, 2015 1 / 34 Wht is this tlk

More information

2.4 Linear Inequalities and Interval Notation

2.4 Linear Inequalities and Interval Notation .4 Liner Inequlities nd Intervl Nottion We wnt to solve equtions tht hve n inequlity symol insted of n equl sign. There re four inequlity symols tht we will look t: Less thn , Less thn or

More information

1.3 Regular Expressions

1.3 Regular Expressions 56 1.3 Regulr xpressions These hve n importnt role in describing ptterns in serching for strings in mny pplictions (e.g. wk, grep, Perl,...) All regulr expressions of lphbet re 1.Ønd re regulr expressions,

More information

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model?

11.1 Finite Automata. CS125 Lecture 11 Fall Motivation: TMs without a tape: maybe we can at least fully understand such a simple model? CS125 Lecture 11 Fll 2016 11.1 Finite Automt Motivtion: TMs without tpe: mybe we cn t lest fully understnd such simple model? Algorithms (e.g. string mtching) Computing with very limited memory Forml verifiction

More information

CISC 4090 Theory of Computation

CISC 4090 Theory of Computation 9/6/28 Stereotypicl computer CISC 49 Theory of Computtion Finite stte mchines & Regulr lnguges Professor Dniel Leeds dleeds@fordhm.edu JMH 332 Centrl processing unit (CPU) performs ll the instructions

More information

p-adic Egyptian Fractions

p-adic Egyptian Fractions p-adic Egyptin Frctions Contents 1 Introduction 1 2 Trditionl Egyptin Frctions nd Greedy Algorithm 2 3 Set-up 3 4 p-greedy Algorithm 5 5 p-egyptin Trditionl 10 6 Conclusion 1 Introduction An Egyptin frction

More information

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9.

5. (±±) Λ = fw j w is string of even lengthg [ 00 = f11,00g 7. (11 [ 00)± Λ = fw j w egins with either 11 or 00g 8. (0 [ ffl)1 Λ = 01 Λ [ 1 Λ 9. Regulr Expressions, Pumping Lemm, Right Liner Grmmrs Ling 106 Mrch 25, 2002 1 Regulr Expressions A regulr expression descries or genertes lnguge: it is kind of shorthnd for listing the memers of lnguge.

More information

CSCI 340: Computational Models. Transition Graphs. Department of Computer Science

CSCI 340: Computational Models. Transition Graphs. Department of Computer Science CSCI 340: Computtionl Models Trnsition Grphs Chpter 6 Deprtment of Computer Science Relxing Restrints on Inputs We cn uild n FA tht ccepts only the word! 5 sttes ecuse n FA cn only process one letter t

More information

Formal languages, automata, and theory of computation

Formal languages, automata, and theory of computation Mälrdlen University TEN1 DVA337 2015 School of Innovtion, Design nd Engineering Forml lnguges, utomt, nd theory of computtion Thursdy, Novemer 5, 14:10-18:30 Techer: Dniel Hedin, phone 021-107052 The exm

More information

PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA

PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA PART 2. REGULAR LANGUAGES, GRAMMARS AND AUTOMATA RIGHT LINEAR LANGUAGES. Right Liner Grmmr: Rules of the form: A α B, A α A,B V N, α V T + Left Liner Grmmr: Rules of the form: A Bα, A α A,B V N, α V T

More information