您好,欢迎访问三七文档
当前位置:首页 > 幼儿/小学教育 > 小学教育 > 2_计算机学院_离散数学期末考试_2011年春季_试卷B1
课程组长(签字)系主任(签字)学院姓名学号选课/座号号任课老师………密………封………线………以………内………答………题………无………效……第1页共6页电子科技大学2010-2011学年第2学期期末考试A卷课程名称:_离散数学(双语)考试形式:闭卷考试日期:2011年月日考试时长:120分钟课程成绩构成:平时10%,期中10%,实验10%,期末70%本试卷试题由__7___部分构成,共___6__页。题号一二三四五六七八九十合计得分–––I.MultipleChoice(20%,10questions,2pointseach)(A)1.SupposeS={1,2,3,4,5}.Find().PSa)32b)5cd(B)2Whichoftheseimplicationsisfalse?a)If1+1=3then2+2=5b)If1+1=2then2+2=5c)If1+1=2then2+2=4d)If1+1=3then2+2=4(B)3.Thebestbig-Ofunctionfor(x2)log2(x21)log2(x31)isa)x(log2x)2b)xlog2x.c)x2.d)(log2x)2.(B)4.Howmanybitstringsoflength10haveexactlysix0s?a)210b)C(10,6).c)26d)36(D)5.If1111011100110001RM,thenRisnot(a)reflexive(b)antisymmetric(c)transitive.(d)symmetric(C)6.Supposef:RRhasthefollowingpropertyforallrealnumbersxandy:ifxythenf(x)f(y).Whichofthefollowingistrue?a)fmustbeboth1-1andontoR.b)fisnotnecessarily1-1andnotnecessarilyontoR.c)fmustbe1-1butisnotnecessarilyontoR.d)fisontoRbutisnotnecessarily1-1.(C)7.Sisacollectionofstringsofsymbols.Itisrecursivelydefinedby1)aandbbelongtoS;2)ifstringXbelongstoS,sodoesXb.WhichofthefollowingdoesNOTbelongtoS?a)abbbb)bbbc)bad)a(B)8.Giventheinductivedefinition:f(1)=2,f(2)=2andf(n)=2f(n-1)+f(n-2)forn2.f(5)is:a)8b)34得分课程组长(签字)系主任(签字)学院姓名学号选课/座号号任课老师………密………封………线………以………内………答………题………无………效……第2页共6页c)14d)36(C)9.Whichoneofthesepropositionsisdifferentfromtheotherthree?(Forthisproblem,fandgarenon-negativefunctions.)a)g(x)=(f(x))b)ck[(xk)(f(x)c·g(x))]c)ck[(xk)(f(x)c·g(x))]d)¬ck[(xk)(f(x)c·g(x))](D)10.Whichofthesepropositionsisfalse(thedomainisthesetofrealnumbers)?a)xy(x≠=0x·y=1)b)yx(x+y=x)c)xy[(x≠=y)z(xzyyzx)]d)xyz(xzy)II.TrueorFalse(10%,10questions,1pointeach)(F)1.Thefollowingsentenceisaproposition:“x+49.”(T)2.Thereisnosimplegraphwith8vertices,whosedegreesare01234567.(T)3.(pq)(pq)isequivalenttoq.(T)4.Theproposition((pq)q)pisatautology.(T)5..A(BC)(AB)C.(F)6.Thesetaaisthepowersetofsomeset(T)7.SupposeBxx,thenP(B).(F)8.gNNwhereg(n)anyintegern,describesafunctionwiththegivendomainandcodomain(T)9.SupposegABandfBC,wherefgis1-1andfis1-1.gmustbe1-1?(F)10.Forallintegersabc,ifa(bc),thenabandacIII.FillintheBlanks(20%,10questions,2pointseach)1.Writeapropositionequivalenttopqusingonlypqandtheconnective:pq.2.Writethenegationofthestatement“Allintegersendinginthedigit7areodd.”ingoodEnglish:Someintegersendinginthedigit7arenotodd.3.Find1i[11,1i].{1}4.SupposeP(x,y)isapredicateandtheuniverseforthevariablesxandyis{1,2,3}.SupposeP(1,3),P(2,1),P(2,2),P(2,3),P(2,3),P(3,1),P(3,2)aretrue,andP(x,y)isfalseotherwise.ThetruthvalueofstatementxyP(xy)isTrue.5.Supposethevariablexrepresentsstudentsandyrepresentscourses,andT(xy):studentxistakingcoursey.WritethestatementxyT(xy)ingoodEnglishwithoutusingvariablesinyouranswers:Everystudentistakingatleastonecourse.6.Find311.jjiij257.10011.8.Aninverseof17modulo19is9.9.IfR(12)(14)(23)(31)(42),thesymmetricclosureofRis得分得分课程组长(签字)系主任(签字)学院姓名学号选课/座号号任课老师………密………封………线………以………内………答………题………无………效……第3页共6页(12)(13)(14)(21)(23)(24)(31)(32)(41)(42).10.Thesmallestequivalencerelationon123thatcontains(12)and(23)is:(11)(12)(13)(21)(22)(23)(31)(32)(33).IV.AnswertheQuestions(30%,6questions,5pointseach):1.Findapropositionusingonlypq,andtheconnectivethathasthegiventruthtable.pq?TTFTFFFTTFFF(pq).2.Letf(x)x33.Findf(S)ifSis:(a)210123.(b)012345.Ans:(a)31029.(b)0292141.3.InthequestionsbelowsupposegABandfBCwhereABC1234,g(14)(21)(31)(42)andf(13)(22)(34)(42).Findfg.Ans:(12)(23)(33)(42).4.Amessagehasbeenencryptedusingthefunctionf(x)(x5)mod26.IfthemessageincodedformisJCFHY,decodethemessage.Ans:EXACT.5.Describearecursivealgorithmforcomputing32nwherenisanonnegativeinteger.得分课程组长(签字)系主任(签字)学院姓名学号选课/座号号任课老师………密………封………线………以………内………答………题………无………效……第4页共6页Ans:Thefollowingprocedurecomputes32n:procedurepower(n:nonnegativeinteger)ifn0thenpower(n)3elsepower(n)power(n1)power(n1).6.Representtheexpressionx+((x⋅y+x)/y)usingabinarytrees.V.(6%)Provethat(q(pq))pisatautologyusingpropositionalequivalenceandthelawsoflogic.Ans:(())(())(()())()()()()qpqpqpqpqpqqpqppqppqppqppGradingrubric:-3pointsformakingwrongassumptions.-2pointsfornotbeingabletocompletetheproof.-1to-3pointsforillegalusageofequivalencerules.得分课程组长(签字)系主任(签字)学院姓名学号选课/座号号任课老师………密………封………线………以………内………答………题………无………效……第5页共6页VI.(7%)Foranundisclosedreason,theGermanmilitaryoftenneedstotransmitamassiveamountofintegersthroughitscommunicationchannels.TheyuseASCIIencodingforthistransmission,sothateachdigitisencodedasaneight-bitstring.Becausealloftheircommunicationisinterceptedbyforeignintelligence,itiswellknownthroughouttheworldthatthefrequenciesofthedigitsthattheGermanstransmitareasfollows:HelptheGermanmilitarybydevelopinganoptimalvariable-lengthencodingfortheircommunication.UseaHuffmancodingtreeforthedevelopmentoftheencoding,andthenwritedowntheresultingbi
本文标题:2_计算机学院_离散数学期末考试_2011年春季_试卷B1
链接地址:https://www.777doc.com/doc-3103272 .html