Generating finite transformation semigroups: SgpWin

Size: px
Start display at page:

Download "Generating finite transformation semigroups: SgpWin"

Transcription

1 Generting finite trnsformtion semigroups: SgpWin Donld B. McAlister ( don@mth.niu.edu ) Deprtment of Mthemticl Sciences Northern Illinois University nd C.A.U.L. Septemer 5, 2006 Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

2 SgpWin (Semigroup for Windows) Written in C++ s stndlone progrm Originlly written for PC under DOS ut rewritten for Windows Not prt of mjor project like GAP Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

3 How mny semigroups re there? Numer of elements Numer of groups Numer of semigroups Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

4 How ig re they? Size of set Mx. size of group Mx. size of semigroup Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

5 Consequences for generting semigroups Storing the elements internlly quickly ecomes imprctile Solutions? Don t store the elements. Insted e stisfied with some structurl informtion Lllement nd McFdden On the determintion of Green s reltions in finite trnsformtion semigroups, J. Symolic Computtion (10) (1990), (5), Do store the elements Be stisfied with smll semigroups Froidure nd Pin, Algorithms for computing finite semigroups, Foundtions of Computtionl mthemtics (Rio de Jneiro), (1997), Springer, Berlin SgpWin Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

6 Wht do we men y generte? Let X e finite set nd A (finite) set of distinct trnsformtions on X. By the universl properties of the free semigroup A + on A, there is unique homomorphism φ of A + onto A which mkes the digrm A A + φ A commute. (The un-leled mps re the ovious inclusions.) To generte A mens here 1 to specify set of representtives of the clsses of the congruence φ φ 1, with the memers of A s the representtives of their clsses. 2 to e le to sy how these representtives multiply. For this it suffices, given representtive x nd A, to e le to specify the representtive of the clss of x. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

7 Generl strtegy 1 List, in some wy, the elements of A + nd, for ech element x, clculte the corresponding trnsformtion T (x) 2 If T (x) hs lredy ppered in the list of constructed trnsformtions, discrd x nd move on to the next memer of A +. If it hs not ppered dd x nd T (x) to the list nd move on to the next memer of A +. Prolems This isn t n lgorithm. It hs no stopping rule. Both clculting the trnsformtions from scrtch nd serching to see if we hve new trnsformtion require time nd effort. serching, in prticulr - Google notwithstnding - requires lot of work The process doesn t tke dvntge of work we hve lredy crried out, nd informtion we my hve gined. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

8 The short-lex ordering This egins with totl ordering on A which is then extended to comptile totl ordering on A +, s follows { length(u) < length(v) u < v or length(u) = length(v) nd u = xu, v = xv where x, u v A,, A nd <. This ordering is comptile with mulipliction on oth sides in A + - in fct, it is comptile well ordering. Ech φ φ 1 -clss hs lest memer. We cll these the cnonicl words nd use them for the clss representtives in generting A. Lemm The set C of cnonicl words is fctoril in the sense tht w C implies tht ech fctor of w elongs to C. If Y is fctoril suset of A + nd w Y, A, then Y {w} is fctoril if nd only if w = v where v Y, A. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

9 The lgorithm - Step 1 The lgorithm constructs the Cyley grph of A - ctully the Cyley grph of A with n extr identity djoined. This gurntees tht we hve root node. The set C denotes the set of nodes constructed so fr. It is fctoril set. The lgorithm proceeds y trversing the su-tree of A + corresponding to the cnonicl words using the short-lex ordering. 1 The genertors A re nodes of the Cyley grph. Thus we egin with C = A. There is n rrow from the root to for ech genertor. root Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd5, C.A.U.L.) / 34

10 The lgorithm - Step 2 Becuse the cnonicl words form fctoril set, new cnonicl word of length n + 1 must hve the form w where w is cnonicl word of length n. 2. Suppose tht w is cnonicl word (which we hve constructed) nd tht we hve delt with ll cnonicl words smller thn w nd ll genertors smller thn. This mens tht the rrows in the Cyley grph strting t nodes smller thn w hve een constructed nd tht the sme is true for ll rrows strting t w leled y letters smller thn. We need to construct the rrow w? in the Cyley grph strting t w with lel. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

11 Step 2 - continued Test to see if C {w} is fctoril set. By the lemm erlier, this occurs if nd only if w = v (in A + ) where A nd v C. 1 If not then w cnnot e cnonicl word, nd v lso is not cnonicl word. The cnonicl word u such tht uφ = vφ is smller thn v so u < v = w while u nd w hve the sme imge under φ, nd thus the sme representtive. By our induction hypothesis, we cn find this representtive z. Drw the rrow w z 2 If C {w} is fctoril, then w my or my not e cnonicl word. We cn t deduce this internlly; tht is using the prt of the Cyley grph we hve constructed so fr. We need some externl help. For this we use n orcle who cn nswer the question for us. 1 If w is new, drw n rrow from w to w with lel nd dd w to C. 2 If w = v, s trnsformtions, drw n rrow from w to v with lel. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

12 Step 3 - the next step 1 If is not the lst genertor, replce y the next genertor nd repet Step 2. 2 if is the lst genertor ut w is not the lst memer of C on its level, replce w y the next memer of C on tht level, replce y the first genertor nd repet Step 2. 3 If w is the lst memer of C on this level 1 if C contins n element on the next level, replce w y the first such memer nd y the first genertor nd repet Step 2. 2 otherwise QUIT. The Cyley grph is complete. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

13 Algorithm - comments In the first plce, it does not explin, in Step 2, how to determine whether or not C {w} is fctoril. Nor does it explin, in cse it is not, how to find the cnonicl word equivlent to w. Theorem In Step 2(), it does not explin how the orcle works. The lgorithm gives, for free, presenttion for S = A. There re two wys in which ckwrd rrows rise 1 those which rise from old informtion when C {w} is not fctoril; 2 those which rise from new informtion provided y the orcle; these give set P = {w = v} of reltions. S = A P. P is the Knuth-Bendix presenttion of S ssocited with the ordered lphet A. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

14 Algorithms + dt structures = progrms (N. Wirth) A semigroup element is considered s dt structure with two prts node dt rrows The node dt consists of things tht chrcterize the elements of the semigroup The rrows re pointers, one for ech genertor, to other elements. They represent the dynmics of the Cyley grph. The semigroup itself consists of n rry of pointers to elements. We could use list insted of n rry which would llow us, theoreticlly, to del with semigroups of ritrry size. I chose n rry when I first strted to write the progrm nd never chnged this. onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

15 Node dt At its most sic level, the node dt might e considered to consist of word ction where the word is the cnonicl word equivlent to the element nd the ction represents the ction of the trnsformtion corresponding to the element. It is more convenient to include third item word ction structurl informtion where the structurl informtion contins dt which is useful for semigroup theoretic nlysis. onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

16 Completing the lgorithm One of the questions not yet fully nswered in the lgorithm is the following. Given cnonicl word w nd A, with w = v how do you know if v is cnonicl word? 1 Strt t the root nd trvel the pth leled y v in the the Cyley grph to rech the node whose word is v. 2 If v = v then v is cnonicl word nd we consult the orcle out w. 3 If not w = v in S nd we need to get the cnonicl word for v. Since v < w we cn find this y mking second voyge on the Cyley grph to rech the pproprite node. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

17 Avoiding words Insted of storing the cnonicl word w = uc, store c nd pointer to u (the prefix of w). prefix (u) lel (c) In the grph we hve the rrow c u w Then w cn e recovered y ck-trcking to the root throught the predecessors. lels, prefixes, nd suffixes come for free in the lgorithm. If we store the suffixes s well s prefixes nd lels we cn cut down the numer of trips on the Cyley grph y one. This results in sustntil increse in speed especilly if we still store the cnonicl words. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

18 The orcle The orcle here is just inry tree whose nodes re pointers to the semigroup elements. It uses inry serch to determine whether or not given ction is tht of one of its memers. If it is, it returns the ddress of the semigroup element. If it isn t - the semigroup hs new element - it dds the dress of the new element to the tree. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

19 Anlyzing the structure The dt structure prt of ech element consists of L-clss Rep R-clss Rep D-clss Rep imge rnk type All of these re un-signed integers except for type which is chrcter. Given tht we use n rry to contin the elements of the semigroup, it is nturl tht integers - the indices of the elements - re used to locte the representtives of the vrious Green s clsses, Type is one of eight chrcters i h r n idempotent non-idempotent group element regulr non-group element non-regulr element The sme letter cpitlized indictes tht the element is lso genertor. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

20 Anlysing the structure - Green s reltions The lgorithm used is hyrid one. It uses 1 the fct tht it is esy to trvel on the Cyley grph to clculte the R-clsses; 2 the fct tht we re deling with trnsformtion semigroup to clculte L. The lgorithm is trditionl in tht it first clcultes the regulr Green s clsses - those tht contin idempotents - nd then uses this informtion to find the non-regulr ones. Lemm Let S e finite trnsformtion semigroup nd let e e n idempotent. Then S elongs to the R-clss of e if nd only if rnk() = rnk(e) nd e S. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

21 Regulr R-clsses In order to use this lemm, we need to e le to identify the idempotents. To do this we use itwise opertions to otin representtion of the imge of trnsformtion s n un-signed integer Set Action Imge = = 15 The rnk is just the numer of 1 s in the representtion. It is esy while finding this to determine whether or not the element is n idempotent - or group element. Bitwise opertions on the imge lso mke to esy to determine, for exmple, if n idempotent e is right identity for n element. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

22 Regulr R-clsses The R-clss of e consists of ll the elements of S, with the sme rnk s e, from which it is possile to trvel to e. To find these we construct the djoint grph Adj y turning the rrows round: there is n rrow in Adj from to if nd only if rnk() = rnk() nd there is n rrow in the Cyley grph from to. the R-clss of e consists of ll elements in Adj which cn e reched from e. Finding these is simple mtter. this sugrph of Adj is fmilir oject. It is wht Buck Stephen clls the Schützenerger grph of e. onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

23 Regulr L-clsses Now tht we know the regulr elements, we re le to use the clssicl result Lemm Let S e finite trnsformtion semigroup nd let nd e regulr elements of S. Then L if nd only if imge() = imge(). to find the regulr L-clsses. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

24 D-clsses Once we know the regulr L nd R-clsses it ecomes stndrd mtter, using Green s reltion theory, to identify the regulr D-clsses. To find the non-regulr clsses we mke use of the fct tht the non-trivil non-regulr L nd R-clsses re trnsltions of the regulr ones. This is the process used y Lllement nd McFdden. A detiled description cn e found in their pper. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

25 Finl remrks The structurl informtion strored with the semigroup elements, llied with stndrd semigroup theory llows us to chrcterize mny semigroups efficiently in terms of their structure. For exmple, result of FitzGerld shows tht regulr semigrop is orthodox if nd only if the product of D- relted idempotents is idempotent. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

26 Trce congruences Let S e finite inverse semigroup nd ρ e congruence on S. Then the restriction π of ρ to the set E of idempotents of S is congruence on E with the dditionl property tht (e, f ) π ( 1 e, 1 f) π for ech S. Such congruence on E is clled trce congruence nd π = tr(ρ) is clled the trce of ρ. The reltion on the lttice of congruences on S defined y ρ τ tr(ρ) = tr(τ) is esily seen to e complete lttice congruence. (, ) π min ( 1, 1 ) π nd e = e for some e = e 2 with (e, 1 ) π (, ) π mx ( 1 e, 1 e) π for ll e E. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

27 Trce congruences Suppose tht π is trce congruence. Then, ecuse S is finite, ech π clss hs minimum memer. We cll these idempotents the π-miniml idempotents if e is n idempotent then ε(e) denotes the minimum memer of the π-clss contining e. In terms of these we cn give simpler description of π min : (, ) π min ε( 1 ) = ε( 1 ) = ε nd ε = ε. Furthermore, the π-miniml idempotents determine the idempotent nd Green s reltion structure of S/π min. For ech S denote y [] the π min -clss of. Let e e π-miniml idempotent. Then the mp [] is groupoid isomorphism of the D-clss of e onto the D-clss of [e] in S/π min. The prtilly ordered set of D-clsses tht contin π-miniml idempotents is isomorphic to the set of D-clsses of S/π min. The semiltice of idempotents of S/π min is isomorphic to the prtilly ordered set of π-miniml idempotents. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

28 Trce congruences It follows tht if we cn efficiently find the π-miniml idempotents we cn efficiently red off the structurl constnts of the quotient semigroup S/π min. Indeed, since every quotient of S/ρ, with tr(ρ) = π, is n idempotent seprting homomorphic imge of S/π min, we cn red off the the Green s reltion nd idempotent structure of S/ρ. Even if, in generl, we cnnot red off the sugoups. If S is trnsformtion semigroup on finite semigroup then there is unique idempotent of lowest rnk in ech π-clss. These elements re precisely the π-miniml idempotents. onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

29 Trce congruences - the lgorithm We use wht is essentilly the sieve of Eristothsenes - the wy one finds the primes - twice. Order the idempotents of S in order of incresing rnk, so tht the lest idempotent z is the first in the list. Set curr = z. Go througth the list, strting t curr nd delete ny idempotent e which is π-equivlent to curr. At the end of the list, move curr to the next remining memer nd repet. If there is no remining memer end. At this stge we hve, up to isomorphism, the idempotents of the quotient semigroup. We re-sieve this time using D insted of π. Now, to give the D-clss structure, ll we hve to do is to print out the D-clss dt for ech idempotent in the list. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

30 Primitive trce congruences Let D e D-clss of S nd define π D y (u, v) π D {e = e 2 D : e u} = {e = e 2 D : e v} π D is trce congruence. We sy it is primitive trce congruence. Every trce congruence is n intersection of primitive trce congruences. The numer of trce congruences cn e very lrge in reltion to the numer of D-clsses. For exmple, if S = E is chin with n elements then S hs 2 n 1 (trce)-congruences. onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

31 Finite Trnsformtion Semigroups Fim! Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

32 Exmple = ( ) nd = ( ) () onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

33 Exmple = ( ) nd = ( ) () onld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

34 Exmple - Presenttion () Presenttion: =, =, =, =, =. Donld B. McAlister ( don@mth.niu.edu ) (Deprtment Finite trnsformtion of Mthemticl semigroups Sciences Northern Illinois University Septemer nd 5, C.A.U.L.) / 34

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Free groups, Lecture 2, part 1

Free groups, Lecture 2, part 1 Free groups, Lecture 2, prt 1 Olg Khrlmpovich NYC, Sep. 2 1 / 22 Theorem Every sugroup H F of free group F is free. Given finite numer of genertors of H we cn compute its sis. 2 / 22 Schreir s grph The

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

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

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

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

CS 275 Automata and Formal Language Theory

CS 275 Automata and Formal Language Theory CS 275 utomt nd Forml Lnguge Theory Course Notes Prt II: The Recognition Prolem (II) Chpter II.5.: Properties of Context Free Grmmrs (14) nton Setzer (Bsed on ook drft y J. V. Tucker nd K. Stephenson)

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

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

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35

MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 MATH 101A: ALGEBRA I PART B: RINGS AND MODULES 35 9. Modules over PID This week we re proving the fundmentl theorem for finitely generted modules over PID, nmely tht they re ll direct sums of cyclic modules.

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

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-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

State Minimization for DFAs

State Minimization for DFAs Stte Minimiztion for DFAs Red K & S 2.7 Do Homework 10. Consider: Stte Minimiztion 4 5 Is this miniml mchine? Step (1): Get rid of unrechle sttes. Stte Minimiztion 6, Stte is unrechle. Step (2): Get rid

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

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

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

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

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

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

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

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 0. What is the Lebesgue integral about?

Chapter 0. What is the Lebesgue integral about? Chpter 0. Wht is the Lebesgue integrl bout? The pln is to hve tutoril sheet ech week, most often on Fridy, (to be done during the clss) where you will try to get used to the ides introduced in the previous

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

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

Decomposition of terms in Lucas sequences

Decomposition of terms in Lucas sequences Journl of Logic & Anlysis 1:4 009 1 3 ISSN 1759-9008 1 Decomposition of terms in Lucs sequences ABDELMADJID BOUDAOUD Let P, Q be non-zero integers such tht D = P 4Q is different from zero. The sequences

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

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

7.1 Integral as Net Change and 7.2 Areas in the Plane Calculus

7.1 Integral as Net Change and 7.2 Areas in the Plane Calculus 7.1 Integrl s Net Chnge nd 7. Ares in the Plne Clculus 7.1 INTEGRAL AS NET CHANGE Notecrds from 7.1: Displcement vs Totl Distnce, Integrl s Net Chnge We hve lredy seen how the position of n oject cn e

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

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

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

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

NFAs continued, Closure Properties of Regular Languages

NFAs continued, Closure Properties of Regular Languages Algorithms & Models of Computtion CS/ECE 374, Fll 2017 NFAs continued, Closure Properties of Regulr Lnguges Lecture 5 Tuesdy, Septemer 12, 2017 Sriel Hr-Peled (UIUC) CS374 1 Fll 2017 1 / 31 Regulr Lnguges,

More information

20 MATHEMATICS POLYNOMIALS

20 MATHEMATICS POLYNOMIALS 0 MATHEMATICS POLYNOMIALS.1 Introduction In Clss IX, you hve studied polynomils in one vrible nd their degrees. Recll tht if p(x) is polynomil in x, the highest power of x in p(x) is clled the degree of

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

Math Lecture 23

Math Lecture 23 Mth 8 - Lecture 3 Dyln Zwick Fll 3 In our lst lecture we delt with solutions to the system: x = Ax where A is n n n mtrix with n distinct eigenvlues. As promised, tody we will del with the question of

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

Math 4310 Solutions to homework 1 Due 9/1/16

Math 4310 Solutions to homework 1 Due 9/1/16 Mth 4310 Solutions to homework 1 Due 9/1/16 1. Use the Eucliden lgorithm to find the following gretest common divisors. () gcd(252, 180) = 36 (b) gcd(513, 187) = 1 (c) gcd(7684, 4148) = 68 252 = 180 1

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

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

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

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs

Connected-components. Summary of lecture 9. Algorithms and Data Structures Disjoint sets. Example: connected components in graphs Prm University, Mth. Deprtment Summry of lecture 9 Algorithms nd Dt Structures Disjoint sets Summry of this lecture: (CLR.1-3) Dt Structures for Disjoint sets: Union opertion Find opertion Mrco Pellegrini

More information

USA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year

USA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year 1/1/21. Fill in the circles in the picture t right with the digits 1-8, one digit in ech circle with no digit repeted, so tht no two circles tht re connected by line segment contin consecutive digits.

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

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

Regular Language. Nonregular Languages The Pumping Lemma. The pumping lemma. Regular Language. The pumping lemma. Infinitely long words 3/17/15

Regular Language. Nonregular Languages The Pumping Lemma. The pumping lemma. Regular Language. The pumping lemma. Infinitely long words 3/17/15 Regulr Lnguge Nonregulr Lnguges The Pumping Lemm Models of Comput=on Chpter 10 Recll, tht ny lnguge tht cn e descried y regulr expression is clled regulr lnguge In this lecture we will prove tht not ll

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

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh

Finite Automata. Informatics 2A: Lecture 3. Mary Cryan. 21 September School of Informatics University of Edinburgh Finite Automt Informtics 2A: Lecture 3 Mry Cryn School of Informtics University of Edinburgh mcryn@inf.ed.c.uk 21 September 2018 1 / 30 Lnguges nd Automt Wht is lnguge? Finite utomt: recp Some forml definitions

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

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

Lecture 2e Orthogonal Complement (pages )

Lecture 2e Orthogonal Complement (pages ) Lecture 2e Orthogonl Complement (pges -) We hve now seen tht n orthonorml sis is nice wy to descrie suspce, ut knowing tht we wnt n orthonorml sis doesn t mke one fll into our lp. In theory, the process

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

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

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

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

dx dt dy = G(t, x, y), dt where the functions are defined on I Ω, and are locally Lipschitz w.r.t. variable (x, y) Ω.

dx dt dy = G(t, x, y), dt where the functions are defined on I Ω, and are locally Lipschitz w.r.t. variable (x, y) Ω. Chpter 8 Stility theory We discuss properties of solutions of first order two dimensionl system, nd stility theory for specil clss of liner systems. We denote the independent vrile y t in plce of x, nd

More information

September 13 Homework Solutions

September 13 Homework Solutions College of Engineering nd Computer Science Mechnicl Engineering Deprtment Mechnicl Engineering 5A Seminr in Engineering Anlysis Fll Ticket: 5966 Instructor: Lrry Cretto Septemer Homework Solutions. Are

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

CS375: Logic and Theory of Computing

CS375: Logic and Theory of Computing CS375: Logic nd Theory of Computing Fuhu (Frnk) Cheng Deprtment of Computer Science University of Kentucky 1 Tle of Contents: Week 1: Preliminries (set lger, reltions, functions) (red Chpters 1-4) Weeks

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

are fractions which may or may not be reduced to lowest terms, the mediant of ( a

are fractions which may or may not be reduced to lowest terms, the mediant of ( a GENERATING STERN BROCOT TYPE RATIONAL NUMBERS WITH MEDIANTS HAROLD REITER AND ARTHUR HOLSHOUSER Abstrct. The Stern Brocot tree is method of generting or orgnizing ll frctions in the intervl (0, 1 b strting

More information

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 2013 Outline 1 Riemnn Sums 2 Riemnn Integrls 3 Properties

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

Preview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms

Preview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms Preview Greed Algorithms Greed Algorithms Coin Chnge Huffmn Code Greed lgorithms end to e simple nd strightforwrd. Are often used to solve optimiztion prolems. Alws mke the choice tht looks est t the moment,

More information

Lecture 1. Functional series. Pointwise and uniform convergence.

Lecture 1. Functional series. Pointwise and uniform convergence. 1 Introduction. Lecture 1. Functionl series. Pointwise nd uniform convergence. In this course we study mongst other things Fourier series. The Fourier series for periodic function f(x) with period 2π is

More information

BACHELOR THESIS Star height

BACHELOR THESIS Star height BACHELOR THESIS Tomáš Svood Str height Deprtment of Alger Supervisor of the chelor thesis: Study progrmme: Study rnch: doc. Štěpán Holu, Ph.D. Mthemtics Mthemticl Methods of Informtion Security Prgue 217

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

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

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

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals Riemnn Sums nd Riemnn Integrls Jmes K. Peterson Deprtment of Biologicl Sciences nd Deprtment of Mthemticl Sciences Clemson University August 26, 203 Outline Riemnn Sums Riemnn Integrls Properties Abstrct

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