Download Midterm Exam 1 for CS70: Propositions, Permutations, and Tiling and more Exams Discrete Mathematics in PDF only on Docsity! Midterm exam 1 CS70, Blum/Wagner, 9 March 2001 This is a closed book examination. One page of notes is permitted. Calculators are permitted. Do all your work on the pages of this examination. Give reasons for all your answers. Print your name: , (last) (first) Sign your name: Problem 1. (Short answer grab-bag) [10 points] For parts (a)–(c), justify your answer briefly. (a) [2 points] True or false: (P ⇒ Q) ⇒ (Q ⇒ P ) always holds, for all propositions P, Q. (b) [3 points] True or false: ((P ∨ Q) ⇒ Q) ⇒ (Q ⇒ (P ∨ Q)) always holds, for all propositions P, Q. (c) [3 points] Recall that two sets S, T are said to be disjoint if S ∩ T = ∅. Can two events A and B be simultaneously independent and disjoint? (d) [2 points] Recall that two random variables X and Y are independent just if the pair of events X = i and Y = j are independent no matter how you choose the values i and j. Which of the following most accurately expresses the proposition that X and Y are not independent? (You do not need to justify your answer.) (i) ∀i.∀j. Pr[X = i ∧ Y = j] 6= Pr[X = i] Pr[Y = j] (ii) ∀i.∃j. Pr[X = i ∧ Y = j] 6= Pr[X = i] Pr[Y = j] (iii) ∃j.∀i. Pr[X = i ∧ Y = j] 6= Pr[X = i] Pr[Y = j] (iv) ∃i.∃j. Pr[X = i ∧ Y = j] 6= Pr[X = i] Pr[Y = j] Problem 2. (Permutations) [25 points] Let S be the sample space of all permutations on the n letters {1, 2, . . . , n}, with the uniform probability distribution. In each of the following, give reasons for all your answers. (You may find the next page, which has been left blank, useful for justifying your answers.) (a) [1 point] The uniform probability distribution assigns to every permutation on n letters the probability: Define the random variable Xi to be the number of cycles of length i, i.e., Xi maps each permutation to an integer equal to the number of cycles in that permutation that are of length i. (b) [1 point] For the permutation (124)(36)(5)(7) on n = 7 letters: X1 = , X2 = , X3 = , X4 = . For general positive integers n, give: (c) [3 points] E[X1] = . (d) [7 points] E[X2] = . For an integer k ∈ {1, 2, . . . , n}, what is (e) [8 points] E[Xk] = . Define the random variable X to be the number of cycles in a permutation. In other words, X maps any permutation to a positive integer equal to the number of cycles in that permutation. (f) [1 point] For the permutation (124)(36)(5)(7), X = . (g) [1 point] Is X = X1 + X2 + . . . + Xn? . (h) [3 points] E[X] = . Give reasons for all your answers below.