CM10196 Topic 4: Functions and Relations

Size: px
Start display at page:

Download "CM10196 Topic 4: Functions and Relations"

Transcription

1 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 vlue nd gives n output vlue. We cn (nd will) e more precise out this. From the computer science perspective, functions ply vitl role: much of wht we do when progrmming is writing code to compute prticulr function. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions / 6 Reltions A more generl notion thn function is tht of reltion. Roughly speking, reltion is something which provides n ssocition etween elements of sets. For instnce, on the set of ll people there is the reltion is in the sme fmily s. This reltion reltes two people (two elements of the set) exctly when those people re relted in the usul informl sense. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 3 / 6

2 Crtesin product of sets To mke precise definition of reltion, nd lter of function, we will mke use of the notion of Crtesin product of sets. The Crtesin product is used to tlk out pirs of things, one from one set nd one from nother. The Crtesin product of sets A nd B, written A B, is defined s the set of pirs {(x, y) x A y B}. The nottion (x, y) mens pir of elements: we sy tht (x, y) = (z, w) if nd only if x = z nd y = w. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 4 / 6 Crtesin product Exmple If A = {,, c} nd B = {0, } then A B is the set {(, 0), (, ), (, 0), (, ), (c, 0), (c, )}. If A = {x x is rel numer, 0 x } nd B = {x x is rel numer, x } then A B cn e thought of s rectngle in the plne whose corners (vertices) hve coordintes (0, ), (0, ), (, ) nd (, ). 3 If A is the set of students t Bth nd B is the set of cndidte numers, then A B is the set of ll possile student-cndidte numer pirs. The ctul mpping from students to their rel cndidte numers is suset of this. The ide of mpping eing suset of the Crtesin product is wht will underlie our forml definitions of reltion nd function. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 5 / 6 lert! You should y now e jumping up nd down nd pnicking out the possiility tht the nottion (, ) for pirs of things is not well-defined. Well, perhps not, ut it is question worth sking. Wht do we men y such pir? We certinly do not men two-element set: the pirs (0, ) nd (, 0) re supposed to e different, while the sets {0, } nd {, 0} re the sme. Rememer tht for sets, the vitl ingredient ws tht sets re equl when they contin the sme elements For pirs, the key is tht pirs re equl when they contin the sme elements, listed in the sme order. Tht is, (, ) = (c, d) = c = d. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 6 / 6

3 Forml definition of pirs It is proly resonle simply to ccept tht such pirs exist. However, if we were doing forml foundtions of mthemtics, we d hve to mke some kind of precise definition like: given elements nd, the pir (, ) is defined to e the set {{}, {, }}. If you re so inclined, you cn check tht this definition stisfies the requirement we lid out for pirs. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 7 / 6 Reltions Given two sets A nd B, reltion etween A nd B is suset of A B. Exmple If P is the set of ll people, nd D is the set of dys of the yer, then the set of pirs of the form (person, person s irthdy) is reltion etween P nd D. The set of pirs of the form (person, child of person) is reltion etween P nd itself. This sort of thing is clled inry reltion on P. 3 The reltion < is inry reltion on Z: it is defined y the set of pirs {(x, y) x Z, y Z, x < y}. We usully write x < y insted of (x, y) <, of course. 4 The reltion of equlity, =, is inry reltion on ny set. On the integers, for exmple, it is the set of pirs {(x, x) x Z}. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 8 / 6 Nottion The lst two exmples introduce useful piece of nottion: given reltion R etween A nd B, we often write R to men tht (, ) R. Red R s is relted to y R or something similr. For the cse of reltions like <,, = nd so on, this nottion is exctly wht we re used to. The reltion of equlity on ny set A is clled the identity reltion ecuse it reltes identicl things nd nothing else. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 9 / 6

4 Directed grphs A directed grph is structure contining: set V of vertices (lso clled nodes) set A of rcs (lso clled edges) where ech rc connects one vertex to nother, nd the direction of the rc is importnt. The vertex where n rc strts is its source; the vertex where it ends is its trget. Smll grphs cn redily e drwn s collections of dots (for the vertices) nd rrows etween the dots (for the rcs). G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 0 / 6 Directed grphs Here s picture of directed grph. In this cse, the nodes re the numers from to 6, nd there is n rc from one vertex to nother if nd only if the first numer divides the second G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions / 6 Directed grphs re reltions This kind of directed grph is relly the sme s inry reltion on set: the set of vertices is the set on which the reltion works the set of rcs defines set of pirs (, ) where is the source vertex of n rc nd is the trget vertex. The picture we drew on the previous slide descries the reltion { } (, ), (, ), (3, 3), (4, 4), (5, 5), (6, 6), (, ), (, 3), (, 4), (, 5), (, 6), (, 4), (, 6), (3, 6) which we could lterntively define s {(, ), Z, 6, 6, divides }. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions / 6

5 Other kinds of grphs While we re tlking out grphs, we should mention tht there re other kinds of grphs: undirected grphs, where the direction of n rc doesn t mtter lelled grphs, where rcs re lelled with some informtion grphs in which there cn e more thn one rc from one vertex to nother... G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 3 / 6 Grphs in computing Grphs re n importnt concept in computer science. They re useful for modelling gret mny things, for exmple rod or ril networks: vertex is plce, nd n rc is route from one plce to nother. If we lel the rcs with informtion out the time it tkes to trvel long n rc, then we cn sk questions like how long does it tke to get from Bker Street to Mornington Crescent? wht s the est wy to Turnhm Green? There re powerful lgorithms for discovering this kind of informtion from such grphs. If you re interested, look up Dijkstr s Algorithm. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 4 / 6 Clssifying reltions Looking t the picture of the divisiility reltion we drew ove: we notice tht every node hs loop ttched to it: tht is, every element of the set is relted to itself. This is specil property of certin inry reltions, clled reflexivity. 6 G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 5 / 6

6 Clssifying reltions A inry reltion R on set A is reflexive if R for every A. Tht is to sy, every node hs loop ttched. Exmples of reflexive reltions include divides, reltion on the integers, lso on the integers lives t the sme ddress s, on the set of people the identity reltion on ny set. Other reltions, like <, never relte n element to itself: A inry reltion R is clled irreflexive if we do not hve R for ny A. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 6 / 6 Clssifying reltions Another property which some reltions possess is trnsitivity. On grphs, this is the property tht if you cn get from to (i.e. there s n rc connected to ) nd from to c, then there s n rc from to c. A inry reltion R on set A is clled trnsitive if whenever R nd R c, we lso hve R c. In picture: c Whenever the solid rcs exist, the dshed rc must lso exist. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 7 / 6 Exmples The following reltions re trnsitive: divides <, = nd is younger thn on the set of people is n ncestor of on the set of people The following re not trnsitive: is within 5 minutes drive of on the set of us stops on the Numer 8 route. et t home in the footll seson, on the set of premiership footll tems. = on the set of integers. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 8 / 6

7 Clssifying reltions Another key property is symmetry: on grphs, this is the property tht if you cn get from to, you cn lso get ck from to. (Think of the difference etween one-wy nd two-wy streets.) A inry reltion R on set A is symmetric if whenever R we lso hve R. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 9 / 6 Exmples The following reltions re symmetric: =, the identity reltion on ny set is mrried to on the set of people These ones re not: < nd is younger thn on the set of people is n ncestor of on the set of people Question: do you expect tht the reltion is within five minutes drive of on numer 8 us stops is symmetric? G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 0 / 6 Clssifying reltions Another property, it like never hving symmetry, is ntisymmetry. A reltion R on set A is ntisymmetric if, whenever R nd R, it is the cse tht =. This sys tht the only entries in the reltion which cn e flipped round to yield new entry in the reltion re those of the form (, ). Exmples: is ntisymmetric: if nd then =. < is lso ntisymmetric: if < then we never hve < so there s nothing to check. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions / 6

8 Equivlence reltions We ve seen tht equlity is reltion (on ny set). We cn generlize this to cpture those reltions which ehve like equlity. They re clled equivlence reltions. A inry reltion R on set A is n equivlence reltion if it is reflexive trnsitive, nd symmetric. This sys tht notion of equivlence should stisfy every element is equivlent to itself if is equivlent to then is equivlent to if is equivlent to nd is equivlent to c then is equivlent to c. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions / 6 Exmple A key exmple of equivlence reltion is equlity modulo p for some numer p. Given integers m, n nd p, we define m = n mod p if there re integers, nd c, with 0 c < p such tht m = p + c n = p + c. Exercise Prove tht this is indeed n equivlence reltion. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 3 / 6 Equivlence reltions in computing Equivlence reltions ply n importnt role in computing, in mny wys. One wy is this. When progrmming, we often set up dt structures to represent informtion tht we re recording. For instnce, we might use n rry to collect together the nmes of students on course. Wht we relly cre out here is the set of nmes recorded in the rry: the order does not mtter. So multiple different rrys cn represent the sme informtion. We cn cpture this notion of representing the sme informtion with n equivlence reltion. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 4 / 6

9 Equivlence clsses We often use symols like for equivlence reltions. Given set A with n equivlence reltion, for every element A we define the equivlence clss of, written [], s the set { A }. Notice tht we lwys hve [] nd if then [] = []. (Check tht these fcts relly re fcts.) G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 5 / 6 Equivlence clsses: exmple Let S e the set of students on this course. Define n equivlence reltion such tht if nd only if nd re in the sme tutor group. Then [] is the set of students in the sme tutor group s. Other exmples: for the identity reltion, the equivlence clss of n element is the singleton set {}. for the reltion equlity modulo on the integers, the equivlence clss [0] is ll even numers, nd the equivlence clss [] is ll odd numers. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 6 / 6 Equivlence clsses re prtitions Given set A, set S of susets of A is clled prtition of A if: every pir of sets in S is disjoint: if P S nd P S with P P then P P = every element of A is contined in some P S. Tht is to sy, the sets in S split the whole of A up into chunks. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 7 / 6

10 Equivlence clsses nd prtitions The set of equivlence clsses of n equivlence reltion gives us prtition on the set; nd ny prtition genertes n equivlence reltion. Theorem If is n equivlence reltion on A then the set of equivlence clsses forms prtition of A. {[] A} Conversely, if S is prtition of A, then the reltion defined y {(, ) P S. P P} is n equivlence reltion, whose equivlence clsses re exctly the memers of S. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 8 / 6 Proof of the theorem We ll prove the first prt of the theorem. Given n equivlence reltioon on A, we hve to show tht the set of equivlence clsses of prtitions A. Suppose [] [] is non-empty. Then there is some c [] [], so tht c nd c. By symmetry nd trnsitivity,, so [] = []. For ny A, []. Tht s ll we needed to show! G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 9 / 6 Quotient of set Given set A nd equivlence reltion on A, the set of equivlence clsses is clled the quotient of A y nd is written A/. Its importnce for computing is, mong other things, the notion of dt representton we mentioned efore. If A is our set of representtions, nd is the correct notion of equivlence, then A/ is ( good representtion of) the set of things we re encoding. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 30 / 6

11 Exmple: representing integers using nturls In previous lectures we discussed how to set up the theory of the nturl numers using Peno rithmetic. In this development, the numer 3 is represented s S(S(S(0))), for exmple. Once we ve done this, nd defined opertions like + nd so on, we cn go on to represent the integers. One wy to represent n integer is s pir (m, n) of nturl numers; we think of this s representing the integer m n. This of course mens tht given integer hs infinitely mny representtions: 3 is represented y ny of (0, 3) (, 4) (, 5) (3, 6)... G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 3 / 6 Why use this representtion? This representtion hs its enefits, though. For exmple, it is esy to define ddition on integers using nturl numer ddition: (m, n ) + (m, n ) = (m + m, n + n ). It is lso esy to define multipliction y : nd hence sutrction (m, n) = (n, m) (m, n ) (m, n ) = (m + n, n + m ). Exercise Define multipliction of integers in this representtion. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 3 / 6 An equivlence reltion Since our representtion gives infinitely mny wys of encoding n integer, we need wy of telling when two such encodings re the sme integer. We cn define n equivlence reltion (m, n ) (m, n ) m + n = m + n. Now two encodings of the sme integer re relted y, so there is close correspondence etween integers nd equivlence clsses of representtions. Tht is, we cn think of N N/ s eing the set of integers. We ll sy little more out this lter. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 33 / 6

12 Prtil orders Another common form of reltion is the ordering reltion, like. A inry reltion R on set A is clled prtil order if it is reflexive trnsitive, nd ntisymmetric. This sys tht notion of ordering should stisfy every element is less thn or equl to itself if is less thn or equl to nd is less thn or equl to c then is less thn or equl to c if is less thn or equl to nd is less thn or equl to then =. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 34 / 6 Exmples The following reltions re prtil orders: on the integers = on ny set on the set of susets of some set A (tht is, the powerset P(A)). Note tht < is not prtil order: it is not reflexive. Our notion of prtil order is non-strict, tht is, it generlizes less thn or equl -style orderings. Exercise Define notion of strict prtil order, which generlizes <-style orderings. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 35 / 6 The suset reltion s grph Omitting the reflexive nd trnsitive rcs, the suset reltion on P{,, c} looks like this: {,, c} {, } {, c} {, c} {} {} {c} G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 36 / 6

13 Composition of reltions Consider the reltions is prent of nd is grndprent of. It should e cler tht we cn define the grndprent reltion from the prent reltion. A person is grndprent of person c if is prent of someody,, nd is prent of c. More generlly, if we hve reltion R etween A nd B, nd reltion S etween B nd C, we cn define reltion S R y {(, c) B. R S c}. The grndprent reltion is prent prent. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 37 / 6 Inverse Given reltion R etween A nd B, we cn define reltion R etween B nd A y {(, ) R }. Tht is, we just flip round the reltion R to get R. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 38 / 6 Symmetry nd trnsitivity gin Theorem A inry reltion R on set A is symmetric if nd only if R = R. R is trnsitive if nd only if R R R. Exercise Prove this theorem! G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 39 / 6

14 Picturing reltions etween sets We might drw reltion from one set to nother like this: d c 3 G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 40 / 6 Oservtions d c 3 Notice tht: not every element of the left hnd set is relted to something on the right (i.e. is the source of n rc) some elements of the left hnd set re relted to more thn one thing on the right (i.e. they re the source of more thn one rc) not every element of the right hnd set is the trget of n rc some elements re the trget of more thn one rc. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 4 / 6 Picturing composition Let s see wht the composition of two reltions looks like. d 3 3 c z y d c 3 z y G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 4 / 6

15 Functions A function f from set A to set B is reltion such tht every A is relted to exctly one B. Tht is: A. B.(, ) f, nd A., B.(, ) f (, ) f =. When f is function from A to B we write f : A B nd use the nottion f () = to men tht (, ) f. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 43 / 6 Functions Thus function is reltion such tht every element of the left-hnd set A is the source of exctly one rc to n element of B. A function is sid to mp the elements of A into B, nd so functions re lso clled mps or mppings. It is still possile tht n element of B my e the trget of no rcs, or more thn one. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 44 / 6 Exmples Most of the usul opertions on numers nd so on re functions: ddition is function from Z Z to Z for exmple. The identity reltion on ny set is function from tht set to itself. We cll it the identity function. The reltion which connects students to their cndidte numers is function from the set of ll students to the set of ll cndidte numers. The reltion connecting students tking CM096 to their mrks on prolem sheet 4 is function from the set of students to the set {0,,,..., 0}. Mny computer progrms compute function from the set of possile inputs to the set of possile outputs. Not ll progrms do, though. Why not? G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 45 / 6

16 Exmples There re four possile functions from the set {, } to the set {0, }. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 46 / 6 Crdinlity, product nd function spce For finite set A, define A, the crdinlity of A, to e the numer of elements in the set A. Theorem Given sets A nd B, A B is A B. The set of ll functions from A to B hs crdinlity B A Prtly motivted y this, the set of functions from A to B is sometimes written s B A. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 47 / 6 Composition of functions Since functions re reltions, we cn compose them just like reltions. Given f : A B nd g : B C, the composite g f : A C is {(, c) B.f () = g() = c}. Tht is, (g f )() = g(f ()). Exmple If f is the mp tking x to x + nd g is the mp tking x to x (so tht oth f nd g go from Z to itself), then g f is the function tking x to (x + ). G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 48 / 6

17 Inverses Since function f is specil reltion, its inverse, the reltion f, lwys exists. Normlly, though, when we sy tht function hs n inverse, we men tht the inverse is itself function. Under wht circumstnces does the inverse reltion f give us function? It is the reltion {(, ) f () = }. For this to e function, we need two properties: every must e sent somewhere, i.e. for every B there must exist some A such tht f () =. every must e sent to exctly one plce, i.e. if f ( ) = nd f ( ) = then =. These two specil properties of f re very importnt. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 49 / 6 Surjective functions A function f : A B is clled surjective, or onto, if for every B there is some A with f () =. Such function is lso clled surjection. The condition sys tht the function hits everything in B. Tht is to sy, we do not hve this kind of sitution: 3 Nothing hits 3 in this exmple. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 50 / 6 Exmples The function tking numer x to x + is surjective s function from Z to Z. It is not surjective s function from N to N. The function tking x to x 3 is surjective on the rel numers: every rel numer hs cue root. For ny route on the London Underground (i.e. chosen line, nd chosen direction of trvel) we cn define function tking sttion to the next sttion on the route. These functions re not usully surjective (think out the first sttion on the route) except for the Circle Line, which goes round in circle. On the set {0,,, 3, 4}, the function which tkes x to x mod 5 is surjective. Exercise Check tht the lst clim is true! G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 5 / 6

18 Injective functions A function f : A B is clled injective, or -, if whenever f ( ) = f ( ), we hve =. We lso sy tht f is n injection. The condition sys tht no two distinct elements of A re mpped to the sme plce, i.e. we don t hve this sort of picture: G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 5 / 6 Exmples of injections The following functions re injective: the identity function on ny set the function tking ny integer x to x + the function tking ny integer x to x the function tking nturl numer x to x is injective; Note tht the function tking x to x is not injective when seen s function on integers, ecuse (for exmple), ( ) = =. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 53 / 6 Inverse gin Now we cn stte theorem: Theorem Given function f : A B, the reltion f is itself function if nd only if f is oth injective nd surjective. Functions which re oth injective nd surjective re so specil tht they hve specil nme: they re clled ijective. Some exmples: the function mpping x to x on the integers is ijective the function mpping x to x 3 on the rel numers is ijective the function mpping n to n is ijection from the integers to the even integers the function mpping n to n mod is ijection from {0,,, 3, 4} to itself the identity mp on ny set is ijective. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 54 / 6

19 Some theorems Theorem Let f : A B nd g : B C. if f nd g re oth injective, then g f is injective if f nd g re oth surjective, then g f is surjective if f nd g re oth ijective, then g f is ijective (this follows from the previous two fcts) if f is ijective so is f if g f is injective then f is injective if g f is surjective then g is surjective G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 55 / 6 Proof of one of these fcts Let s prove the lst of these: if g f is surjective then g is surjective. Suppose tht g f is surjective, nd try to show tht g is surjective, tht is, tht for ny c C we cn find some B such tht g() = c. Since g f is surjective, there is some A such tht (g f )() = c, tht is, g(f ()) = c, so letting = f () estlishes wht we need. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 56 / 6 Remrk If g f is surjective, it does not necessrily follow tht f is surjective, s the picture elow shows: d 3 c z y A f B g C G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 57 / 6

20 Functions nd equivlence reltions Rememer our representtion of the integers using pirs of nturls: pir (m, n) represents the integer m n. We defined n equivlence reltion on pirs: (m, n ) (m, n ) if nd only if m + n = m + n. We then sid two things: the equivlence clsses ehve like integers we cn define functions on these pirs, like sutrction: (m, n ) (m, n ) = (m + n, n + m ). Do these things relly mke sense together? G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 58 / 6 Functions on equivlence clsses If we ve got set A with n equivlence reltion, nd function f : A A, we d sometimes like to use f s function on equivlence clsses. Tht is, we d like to define function g from A/ to itself y g([]) = [f ()]. The question is, does this mke sense? G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 59 / 6 Functions tht respect equivlence In order for this to define function, it hs to e the cse tht f ( ) f ( ). When we hve [ ] = [ ], so we need [f ( )] = [f ( )] or g will not e function. If f hs this property we sy tht f respects. The vitl fct out our opertions on the integers s pirs representtion is tht they ll respect the equivlence reltion in this wy. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 60 / 6

21 Sutrction respects Let s verify tht sutrction respects. Suppose (m, n ) (m, n ) nd (m, n ) (m, n ). We shll show tht (m, n ) (m, n ) (m, n ) (m, n ). This is just question of unpcking definitions. By definition (m, n ) (m, n ) = (m + n, n + m ) (m, n ) (m, n ) = (m + n, n + m ) so we hve to check tht these things re equivlent, i.e. tht m + n + n + m = m + n + n + m. But we know tht m + n = n + m nd m + n = n + m so the required fct follows. G.A.McCusker@th.c.uk (W.) CM096 Topic 4: Functions nd Reltions 6 / 6

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

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

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

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

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

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

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

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

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

More information

Infinite Geometric Series

Infinite Geometric Series Infinite Geometric Series Finite Geometric Series ( finite SUM) Let 0 < r < 1, nd let n be positive integer. Consider the finite sum It turns out there is simple lgebric expression tht is equivlent to

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

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

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

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

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

Things to Memorize: A Partial List. January 27, 2017

Things to Memorize: A Partial List. January 27, 2017 Things to Memorize: A Prtil List Jnury 27, 2017 Chpter 2 Vectors - Bsic Fcts A vector hs mgnitude (lso clled size/length/norm) nd direction. It does not hve fixed position, so the sme vector cn e moved

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

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

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

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

More information

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

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

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

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O

The area under the graph of f and above the x-axis between a and b is denoted by. f(x) dx. π O 1 Section 5. The Definite Integrl Suppose tht function f is continuous nd positive over n intervl [, ]. y = f(x) x The re under the grph of f nd ove the x-xis etween nd is denoted y f(x) dx nd clled the

More information

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

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

More information

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

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

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

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 +

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 + Definite Integrls --5 The re under curve cn e pproximted y dding up the res of rectngles. Exmple. Approximte the re under y = from x = to x = using equl suintervls nd + x evluting the function t the left-hnd

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

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

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 bout solving systems of liner equtions. These re problems tht give couple of equtions with couple of unknowns, like: 6 2 3 7 4

More information

The Evaluation Theorem

The Evaluation Theorem These notes closely follow the presenttion of the mteril given in Jmes Stewrt s textook Clculus, Concepts nd Contexts (2nd edition) These notes re intended primrily for in-clss presenttion nd should not

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

Recitation 3: More Applications of the Derivative

Recitation 3: More Applications of the Derivative Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech

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

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

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation

Strong Bisimulation. Overview. References. Actions Labeled transition system Transition semantics Simulation Bisimulation Strong Bisimultion Overview Actions Lbeled trnsition system Trnsition semntics Simultion Bisimultion References Robin Milner, Communiction nd Concurrency Robin Milner, Communicting nd Mobil Systems 32

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

Handout: Natural deduction for first order logic

Handout: Natural deduction for first order logic MATH 457 Introduction to Mthemticl Logic Spring 2016 Dr Json Rute Hndout: Nturl deduction for first order logic We will extend our nturl deduction rules for sententil logic to first order logic These notes

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

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

10. AREAS BETWEEN CURVES

10. AREAS BETWEEN CURVES . AREAS BETWEEN CURVES.. Ares etween curves So res ove the x-xis re positive nd res elow re negtive, right? Wrong! We lied! Well, when you first lern out integrtion it s convenient fiction tht s true in

More information

Designing Information Devices and Systems I Spring 2018 Homework 7

Designing Information Devices and Systems I Spring 2018 Homework 7 EECS 16A Designing Informtion Devices nd Systems I Spring 2018 omework 7 This homework is due Mrch 12, 2018, t 23:59. Self-grdes re due Mrch 15, 2018, t 23:59. Sumission Formt Your homework sumission should

More information

Continuous Random Variables Class 5, Jeremy Orloff and Jonathan Bloom

Continuous Random Variables Class 5, Jeremy Orloff and Jonathan Bloom Lerning Gols Continuous Rndom Vriles Clss 5, 8.05 Jeremy Orloff nd Jonthn Bloom. Know the definition of continuous rndom vrile. 2. Know the definition of the proility density function (pdf) nd cumultive

More information

7.2 The Definite Integral

7.2 The Definite Integral 7.2 The Definite Integrl the definite integrl In the previous section, it ws found tht if function f is continuous nd nonnegtive, then the re under the grph of f on [, b] is given by F (b) F (), where

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

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

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

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives Block #6: Properties of Integrls, Indefinite Integrls Gols: Definition of the Definite Integrl Integrl Clcultions using Antiderivtives Properties of Integrls The Indefinite Integrl 1 Riemnn Sums - 1 Riemnn

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

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

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

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

4 VECTORS. 4.0 Introduction. Objectives. Activity 1

4 VECTORS. 4.0 Introduction. Objectives. Activity 1 4 VECTRS Chpter 4 Vectors jectives fter studying this chpter you should understnd the difference etween vectors nd sclrs; e le to find the mgnitude nd direction of vector; e le to dd vectors, nd multiply

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

MAT 215: Analysis in a single variable Course notes, Fall Michael Damron

MAT 215: Analysis in a single variable Course notes, Fall Michael Damron MAT 215: Anlysis in single vrible Course notes, Fll 2012 Michel Dmron Compiled from lectures nd exercises designed with Mrk McConnell following Principles of Mthemticl Anlysis, Rudin Princeton University

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

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

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24

Matrix Algebra. Matrix Addition, Scalar Multiplication and Transposition. Linear Algebra I 24 Mtrix lger Mtrix ddition, Sclr Multipliction nd rnsposition Mtrix lger Section.. Mtrix ddition, Sclr Multipliction nd rnsposition rectngulr rry of numers is clled mtrix ( the plurl is mtrices ) nd the

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

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

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

, 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

Finite-State Automata: Recap

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

More information

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

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

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

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

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences Lecture 6 epresenttions epresenttions TE52 - Electronics Fundmentls ugust 24 ern University of pplied ciences ev. c2d5c88 6. Integers () sign-nd-mgnitude representtion The set of integers contins the Nturl

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

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

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

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

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations

Resources. Introduction: Binding. Resource Types. Resource Sharing. The type of a resource denotes its ability to perform different operations Introduction: Binding Prt of 4-lecture introduction Scheduling Resource inding Are nd performnce estimtion Control unit synthesis This lecture covers Resources nd resource types Resource shring nd inding

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

A study of Pythagoras Theorem

A study of Pythagoras Theorem CHAPTER 19 A study of Pythgors Theorem Reson is immortl, ll else mortl. Pythgors, Diogenes Lertius (Lives of Eminent Philosophers) Pythgors Theorem is proly the est-known mthemticl theorem. Even most nonmthemticins

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

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

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

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

and that at t = 0 the object is at position 5. Find the position of the object at t = 2. 7.2 The Fundmentl Theorem of Clculus 49 re mny, mny problems tht pper much different on the surfce but tht turn out to be the sme s these problems, in the sense tht when we try to pproimte solutions we

More information

Symbolic enumeration methods for unlabelled structures

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

More information

Intuitionistic Fuzzy Lattices and Intuitionistic Fuzzy Boolean Algebras

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

More information

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

Bridging the gap: GCSE AS Level

Bridging the gap: GCSE AS Level Bridging the gp: GCSE AS Level CONTENTS Chpter Removing rckets pge Chpter Liner equtions Chpter Simultneous equtions 8 Chpter Fctors 0 Chpter Chnge the suject of the formul Chpter 6 Solving qudrtic equtions

More information

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp.

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp. MA123, Chpter 1: Formuls for integrls: integrls, ntiderivtives, nd the Fundmentl Theorem of Clculus (pp. 27-233, Gootmn) Chpter Gols: Assignments: Understnd the sttement of the Fundmentl Theorem of Clculus.

More information

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus Unit #9 : Definite Integrl Properties; Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl

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

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

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

1 Probability Density Functions

1 Probability Density Functions Lis Yn CS 9 Continuous Distributions Lecture Notes #9 July 6, 28 Bsed on chpter by Chris Piech So fr, ll rndom vribles we hve seen hve been discrete. In ll the cses we hve seen in CS 9, this ment tht our

More information

Lecture 2: Fields, Formally

Lecture 2: Fields, Formally Mth 08 Lecture 2: Fields, Formlly Professor: Pdric Brtlett Week UCSB 203 In our first lecture, we studied R, the rel numbers. In prticulr, we exmined how the rel numbers intercted with the opertions of

More information

7. Indefinite Integrals

7. Indefinite Integrals 7. Indefinite Integrls These lecture notes present my interprettion of Ruth Lwrence s lecture notes (in Herew) 7. Prolem sttement By the fundmentl theorem of clculus, to clculte n integrl we need to find

More information

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Riemann is the Mann! (But Lebesgue may besgue to differ.) Riemnn is the Mnn! (But Lebesgue my besgue to differ.) Leo Livshits My 2, 2008 1 For finite intervls in R We hve seen in clss tht every continuous function f : [, b] R hs the property tht for every ɛ >

More information

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer

(e) if x = y + z and a divides any two of the integers x, y, or z, then a divides the remaining integer Divisibility In this note we introduce the notion of divisibility for two integers nd b then we discuss the division lgorithm. First we give forml definition nd note some properties of the division opertion.

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

Improper Integrals, and Differential Equations

Improper Integrals, and Differential Equations Improper Integrls, nd Differentil Equtions October 22, 204 5.3 Improper Integrls Previously, we discussed how integrls correspond to res. More specificlly, we sid tht for function f(x), the region creted

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

Fundamentals of Computer Science

Fundamentals of Computer Science Fundmentls of Computer Science Chpter 3: NFA nd DFA equivlence Regulr expressions Henrik Björklund Umeå University Jnury 23, 2014 NFA nd DFA equivlence As we shll see, it turns out tht NFA nd DFA re equivlent,

More information

Special Numbers, Factors and Multiples

Special Numbers, Factors and Multiples Specil s, nd Student Book - Series H- + 3 + 5 = 9 = 3 Mthletics Instnt Workooks Copyright Student Book - Series H Contents Topics Topic - Odd, even, prime nd composite numers Topic - Divisiility tests

More information