Docsity

Practice Exam 2 - Discrete Structures | CMSC 250, Exams of Discrete Structures and Graph Theory

Toggle sidebar
bg1
CMSC 250 PRACTICE EXAM II
1. Prove by induction for all n≥1: Pn
i=1 i2i= (n−1)2n+1 + 2
2. Let tn= 2tn−1−tn−2for n > 2 where t1= 1 and t2= 2.
Guess that the sequence satisfies this formula: tn=an2+bn +c, for
some (unknown) constants a, b, c.
Use constructive induction to derive values for the constants a, b, c while
proving the formula at the same time. Make sure to use the base cases.
3. Prove by strong induction: For every tree with nnodes, the height plus
the number of leaves is ≤n. [Recall that we defined a tree as either a
single (root) node, or a single (root) node along with other trees whose
own roots are attached to that node; those other trees are then subtrees
of the new tree.]
1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Practice Exam 2 - Discrete Structures | CMSC 250 and more Exams Discrete Structures and Graph Theory in PDF only on Docsity!

CMSC 250 PRACTICE EXAM II

  1. Prove by induction for all n ≥ 1:

∑n i=1 i^2 i^ = (n^ −^ 1)2n+1^ + 2

  1. Let tn = 2tn− 1 − tn− 2 for n > 2 where t 1 = 1 and t 2 = 2.

Guess that the sequence satisfies this formula: tn = an^2 + bn + c, for some (unknown) constants a, b, c. Use constructive induction to derive values for the constants a, b, c while proving the formula at the same time. Make sure to use the base cases.

  1. Prove by strong induction: For every tree with n nodes, the height plus the number of leaves is ≤ n. [Recall that we defined a tree as either a single (root) node, or a single (root) node along with other trees whose own roots are attached to that node; those other trees are then subtrees of the new tree.]
  1. Prove by the element method (do not use identities), that

A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)

  1. Disprove with a counterexample:

A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ B ∩ C)

v. The size (cardinality, number of elements) of the powerset P (A) of the set A of all 36 alphanumeric symbols (26 lowercase letters, plus digits 0,1,...,9) is (just write the correct expression; do not attempt to reduce to an ordinary number):

|P (A)| =

8. MULTIPLE CHOICE:

Russell’s paradox and the The Halting Problem a. were both discovered by Russell b. both use the idea of a kind of negative self-reference c. both of the above d. none of the above

The multiplication rule says that if a procedure has n steps a. then it can be done in n^2 ways b. then each step s_i can always be done in w_i ways c. both of the above d. none of the above

Let S be a set of cardinality n. Then the # of r-permutations of S a. is equal to the # of r-combinations of S b. is larger than the # of r-combinations of S c. is less than the # of r-combinations of S

Assuming a uniform probablitly distribution on tosses of a (6-sided) die, and letting each of 1,...,6 represent the elementary event of rolling that value, then a. P(3) = P(1 union 2) b. P(3) = P(1) + P(2) c. both the above d. none of the above

Let f:A->B, where |A| > |B|. Then

a. f must be 1- b. f cannot be 1- c. f must be onto

The cardinality of infinite sets a. makes no sense, as Galileo showed b. can be given a precise meaning c. makes sense only by saying all of them have the same size

SHORT ANSWER:

a. Let f:A->B be a function from A to B Then the domain of f is _____ The domain and codomain must be the same_____ (T/F)

b. Give an example of a function that is neither 1-1 nor onto _______________

c. Give an example of a function that is both 1-1 and onto___________________

d. The Customs Office arrests a man who has 1000 bottles of wine that he admits were brought from another country. But he says that he did not bring them all at once: only a few at a time, well within the legal limit, and that he has been doing this once a week, fifty weeks a year, for the past two years. The Customs Office convinces a judge that he broke the law and in fact exceeded the limit at least once. Assuming they made a correct argument to the judge, what can we infer about the legal limit on bottles of wine that can be brought into the country on one trip? __________________________

EVEN MORE RULES!!

Definition p → q ≡ ∼ p ∨ q of Implication ∼ (p → q) ≡ p∧ ∼ q Definition of A ↔ B ≡ (A → B) ∧ (B → A) Biconditional ∼ (A ↔ B) ≡ (A∧ ∼ B) ∨ (B∧ ∼ A) Negation of ∼ ∀x P (x) ≡ ∃x ∼ P (x) Quantifiers ∼ ∃x P (x) ≡ ∀x ∼ P (x) Universal ∀x ∈ D, P (x) → Q(x) Modus Ponens P (a) → Q(a) Universal ∀x ∈ D, P (x) → Q(x) Modus Tollens ∼ Q(a) → ∼ P (a) Universal Instantiation ∀x ∈ D, P (x) → P (a) (Needs Nonempty Domain) Existential Generalization P (a) where a ∈ D → ∃x ∈ D, P (x) Universal Generalization P (a) where a ∈ D → ∀x ∈ D, P (x) (Needs a not special) Existential Instantiation ∃x ∈ D, P (x) → P (a) where a ∈ D (Needs a not special)

MISC

Theorem 4.1.

∑ k = mna k +

∑ k = mnb k =

∑ k = mn(a k + b k) Theorem 4.1.1 c ·

∑ k = mna k =

∑ k = mn(c · a k) Theorem 4.1.

∏ k = mna k ·

∏ k = mnb k =

∏ k = mn(a k · b k) Theorem 4.2.

∑ i = 1mi = m(m 2 +1)

Theorem 4.2.

∑ i = 0nri^ = r

n+1− 1 r− 1

RULES CONCERNING SETS

The rules below apply to all sets A, B, and C that are subsets of some fixed universal set U.

  1. Commutative Laws: (a) A ∪ B = B ∪ A and (b) A ∩ B = B ∩ A
  2. Associative Laws: (a) (A ∪ B) ∪ C = A ∪ (B ∪ C) (b) (A ∩ B) ∩ C = A ∩ (B ∩ C)
  3. Distributive Laws: (a) A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) (b) A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
  4. Identity Laws: (a) A ∪ ∅ = A and (b) A ∩ U = A
  5. Complement Laws: (a) A ∪ Ac^ = U and (b) A ∩ Ac^ = ∅
  6. Double Complement Law : (Ac)c^ = A
  7. Idempotent Laws: (a) A ∪ A = A and (b) A ∩ A = A
  8. Universal Bound Laws: (a) A ∪ U = U and (b) A ∩ ∅ = ∅
  9. De Morgan’s Laws: (a) (A ∪ B)c^ = Ac^ ∩ Bc (b) (A ∩ B)c^ = Ac^ ∪ Bc
  10. Absorption Laws: (a) A ∪ (A ∩ B) = A and (b) A ∩ (A ∪ B) = A
  11. Complements of U and ∅: (a) U c^ = ∅ and (b) ∅c^ = U
  12. Set Difference Law : A − B = A ∩ Bc
  13. Inclusion of intersection: A ∩ B ⊆ A and A ∩ B ⊆ B
  14. Inclusion in Union: A ⊆ A ∪ C and B ⊆ A ∪ B
  15. Transitivity of Subset: (A ⊆ B) ∧ (B ⊆ C) → (A ⊆ C)