全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
电子科技大学英才学院2012 -2013学年第 1学期期 末 考试 A卷离散数学 课程考试题 A 卷 ( 120分钟) 考试形式:闭卷 考试日期 2013 年 月 日课程成绩构成:平时 分, 期中 分, 实验 分, 期末 100 分一二三四五六七八九十合计I. Multiple Choice (15%, 1.5 points each)(A )1.(pq)(pq) is logically equivalent toa) T b) pq c) F d) pq(A )2.If P(A) is the power set of A, and A = , what is |P(P(P(A)|?a) 4 b) 24 c) 28 d) 216(C )3.Which of these statements is NOT a proposition? a) Today is Monday. b) 1+1=2.c) Am I right? d) Go and play with me.(C )4.Which of these propositions is not logically equivalent to the other three?a) (p q) (r q) b) (p r) qc) (pr) q d) The contrapositive of q (p r)(B )5.Suppose | A | = 3 and | B | = 8. The number of 1-1 functions f : A B is a) 24 b) P(8,3).c) 38 d) 83(B )6.Let R be a relation on the positive integers where xRy if x is a factor of y. Whichof the following lists of properties best describes the relation R?a) symmetric, transitiveb) antisymmetric, transitive, reflexivec) antisymmetric, symmetric, reflexived) symmetric, transitive, reflexive(C )7.Which of the following are partitions of ?a) . b) c) . d) (C )8.The function f(x)=x2log(x3+78) is big-Oof which of the following functions?a) x2 b) x(logx)3 c) x2logx d) xlogx(A )9.If , then R is: a) reflexive b) symmetric c) antisymmetric d) transitive.(B )10.Which of the followings is a function from Z to R?a) . b) .c) d) II. True or False (10%, 1 point each)(T )1.If 1 2), then p + q is composite.(F )8.If the relation R is defined on the set Z where aRb means that ab 0, then R is an equivalence relation on Z.(T )9.(A - B) (A - C) = A - (B C).(T )10.The set ,a,a, is the power set of some setIII. Fill in the Blanks (20%, 2 points each)1.Let p and q be the propositions “I am a criminal” and “I rob banks”. Express in simple English the proposition “if p then q”: If I am a criminal them I rob banks.2.P(x,y) means “x + 2y = xy”, where x and y are integers. The truth value of $xyP(x,y) is False. 3.The negation of the statement “No tests are easy.” is some tests are easy.4.If then is .5.Suppose A= x, y. Then is , x, y,x,y.6.Suppose g : AA and f :AA where A=1,2,3,4,g= (1, 4), (2,1), (3,1), (4,2) and f=(1,3),(2,2),(3,4),(4,2).Then fog =(1,2),(2,3),(3,3),(4,2).7.The sum of 2 + 4 + 8 + 16 + 32 + . + 210 is 211 - 2 .8.The expression of gcd(45, 12) as a linear combination of 12 and 45 is 12 4 + 45 (-1).9.There are 5! permutations of the seven letters A,B,C,D,E,F have A immediately to the left of E.10.The twos complement of -13 is 1 0011 .IV. Answer the Questions (32%, 4points each):1. Determine whether the following argument is valid:p rq rq r_ pAns:Not valid: p true, q true, r true2. Suppose you wish to prove a theorem of the form “if p then q”. (a) If you give a direct proof, what do you assume and what do you prove? (b) If you give an indirect proof, what do you assume and what do you prove? (c) If you give a proof by contradiction, what do you assume and what do you prove?Ans:(a) Assume p, prove q. (b) Assume q, prove p. (c) Assume p q, show that this leads to a contradiction.3. Prove that by giving a proof using logical equivalence.Ans:4. Suppose f : R R where f(x) = x/2. (a) If S = x | 1 x 6, find f(S). (b) If T = 3,4,5, find f-1(T).Ans:(a) 0,1,2,3 (b) 6,12).5. Use the definition of big-oh to prove that is O(n3).Ans:, if n 2.6. Solve the linear congruence 5x 3 (mod 11).Ans:5 + 11k.7. Use the Principle of Mathematical Induction to prove that for all n 0.Ans:P(0): , which is true since 1 = 1. P(k) P(k + 1): .8Encrypt the message NEED HELP by translating the letters into numbers, applying the encryption function f (p) = (3p + 7) mod 26, and then translating the numbers back into letters.Ans:Encrypted form: UTTQ CTOA.V. (6%) Without using the truth table, show that the following are tautologiesa) p(pq)q b) p(pq)q Ans:a) p(pq)(pp)(p q)flasep(pq)q falseqfalseqtrueqtrue (3points)b)p(pq)q(p(pq)q(p(pq)q(pp)(pq)qpqqtrue (3points)VI. (6%) Devise an algorithm which will find the minimum of n integers. What is the worst case time complexity of this algorithm?a) procedure min(a1, a2, , an: integers) (4points) v := a1 largest element so far for i := 2 to n go thru rest of elems if ai v then v := ai found smaller? at this point vs value is the same as the smallest integer in the listreturn vb) the worst case time complexity of this algorithm is O(n). (2points)VII. (5%) Give the definition of a transitive relation, and Prove or disprove that the union of two transitive relations is transitive.Ans:A relation R on a set A is called transitive if only if (a,b) R and (b,c) R ,then (a,c) R ,for a,b,c A. (2points)The union of two transitive relations may be not transitive. A counter-example:A=1,2,3, R1= , , R2= R1R2=, , which is not transitive. (3points)VIII. (6%) Give an argument using rules of inference to show that the conclusion follows from the hypotheses. List all the steps in your argument.Hypotheses: All computer scientists like Star Trek. Sarah does not like Star Trek. Therefore, Sarah is not a computer scientist.Solution:Hypotheses: x(ComputerScientist(x) Likes(x, StarTrek)Likes(Sarah, StarTrek)Conclusion: ComputerScientist(Sarah)Step 1: x(ComputerScientist(x) Likes(x, StarTrek) (Hypothesis)Step 2: ComputerScientist(Sarah) Likes(Sarah, StarTrek) (Univ. Inst. Step 1)Step
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 评语大全之建筑毕业设计评语
- Q数科公司发展战略研究(MBA毕业论文提纲)
- 浅析新生儿科常见的风险因素
- 《现代汉语》课程论文报告(1900字)
- 当前新闻App的发展困境与对策
- 战略成本管理方法论文
- 会展管理本科毕业论文选题
- 毕业论文导师评语模板-员工评语-
- 2025年扬州市中考作文预测题及范文分析
- 性别和性别决定课件 -2025-2026学年新教材北师大版八年级上册生物
- 《建筑艺术赏析》课件全套 第1-5讲 概论、建筑与建筑艺术-中国建筑艺术
- 《机械工程测试技术基础》课后习题及答案
- 构美-空间形态设计学习通超星课后章节答案期末考试题库2023年
- 社区戒毒(康复)工作流程图完整版
- 当代中国公务员制度
- 旅游纪念品培训资料课件
- 事故车出险定损单模板
- YY/T 0951-2015干扰电治疗设备
- 物业管理服务有限公司战略规划(2022-2026)
- 社会主义发展史课件
- 2023年福建高职单招语文真题试卷-(含参考答案)
评论
0/150
提交评论