Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Midterm Exam 1 for CS70: Propositions, Permutations, and Tiling, Exams of Discrete Mathematics

The midterm exam 1 for cs70, held on 9 march 2001. The exam covers topics such as propositions, permutations, and tiling. Students are allowed to bring one page of notes and calculators. They must justify all their answers and print and sign their names. The exam includes multiple-choice and short-answer questions.

Typology: Exams

Pre 2010

Uploaded on 09/07/2009

koofers-user-nxe-1
koofers-user-nxe-1 🇺🇸

10 documents

1 / 4

Toggle sidebar

Related documents


Partial preview of the text

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.
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved