Docsity

CMSC 250: Homework 10 Solutions - Fall 2009 - Prof. Donald R. Perlis, Assignments of Discrete Structures and Graph Theory

Toggle sidebar
bg1
Fall 2009
CMSC 250: Homework 10
Perlis
Due at the start of discussion section Wednesday, November 18, 2009.
Please staple your homeworks together if you use more than one page.
Problem 1. (1 point) Print your name ,
section number , and your TA’s name .
Problem 2. (1 point) When is the second exam? |
Problem 3. (20 points) Evaluate each of the following: You may leave your results
unsimplified.
a. 4
2 =4!
2!2! = 6 |
b. The probability that 𝑝 ∨ 𝑞 ∧ 𝑟 = 1 for a random assignment to 𝑝, 𝑞, and 𝑟.
Pr 𝑟 =1
2, Pr 𝑝 ∨ 𝑞 =Pr 𝑝 +Pr 𝑞 −Pr⁡(𝑝 ∧ 𝑞) = 1
2+1
2−1
4=3
4.
Pr 𝑝 ∨ 𝑞 ∧ 𝑟 =Pr 𝑟 Pr 𝑝 ∨ 𝑞 =1
2∙3
4=3
8
c. The number of distinct rearrangements of the letters in "CABBAGE".
7
1 6
2 4
2 2
1 1
1 =7!
6! 1! ∙6!
4! 2! ∙4!
2! 2! ∙2!
1! 1! ∙1!
1! 1! =7!
1! 2! 2! 1! =1260
d. The coefficient of 𝑥3𝑦7 in the expansion of 𝑥+𝑦 10.
10
3 =10!
3! 7! =120
Problem 4. (20 points) On page 370 of Epp. three probability axioms are given. Show that
Pr ∅ = 0 is not needed, and can be derived from the third axiom without using any set
except the empty set (e.g., without using S).
Pr ∅ =Pr ∅ ∪ ∅
Since ∅ ∩ ∅ =∅, the third axiom cam be applied, giving
Pr ∅ =Pr ∅ +Pr ∅
Pr ∅ = 2 Pr ∅
The only number 𝑎 that can satisfy the equation 𝑎= 2𝑎 is 𝑎= 0, so Pr ∅ = 0.
pf2

Partial preview of the text

Download CMSC 250: Homework 10 Solutions - Fall 2009 - Prof. Donald R. Perlis and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

Fall 2009 CMSC 250: Homework 10 Perlis

Due at the start of discussion section Wednesday, November 18, 2009.

Please staple your homeworks together if you use more than one page.

Problem 1. (1 point) Print your name , section number , and your TA’s name.

Problem 2. (1 point) When is the second exam? |

Problem 3. (20 points) Evaluate each of the following: You may leave your results unsimplified.

a.^4 2

4! 2!2! = 6^ |

b. The probability that 𝑝 ∨ 𝑞 ∧ 𝑟 = 1 for a random assignment to 𝑝, 𝑞, and 𝑟.

Pr 𝑟 = 1 2 ,^ Pr^ 𝑝 ∨ 𝑞^ = Pr^ 𝑝^ + Pr^ 𝑞^ −^ Pr^ (𝑝 ∧ 𝑞) =^

1 2 +^

1 2 −^

1 4 =^

3

Pr 𝑝 ∨ 𝑞 ∧ 𝑟 = Pr 𝑟 Pr 𝑝 ∨ 𝑞 = 1 2 ∙^

3 4 =^

3 8 c. The number of distinct rearrangements of the letters in "CABBAGE".

7 1

d. The coefficient of 𝑥^3 𝑦^7 in the expansion of 𝑥 + 𝑦 10.

10 3

Problem 4. (20 points) On page 370 of Epp. three probability axioms are given. Show that Pr ∅ = 0 is not needed, and can be derived from the third axiom without using any set except the empty set (e.g., without using S).

Pr ∅ = Pr ∅ ∪ ∅ Since ∅ ∩ ∅ = ∅, the third axiom cam be applied, giving Pr ∅ = Pr ∅ + Pr ∅ Pr ∅ = 2 Pr ∅

The only number 𝑎 that can satisfy the equation 𝑎 = 2𝑎 is 𝑎 = 0, so Pr ∅ = 0.

Problem 5. (18 points) An integer is a palindrome if it's digits written in reverse is the same integer. For example, 12321 is the same integer forwards and backwards. How many integers from 10000 to 99999 inclusive are palindromes?

There are 9 choices for the first digit, since it can't be 0. This also picks the last digit. There are 10 choices for the second digit. This also picks the second to last digit. There are 10 choices for the middle digit.

There are 9 ∙ 10 ∙ 10 = 900 palindromes.

Problem 6. (20 points) How many distinct solutions are there for 𝑥 1 , 𝑥 2 , 𝑥 3 and 𝑥 4 in the equation 𝑥 1 + 𝑥 2 + 𝑥 3 + 𝑥 4 = 20 if 𝑥 1 , 𝑥 2 , 𝑥 3 and 𝑥 4 must be non-negative integers.

This is the same as the number of ways to separate 20 1's into 4 groups. If all the 1's are arranged in a row, the location that three separators are placed will divide the 1's into 4 groups. The first group will be 𝑥 1 , the second 𝑥 2 , and so on. For example:

𝑥 1 𝑥 2 𝑥 3 𝑥 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

This arrangement of the separators would make 𝑥 1 = 5, 𝑥 2 = 3, 𝑥 4 = 0. and 𝑥 4 = 12. Since 𝑥𝑖 may be 0, the separators may be place in the same location. Also, the separators aren't labeled; any ordering of the separators that would cause 𝑥 1 , 𝑥 2 , 𝑥 3 and 𝑥 4 to have the same values shouldn't be counted separately. This is a combination with replacement.

20 + 3 20

Problem 7. (20 points) Use the binomial theorem (not induction) to prove that for all 𝑛 ≥ 1

and for all 𝑥, −𝑥 𝑖^

If we make 𝑎 = −𝑥 and 𝑏 = 𝑥 in the binomial theorem, −𝑥 + 𝑥

𝑛 = −𝑥 𝑖^

𝑛 𝑛 −𝑖 𝑖=.

𝑛 = 0 𝑛^ = 0 , so 0 = −𝑥 𝑖^

𝑛 𝑛 −𝑖 𝑖= 0.