Many-valued truth functions, Cerny's conjecture and road. Lemminkaisenkatu 14 A, Turku, Finland and

Size: px
Start display at page:

Download "Many-valued truth functions, Cerny's conjecture and road. Lemminkaisenkatu 14 A, Turku, Finland and"

Transcription

1 Mnyvlued truth functions, Cerny's conjecture nd rod coloring Alexndru Mteescu Turku Centre for Computer Science, Lemminkisenktu 4 A, 050 Turku, Finlnd nd Fculty of Mthemtics, University of Buchrest, Romni emil: mteescu@utu. Arto Slom Turku Centre for Computer Science nd Deprtment of Mthemtics, University of Turku, 004 Turku, Finlnd emil: slom@utu. Turku Centre for Computer Science TUCS Technicl Report No 74 My 999 ISBN ISSN 3989

2 Astrct We investigte interconnections etween mnyvlued truth functions nd functions dened y nite deterministic utomt. Propositions in one of the theory hve often their nturl counterprt in the other theory. Such is the cse with prolems out completeness, s well s with Cerny's conjecture in utomt theory. Sometimes results in one theory, such s those concerning selfconjugcy of truth functions, cn e pplied in the other theory. TUCS Reserch Group Mthemticl Structures of Computer Science

3 Sheer functions nd complete sets Consider functions whose vriles, nite in numer, rnge over nite set N = f; ; : : :; ng; n ; nd whose vlues re elements of N. There re n nm distinct mplce functions. If N is chosen to e the set of n truth vlues, then the functions considered re oviously truth functions in nvlued logic. A function g is sid to e generted y set F of functions if g cn e expressed s composition of functions in F. For instnce, ech of the functions f (x) = f(x; f(x; x)); f (x; y) = f(f(x; f(x; y)); f(x; y)); f 3 (x; y; z) = f(f(x; x); f(y; z)) is generted y the set F consisting of the plce function f(x; y). A set F of functions is complete or Sheer set if F genertes every function, no mtter wht the numer m of vriles is. (We of course men here functions of the kind considered.) A function f is Sheer function if its unit set is Sheer set. It ws shown y Post in [] tht the set of ll plce functions is Sheer set, for ny n. The following result ws estlished y the present columnist in 958, [4]. Theorem. Assume tht n 5 nd F is set of functions contining ll permuttions of the numers ; ; : : :; n nd, in ddition, n ritrry function f(x; y) which is nondegenertely inry nd ssumes ll of the numers ; ; : : :; n s vlues. Then F is Sheer set. Theorem. does not hold true for vlues n 4. Counter exmples for n = nd n = 3 re provided y the functions dened y the tles It is esy to verify tht neither of these functions, ugmented with ll permuttions, genertes ll functions.

4 Of specil interest for our considertions lter is the cse n = 4. To see tht the sttement corresponding to Theorem. does not hold, consider the function f 4 (x; y) dened y the tle Then the set F 4 consisting of f 4 nd the 4 permuttions is not complete. Indeed, it is not dicult to verify tht the set H of oneplce functions generted y F 4 consists of the 4 permuttions, the 4 constnt functions nd the 3 functions ssuming two vlues, ech of them twice. Thus, H misses the 44 functions ssuming exctly three vlues, s well s the 48 functions ssuming two vlues in the rtio 3:. We will discuss elow lso the set H 0 of oneplce functions generted y f 4 lone. For instnce, f 4 (x; y) is the circulr permuttion (34) nd f 4 (x; f 4 (x; x)) is the function whose vlue sequence is 33 (tht is, the sequence of the four vlues listed in the numericl order of the rguments). Thus, these two functions re in H 0. However, contrry to H, no constnt function is in H 0. This follows ecuse f 4 is selfconjugte under the permuttion p(x), dened s the product of two trnspositions: (3)(4). Selfconjugcy under p mens tht f stises the eqution f(x; y) = p(f(p (x); p (y))): By considering composition sequences, it cn e veried tht function selfconjugte under p genertes only functions selfconjugte under p. Since none of the constnts is selfconjugte under (3)(4), they re not in H 0. For n 3, ny function f(x; y) generting ll permuttions in the symmetric group S n is Sheer function. This is n immedite consequence of Theorem., for n 5. The sttetement holds lso for n = 3 nd n = 4, [5]. The sttement does not hold for n = ecuse S is cyclic. Oneplce functions cn never e Sheer functions. In the sequel we re mostly concerned with the (monoid of) n n oneplce functions. How mny oneplce functions re needed to generte ll oneplce functions nd, in prticulr, which oneplce functions re such genertors If n = then two functions suce, nmely, the trnsposition () nd one of the two constnts. The solution for n 3 is presented in the following theorem, where y sis of the symmetric group S n we men ny two permuttions generting S n. Theorem. Assume tht n 3. Then three oneplce functions generte ll oneplce functions i two of them constitute sis of the symmetric

5 group S n nd the third ssumes exctly n vlues. No less thn three functions generte ll oneplce functions. See [5] for proof of Theorem.. [] is comprehensive study out the ses of the symmetric group (lso out ses consisting of more thn two elements). For instnce, the circulr permuttion (... n) nd the trnsposition () constitute sis, for ny n. A circulr permuttion nd n ritrry trnsposition form lwys sis if n is prime. Functions dened y nite utomt Insted of truth vlues, the elements of our sic set N = f; ; : : :; ng cn eqully well e viewed s sttes of nite deterministic utomton A = (f; ; : : :; ng; ; ), where is the lphet nd the trnsition function, everywhere dened. The utomt we consider re without initil nd nl sttes. (In the erly dys of utomt theory, such utomt were often referred to s Medvedev utomt, fter Ju. T. Medvedev. He trnslted the seminl 95 volume \Automt Studies" into Russin, nd included his own rticle in the trnsltion. The ltter remined lrgely unknown in the West.) All utomt considered in this pper re s indicted ove. Clerly, ech letter of the lphet cn e ssocited to the oneplce function g (x), dened y the condition g (x) = (x; ). This ssocition is extended in the nturl wy to concern words over : ctention of letters corresponds to the composition of functions. (Thus, the ssocition is morphism of the semigroup + into the semigroup of functions mpping N to N. We prefer here semigroups to monoids since we wnt to represent functions with nonempty words over.) The following prolem res now rise quite nturlly. (i) Wht is the set F (A) (susemigroup of the whole semigroup) of functions ssocited to given utomt A Does this set contin functions of prticulr type, for instnce, constnts Is the utomton functionlly complete in the sense tht its set of functions contins ll functions (Of course, we re concerned here with oneplce functions only.) (ii) Assuming tht F (A) contins previously specied function or one in specied clss of functions, wht is the \simplest" representtion of such function s word over A nturl mesure of complexity here is the word length. Prolems (ii) cn e restricted to concern only functionlly complete utomt. Consider rst the twostte utomton 3

6 ; Figure with the lphet f; g. The vlue sequences of the two functions g nd g re nd, respectively. All 4 functions, with vlue sequences,,,, re represented y the words ; ; ;, respectively. Thus, the utomton is functionlly complete nd ll functions re represented y words of length. Consider next the threestte utomton AK A ; c A A A A ; 3 A A A c c Figure with the lphet f; ; cg. By Theorem., the utomton is functonlly complete. In the following tle we give shortest possile representtion for ech of the 7 functions. The functions re numered ccording to the \lpheticl" order of their vlue sequences. 4

7 numer vlue sequence representtion cc c 3 3 c 4 c 5 c c c 0 c c 3 3 c 4 c c 5 3 c c 8 33 c 9 3 c c c 4 33 c 5 33 c 33 c cc Thus, ltogether 0 dierent functions re represented y words of length. Additionlly, functions re represented y words of length 3, nd 7 further functions y words of length 4. The remining exceptionl functions, 5, 0, 9 require word of length 5 for their representtion. We oserve tht one of these exceptionl functions is constnt, wheres the other two constnts re represented y words of length 4 ut y no shorter words. Since there re ltogether 0 (nonempty) words of length 4, some functions possess mny representtions using such words. The gretest numer is possessed y function 5 which hs no less thn 7 representtions using words of length 4: c; c ; c; c; c ; c 3 ; 3 c; c; c ; c ; c 3 ; cc; cc; c c; cc; c ; c 4 : Further detils re contined in [7]. By Theorem., functionlly complete nstte utomt over the lphet f; ; cg cn e constructed, for ny n. 5

8 Finlly, consider the following two fourstte utomt: ; c c ; 4 3 ; c c Figure 3 ; c ; c ; c 4 3 ; c Figure 4 In oth cses,, nd c re circulr permuttion, trnsposition nd nonpermuttion, respectively. However, the sitution is drsticly dierent in oth cses. While the former utomton is functionlly complete y Theorem., the ltter utomton A 0 genertes only functions in the set H 0 discussed in Section. Indeed, the vlue sequences of the functions g (x), g (x) nd g c (x) in the ltter utomton re 34, 43, 33, respectively. Considering the function f 4 (x; y) dening the set H 0, we see tht g (x) = f 4 (x; x); g c (x) = f 4 (x; f 4 (x; x)); g (x) = f 4 (x; f 4 (f 4 (x; x); f 4 (x; x))): This shows tht every function represented y the ltter utomton A 0 is in H 0 nd, consequently, selfconjugte under the permuttion (3)(4). Hence,

9 no constnts re represented. We leve it to the reder to verify tht the permuttions represented constitute the group consisting of the identity (), two circulr permuttions (34) nd (43), two trnspositions (3) nd (4), s well s three products ()(34), (3)(4) nd (4)(3). All these permuttions p stisfy the eqution p = gpg, where g is the permuttion (3)(4). 3 Trget functions We now discuss the prolem re (ii) referred to in the preceding section. Thus, we specify function f : f; ; : : :; ng! f; ; : : :; ng nd consider representtions of f y nstte deterministic utomt, in the sense descried ove. Of course, given f, we cn immeditely construct n utomton, where one of the letters directly gives rise to f. We wnt to consider ll nstte utomt nd, for ech utomton, look for the \simplest" representtion of f. It is lso possile tht f is not t ll represented y specic utomton. For instnce, if f is constnt, 3cycle or function ssuming exctly 3 vlues, then it is not represented y the utomton A 0 considered t the end of the preceding section. By denition, if n utomton A is functionlly complete, then ny f is represented. Given nite deterministic utomton A = (f; ; : : :; ng; ; ) nd function f : f; ; : : :; ng! f; ; : : :; ng, we denote y L(A; f) + the lnguge, consisting of ll words representing f. Thus w L(A; f) mens tht w tkes the utomton A from the stte i to the stte f(i), for ny i = ; ; : : :; n. Being n intersection of regulr lnguges, L(A; f) is lwys regulr. L(A; f) eing empty mens tht f is not represented y A. In choosing the \simplest" representtion, we indicte complexity y word length. This gives rise to the following denitions, [7]. For lnguge L, we denote y min(l) the length of the shortest word in L. By denition min(;) =. (Since we don't consider lnguges contining the empty word, min(l) is lwys positive integer or.) For given A nd f, the complexity C(A; f) of f with respect to A is dened y C(A; f) = min(l(a; f)): The complexity C(f) of function f : f; ; : : :; ng! f; ; : : :; ng is de ned y C(f) = mx C(A; f); where A rnges over nstte utomt such tht L(A; f) = ;. The complete complexity CC(f) of f is dened y CC(f) = mx C(A; f); where A now rnges over functionlly complete nstte utomt. 7

10 Some oservtions re immedite. For ny f, n utomton A f with C(A f ; f) =, s well s n utomton A 0 with f C(A0 ; f) =, cn e eectively constructed. Both of the complexities C(f) nd CC(f) re positive f integers nd, for ny f, CC(f) C(f). Also the upper ound C(f) n n is cler, in view of the totl numer of functions. The next theorem, [7], shows tht, for some functions f, C(f) hs n exponentil lower ound. Theorem 3. There re functions f : f; ; : : :; ng! f; ; : : :; ng for which no polynomil P (n) with the property C(f) P (n) exists. Proof outline. We let f e the identity function nd consider vlues of n of the form n = p + p + : : : + p k, where the p's re distinct primes. (For instnce, we my tke the rst k primes.) Consider now the utomton A n = (f; ; : : :; ng; fg; ), where the trnsitions re dened s follows. The stte set is divided into k pirwise disjoint susets, consisting of p ; p ; : : :; p k elements, respectively. In ech of the susets, the only letter ects circulr permuttion. It is now cler tht C(A n ; f) = p p : : :p k : Since there exists no polynomil upper ound for the product of k primes in terms of their sum, our theorem follows. The proof is not vlid for the complete complexity CC(f). We return to the discussion of CC(f) in [7]. Clerly, there re functions f such tht CC(f) < C(f). 4 Cerny's conjecture We consider now constnt functions f c : f; ; : : :; ng! fcg, where c n. The following result holds for the complexity C(f c ). Theorem 4. C(f c ) n(n ): The proof of Theorem 4. is given in detil in [7]. The following outline should e quite helpful. We my ssume tht c = n; this cn lwys e chieved y renumering. Consider the following utomton B n = (f; ; : : :; ng; f; g; ), where is dened y the following grph: 8

11 @ q ; n Figure 5 n Thus, (i; ) = i +, for i n, (n; ) = nd (i; ) = i, for i n, (n; ) =. It is esily veried tht the constnt f n is represented y the word ( n ) n of length n(n ). It is somewht more complicted to show tht no shorter word suces. The result C(B n ; f n ) = n(n ) proves the theorem. Cerny's conjecture. C(f n ) = n(n ). In view of Theorem 4., Cerny's conjecture mounts to the following sttement. For ny utomton A with L(A; f c ) = ;, we hve C(A; f c ) n(n ). Cerny's conjecture is usully presented in terms of synchronizing words. By denition, w is synchronizing word for n utomton A if w tkes A from ny of its sttes to the sme stte. In this terminology, Cerny's conjecture sys tht, whenever n nstte utomton possesses synchronizing word, then it possesses synchronizing word of length (n ). Our version of the conjecture, presented ove, is slightly weker thn the \synchroversion". Indeed, ssume tht the synchroversion holds true nd A is n nstte utomton with L(A; f c ) = ;. Then some constnt function f d is represented y word of length (n ). This implies tht the previously chosen constnt function f c is represented y word of length (n ) + n = n(n ), ecuse the longest pth without loops in A is of length n. There is no direct rgument from our version to the synchroversion. However, it is very unlikely tht the synchroversion of the conjecture is flse nd our version true. Indeed, in view of the rich possiilities for functionl constructions (for instnce, see []), oth versions cn very well e wrong. We hve not seen Cerny's originl pper [] nd cnnot comment on his possile rguments supporting the conjecture. We discuss here riey two rguments tht could e used to support it. 9

12 Consider rst the following rgument y enumertion. The totl numer of ll words of length t most (n) is much lrger thn the totl numer of functions. Hence, it is likely tht some constnt gets n erly representtion mong such huge numer of words. The wekness of this rgument lies in the fct tht mny functions possess multiple representtions. This ws oserved lredy for the functionlly complete 3stte utomton discussed in Section. Another rgument possily supporting the conjecture concerns the longest possile descent to constnt. Consider the synchroversion of the conjecture. We know tht synchronizing word exists, nd wnt to nd short one. The function g ssocited to letter mps ech suset S of the stte set N into nother suset S 0. Therey the crdinlity of S 0 is t most tht of S. We egin with the whole set N nd im t set of crdinlity, using dierent functions g. In this process, there re descending steps when the crdinlity ecomes strictly smller, s well s permuting steps, prepring for the next descent. There re t most n descending steps. Between two descending steps, there re t most n permuting steps ecuse the longest pth without loops hs n edges. Hence, the totl numer of steps is t most (n ) + (n )(n ) = (n ). The wekness of this rgument lies in the estimte concerning permuting steps. Doule trnsitivity might e needed: we might hve to trnsfer the pir (i ; i ) to the pir (j ; j ) in order to descend further. For this trnsfer, n steps might not suce. (Actully, they lwys suce with n = 3, for which vlue the rgument is vlid.) The following exmple, originlly due to [3], illustrtes this point @ 4 3 Figure The utomton is smll enough for us to give lso its \suset chrt", indicting the suset trnsformtions ected y the two functions g nd g. Oserve tht, in generl, the suset chrt gives very little informtion 0

13 out the semigroup of functions generted y the utomton ut it gives ll necessry informtion out synchronizing words. For the ove utomton, the suset chrt looks s follows: 34 ' $ & % 3 3 & 4 3 ; 4 34 % 3 4 ' $ & % & & % Figure 7

14 In this exmple, (n ) = 9 nd n(n ) =. On the other hnd, the shortest pth from the whole set f; ; 3; 4g to some singleton set is of length 9, nd to the previously chosen singleton set f4g is of length. However, 4 > n permuting steps re needed t the level of twoelement susets. The conjecture is sved ecuse, \mirculously", < n permuting steps suce t the level of threeelement susets. It would e too lengthy to summrize here the literture round Cerny's conjecture. The contriutions of J.E. Pin hve een quite sustntil. (For instnce, see [8 0].) In fct, his recent inspiring visit to Turku, lrgely initited our interest in the conjecture. The references [4], [5], [], [3] should e mentioned s recent contriutions to the re. 5 Rod coloring The decidility of most (ut not ll!) of the prolems for functions introduced in Section is firly ovious. It is decidle whether or not given utomton is functionlly complete, or whether specic function elongs to the set of functions represented. It is decidle whether or not synchronizing word exists for given utomton nd, if it does, shortest synchronizing word cn e found. However, the lgorithms re mostly sed on n exhustive serch; nice necessry nd sucient conditions re lrgely missing. The rod coloring prolem, [], elongs to the re of synchronizing words. We re given nite directed grph G, where the edges re unleled. The tsk is to nd leling of the edges tht turns G into deterministic utomton possessing synchronizing word. The term \rod coloring" is due to the following interprettion. A trveler lost in the grph G cn lwys nd wy ck home regrdless of where he/she ctully strted, provided he/she follows sequence of lels (colors) constituing synchronizing word. In the setup of the prolem, the given grph G stis es the following requirements: (i) All vertices hve the sme outdegree ( condition necessry for mking G n utomton) nd (ii) G is strongly connected nd the gretest common divisor of the cycle lengths is ( condition necessry for synchronizing words). For instnce, consider the grph

15 4 Figure 8 3 The leling c c c 4 Figure 9 3 c constitutes wrong solution: s seen in Section, no synchronizing word cn exist. However, the chnge of the lels nd c in the rrows emnting from the stte leds to the correct solution 3

16 c c c 4 Figure 0 3 c Here we hve the shortest synchronizing word. References [] Adler, R., Goodwin, I. nd Weiss, B.; Equivlence of topologicl Mrkov shifts, Isrel. J. Mth. 7 (977) [] Cerny, J.; Poznmk k homogennym experimentom s konecnymi utomtmi, Mt. fyz. cs. SAV 4 (94), [3] Cerny, J., Pirick, A. nd Rosenuerov; On directle Automt, Kyernetik, 7, 4 (97) [4] Duuc, L.; Sur les utomtes circulires et l conjecture de Cerny, Informtique theorique et Applictions, 3, 3 (998) 34. [5] Gohring, W.; Miniml Initilizing Word: Contriution to Cerny's Conjecture, Journl of Automt, Lnguges nd Comintorics (997) 4, 09. [] Imreh, B. nd Steiny, M.; Directle nondeterministic utomt, Act Cyernetic, 4, (999) 05. [7] Mteescu, A. nd Slom, A.; Functionl constructions in nite utomt. In preprtion. 4

17 [8] Pin, J.E.; Le proleme de l synchronistion, Contriution l'etude de l conjecture de Cerny, These de 3 e cycle l'universite Pierre et Mrie Curie (Pris ), 978. [9] Pin, J.E.; Le proleme de l synchronistion et le conjecture de Cerny, Noncommuttive structures in lger nd geometric comintorics, De Luc, A., ed., Quderni de l Ricerc Scientic, CNR, Rom, 98, 09, [0] Pin, J.E.; On two comintoril prolems rising from utomt theory, Annls of Discrete Mthemtics, 7 (983) [] Piccrd, S.; Sur les ses du groupe symetrique et les couples de sustitutions qui engendrent un groupe regulier, Pris, Liririe Vuiert (94). [] Post, E.L.; Introduction to generl theory of elementry propositions, Amer. J. Mth. 43 (9) [3] Rystsov, I.K.; Qusioptiml Bound for Length Reset Words for Regulr Automt, Act Cyernetic, (995) [4] Slom, A.; A theorem concerning the composition of functions of severl vriles rnging over nite set, J. Symolic Logic, 5 (90) [5] Slom, A.; On the composition of functions of severl vriles rnging over nite set, Ann. Univ. Turkuensis, Ser. AI, 4 (90). [] Slom, A.; On sic groups for the set of functions over nite domin, Ann. Acd. Scient. Fennice, Ser. AI, 338 (93). 5

18 Turku Centre for Computer Science Lemminkisenktu 4 FIN050 Turku Finlnd University of Turku Deprtment of Mthemticl Sciences Ao Akdemi University Deprtment of Computer Science Institute for Advnced Mngement Systems Reserch Turku School of Economics nd Business Administrtion Institute of Informtion Systems Science

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

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

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

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

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

Lecture 09: Myhill-Nerode Theorem

Lecture 09: Myhill-Nerode Theorem CS 373: Theory of Computtion Mdhusudn Prthsrthy Lecture 09: Myhill-Nerode Theorem 16 Ferury 2010 In this lecture, we will see tht every lnguge hs unique miniml DFA We will see this fct from two perspectives

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

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

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

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

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

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

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

CS 330 Formal Methods and Models

CS 330 Formal Methods and Models CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2017 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 2 1. Prove ((( p q) q) p) is tutology () (3pts) y truth tle. p q p q

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

Converting Regular Expressions to Discrete Finite Automata: A Tutorial

Converting Regular Expressions to Discrete Finite Automata: A Tutorial Converting Regulr Expressions to Discrete Finite Automt: A Tutoril Dvid Christinsen 2013-01-03 This is tutoril on how to convert regulr expressions to nondeterministic finite utomt (NFA) nd how to convert

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

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations. Lecture 3 3 Solving liner equtions In this lecture we will discuss lgorithms for solving systems of liner equtions Multiplictive identity Let us restrict ourselves to considering squre mtrices since one

More information

1 From NFA to regular expression

1 From NFA to regular expression Note 1: How to convert DFA/NFA to regulr expression Version: 1.0 S/EE 374, Fll 2017 Septemer 11, 2017 In this note, we show tht ny DFA cn e converted into regulr expression. Our construction would work

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

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

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

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

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

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

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

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

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

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

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

Torsion in Groups of Integral Triangles

Torsion in Groups of Integral Triangles Advnces in Pure Mthemtics, 01,, 116-10 http://dxdoiorg/1046/pm011015 Pulished Online Jnury 01 (http://wwwscirporg/journl/pm) Torsion in Groups of Integrl Tringles Will Murry Deprtment of Mthemtics nd Sttistics,

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

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

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3 2 The Prllel Circuit Electric Circuits: Figure 2- elow show ttery nd multiple resistors rrnged in prllel. Ech resistor receives portion of the current from the ttery sed on its resistnce. The split is

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

Let's start with an example:

Let's start with an example: Finite Automt Let's strt with n exmple: Here you see leled circles tht re sttes, nd leled rrows tht re trnsitions. One of the sttes is mrked "strt". One of the sttes hs doule circle; this is terminl stte

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

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 UNIFORM CONVERGENCE Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3 Suppose f n : Ω R or f n : Ω C is sequence of rel or complex functions, nd f n f s n in some sense. Furthermore,

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

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

Section 6.1 INTRO to LAPLACE TRANSFORMS

Section 6.1 INTRO to LAPLACE TRANSFORMS Section 6. INTRO to LAPLACE TRANSFORMS Key terms: Improper Integrl; diverge, converge A A f(t)dt lim f(t)dt Piecewise Continuous Function; jump discontinuity Function of Exponentil Order Lplce Trnsform

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

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

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

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

Quadratic Forms. Quadratic Forms

Quadratic Forms. Quadratic Forms Qudrtic Forms Recll the Simon & Blume excerpt from n erlier lecture which sid tht the min tsk of clculus is to pproximte nonliner functions with liner functions. It s ctully more ccurte to sy tht we pproximte

More information

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's

C. C^mpenu, K. Slom, S. Yu upper boun of mn. So our result is tight only for incomplete DF's. For restricte vlues of m n n we present exmples of DF's Journl of utomt, Lnguges n Combintorics u (v) w, x{y c OttovonGuerickeUniversitt Mgeburg Tight lower boun for the stte complexity of shue of regulr lnguges Cezr C^mpenu, Ki Slom Computing n Informtion

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

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

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

Homework Solution - Set 5 Due: Friday 10/03/08

Homework Solution - Set 5 Due: Friday 10/03/08 CE 96 Introduction to the Theory of Computtion ll 2008 Homework olution - et 5 Due: ridy 10/0/08 1. Textook, Pge 86, Exercise 1.21. () 1 2 Add new strt stte nd finl stte. Mke originl finl stte non-finl.

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

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A. 378 Reltions 16.7 Solutions for Chpter 16 Section 16.1 Exercises 1. Let A = {0,1,2,3,4,5}. Write out the reltion R tht expresses > on A. Then illustrte it with digrm. 2 1 R = { (5,4),(5,3),(5,2),(5,1),(5,0),(4,3),(4,2),(4,1),

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

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

Surface maps into free groups

Surface maps into free groups Surfce mps into free groups lden Wlker Novemer 10, 2014 Free groups wedge X of two circles: Set F = π 1 (X ) =,. We write cpitl letters for inverse, so = 1. e.g. () 1 = Commuttors Let x nd y e loops. The

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

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

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

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

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

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. John Longley. 22 September School of Informatics University of Edinburgh Lnguges nd Automt Finite Automt Informtics 2A: Lecture 3 John Longley School of Informtics University of Edinburgh jrl@inf.ed.c.uk 22 September 2017 1 / 30 Lnguges nd Automt 1 Lnguges nd Automt Wht is

More information

Linear Systems with Constant Coefficients

Linear Systems with Constant Coefficients Liner Systems with Constnt Coefficients 4-3-05 Here is system of n differentil equtions in n unknowns: x x + + n x n, x x + + n x n, x n n x + + nn x n This is constnt coefficient liner homogeneous system

More information

Lecture 2 : Propositions DRAFT

Lecture 2 : Propositions DRAFT CS/Mth 240: Introduction to Discrete Mthemtics 1/20/2010 Lecture 2 : Propositions Instructor: Dieter vn Melkeeek Scrie: Dlior Zelený DRAFT Lst time we nlyzed vrious mze solving lgorithms in order to illustrte

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

MTH 505: Number Theory Spring 2017

MTH 505: Number Theory Spring 2017 MTH 505: Numer Theory Spring 207 Homework 2 Drew Armstrong The Froenius Coin Prolem. Consider the eqution x ` y c where,, c, x, y re nturl numers. We cn think of $ nd $ s two denomintions of coins nd $c

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

Frobenius numbers of generalized Fibonacci semigroups

Frobenius numbers of generalized Fibonacci semigroups Frobenius numbers of generlized Fiboncci semigroups Gretchen L. Mtthews 1 Deprtment of Mthemticl Sciences, Clemson University, Clemson, SC 29634-0975, USA gmtthe@clemson.edu Received:, Accepted:, Published:

More information

Review of Gaussian Quadrature method

Review of Gaussian Quadrature method Review of Gussin Qudrture method Nsser M. Asi Spring 006 compiled on Sundy Decemer 1, 017 t 09:1 PM 1 The prolem To find numericl vlue for the integrl of rel vlued function of rel vrile over specific rnge

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

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018 CS 301 Lecture 04 Regulr Expressions Stephen Checkowy Jnury 29, 2018 1 / 35 Review from lst time NFA N = (Q, Σ, δ, q 0, F ) where δ Q Σ P (Q) mps stte nd n lphet symol (or ) to set of sttes We run n NFA

More information

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique? XII. LINEAR ALGEBRA: SOLVING SYSTEMS OF EQUATIONS Tody we re going to tlk out solving systems of liner equtions. These re prolems tht give couple of equtions with couple of unknowns, like: 6= x + x 7=

More information

Exercises with (Some) Solutions

Exercises with (Some) Solutions Exercises with (Some) Solutions Techer: Luc Tesei Mster of Science in Computer Science - University of Cmerino Contents 1 Strong Bisimultion nd HML 2 2 Wek Bisimultion 31 3 Complete Lttices nd Fix Points

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

List all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1.

List all of the possible rational roots of each equation. Then find all solutions (both real and imaginary) of the equation. 1. Mth Anlysis CP WS 4.X- Section 4.-4.4 Review Complete ech question without the use of grphing clcultor.. Compre the mening of the words: roots, zeros nd fctors.. Determine whether - is root of 0. Show

More information

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows:

Improper Integrals. The First Fundamental Theorem of Calculus, as we ve discussed in class, goes as follows: Improper Integrls The First Fundmentl Theorem of Clculus, s we ve discussed in clss, goes s follows: If f is continuous on the intervl [, ] nd F is function for which F t = ft, then ftdt = F F. An integrl

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

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

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

GNFA GNFA GNFA GNFA GNFA

GNFA GNFA GNFA GNFA GNFA DFA RE NFA DFA -NFA REX GNFA Definition GNFA A generlize noneterministic finite utomton (GNFA) is grph whose eges re lele y regulr expressions, with unique strt stte with in-egree, n unique finl stte with

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

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automt Theory nd Forml Lnguges TMV027/DIT321 LP4 2018 Lecture 10 An Bove April 23rd 2018 Recp: Regulr Lnguges We cn convert between FA nd RE; Hence both FA nd RE ccept/generte regulr lnguges; More

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

, if x 1 and f(x) = x, if x 0.

, if x 1 and f(x) = x, if x 0. Indin Institute of Informtion Technology Design nd Mnufcturing, Kncheepurm Chenni 600 7, Indi An Autonomous Institute under MHRD, Govt of Indi An Institute of Ntionl Importnce wwwiiitdmcin COM05T Discrete

More information

CS 311 Homework 3 due 16:30, Thursday, 14 th October 2010

CS 311 Homework 3 due 16:30, Thursday, 14 th October 2010 CS 311 Homework 3 due 16:30, Thursdy, 14 th Octoer 2010 Homework must e sumitted on pper, in clss. Question 1. [15 pts.; 5 pts. ech] Drw stte digrms for NFAs recognizing the following lnguges:. L = {w

More information

Linear Inequalities. Work Sheet 1

Linear Inequalities. Work Sheet 1 Work Sheet 1 Liner Inequlities Rent--Hep, cr rentl compny,chrges $ 15 per week plus $ 0.0 per mile to rent one of their crs. Suppose you re limited y how much money you cn spend for the week : You cn spend

More information

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions CS 330 Forml Methods nd Models Dn Richrds, George Mson University, Spring 2016 Quiz Solutions Quiz 1, Propositionl Logic Dte: Ferury 9 1. (4pts) ((p q) (q r)) (p r), prove tutology using truth tles. p

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

Lecture 3: Curves in Calculus. Table of contents

Lecture 3: Curves in Calculus. Table of contents Mth 348 Fll 7 Lecture 3: Curves in Clculus Disclimer. As we hve textook, this lecture note is for guidnce nd supplement only. It should not e relied on when prepring for exms. In this lecture we set up

More information

3 Regular expressions

3 Regular expressions 3 Regulr expressions Given n lphet Σ lnguge is set of words L Σ. So fr we were le to descrie lnguges either y using set theory (i.e. enumertion or comprehension) or y n utomton. In this section we shll

More information

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont.

NFA DFA Example 3 CMSC 330: Organization of Programming Languages. Equivalence of DFAs and NFAs. Equivalence of DFAs and NFAs (cont. NFA DFA Exmple 3 CMSC 330: Orgniztion of Progrmming Lnguges NFA {B,D,E {A,E {C,D {E Finite Automt, con't. R = { {A,E, {B,D,E, {C,D, {E 2 Equivlence of DFAs nd NFAs Any string from {A to either {D or {CD

More information

CS103 Handout 32 Fall 2016 November 11, 2016 Problem Set 7

CS103 Handout 32 Fall 2016 November 11, 2016 Problem Set 7 CS103 Hndout 32 Fll 2016 Novemer 11, 2016 Prolem Set 7 Wht cn you do with regulr expressions? Wht re the limits of regulr lnguges? On this prolem set, you'll find out! As lwys, plese feel free to drop

More information

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies Stte spce systems nlysis (continued) Stbility A. Definitions A system is sid to be Asymptoticlly Stble (AS) when it stisfies ut () = 0, t > 0 lim xt () 0. t A system is AS if nd only if the impulse response

More information

Lecture 2: January 27

Lecture 2: January 27 CS 684: Algorithmic Gme Theory Spring 217 Lecturer: Év Trdos Lecture 2: Jnury 27 Scrie: Alert Julius Liu 2.1 Logistics Scrie notes must e sumitted within 24 hours of the corresponding lecture for full

More information

expression simply by forming an OR of the ANDs of all input variables for which the output is

expression simply by forming an OR of the ANDs of all input variables for which the output is 2.4 Logic Minimiztion nd Krnugh Mps As we found ove, given truth tle, it is lwys possile to write down correct logic expression simply y forming n OR of the ANDs of ll input vriles for which the output

More information

Section 6: Area, Volume, and Average Value

Section 6: Area, Volume, and Average Value Chpter The Integrl Applied Clculus Section 6: Are, Volume, nd Averge Vlue Are We hve lredy used integrls to find the re etween the grph of function nd the horizontl xis. Integrls cn lso e used to find

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

CSE396 Prelim I Answer Key Spring 2017

CSE396 Prelim I Answer Key Spring 2017 Nme nd St.ID#: CSE96 Prelim I Answer Key Spring 2017 (1) (24 pts.) Define A to e the lnguge of strings x {, } such tht x either egins with or ends with, ut not oth. Design DFA M such tht L(M) = A. A node-rc

More information

The Regulated and Riemann Integrals

The Regulated and Riemann Integrals Chpter 1 The Regulted nd Riemnn Integrls 1.1 Introduction We will consider severl different pproches to defining the definite integrl f(x) dx of function f(x). These definitions will ll ssign the sme vlue

More information