资源描述:
《离散数学课件(英文版)----Function.ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、FunctionsDefinitionofFunctionDefinition:LetAandBbenonemptysets.AfunctionffromAtoB,whichisdenotedf:AB,isarelationfromAtoBsuchthatforallaA,f(a)containsjustoneelementofB.AspecialkindofbinaryrelationUnderf,eachelementinthedomainoffhasauniqueimage.Note:thedomainof:ABi
2、sA,buttherangeisnotnecessarilyequaltoB.ImageandcounterimageLetf:AB,A’A,then(A’)={y
3、y=f(x),xA’}iscalledtheimageofA’underf.AnelementinDom(f)correspondsavalueAsubsetofDom(f)correspondsanimageLetB’B,thenf-1(B’)={x
4、xA,f(x)B’}iscalledthecounterimageofB’underf.Whatis
5、f-1(f(A’))?A’f-1(f(A’))?f-1(f(A’))A’?BAB’A’fImageandCounterimageSpecialTypesofFunctionsSurjection:ABisasurjectionor“onto”iff.Ran()=B,iff.yB,xA,suchthatf(x)=yInjection(one-to-one):ABisone-to-oneiff.yRan(f),thereisatmostonexA,suchthatf(x)=yiff.x1,x2A,if
6、x1x2,then(x1)(x2)iff.x1,x2A,if(x1)=(x2),thenx1=x2Bijection(one-to-onecorrespondence)surjectionplusinjectionIfA,BarenonemptysetshowmanydifferentfunctionsfromAtoBarethere?
7、B
8、
9、A
10、howmanyInjectionfromAtoBarethere?If
11、A
12、>
13、B
14、then0else
15、A
16、!*
17、A
18、C
19、B
20、howmanyBijectionfromA
21、toBarethere?If
22、A
23、=
24、B
25、=mthenM!else0SpecialTypesofFunctions:Examples:Z+R,(x)=lnx,one-to-one:RZ,(x)=x,onto:RR,(x)=2x-1,bijection:RRRR,()=,bijectionTrytoproveitWhatis({
26、x,yR,y=x+1})?R{-1}:NNN,()=
27、x2-y2
28、(N{0})={n2
29、nN},-1(
30、{0})={
31、nN}CharacteristicFunctionofSetLetUbetheuniversalset,foranyAU,thecharacteristicfunctionofA,fA:U{0,1}isdefinedasfA(x)=1iff.xANaturalFunctionRisanequivalencerelationonsetA,g:AA/R,forallaA,g(a)=R(a),thenGiscalledanaturalfunctiononANaturalfunctionissurje
32、ctionForanyR(a)A/R,thereexistssomexA,suchthatg(x)=R(x)ImagesofUnionandIntersectionGivenf:AB,andX,YaresubsetsofA,then:f(XY)=f(X)f(Y)f(XY)f(X)f(Y)CompositionofFunctionsSincefunctionisrelationaswell,thecompositionofrelationcanbeappliedforfunctions,withtheresults
33、beingrelation.ThecompositionoffunctionsisstillfunctionSupposef:AB,g:BC,gfisarelationfromAtoC.xA,wehavegf(x)=g(f(x)).Itiseasyt