Solutions to Discrete Mathematical Structures Homework #9, Assignments of Discrete Structures and Graph Theory

Solutions to homework problems for the discrete mathematical structures course, covering topics such as the pigeonhole principle, combinatorial proof, binomial coefficients, and combinations & permutations. It includes detailed explanations and calculations for each problem.

Typology: Assignments

Pre 2010

Uploaded on 03/16/2009

koofers-user-bk6
koofers-user-bk6 🇺🇸

9 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS173 Discrete Mathematical Structures
Fall 2006
Homework #9 Solution
due Tuesday, November 7, 2006, 8:00 a.m.
(46 points + 6 bonus points)
1. The Pigeonhole Principle (10 points)
a. 5 points.
2 points for correctly grouping addresses into pairs of consecutive numbers.
2 points for applying the PHP.
1 point for including the fact that each house has a distinct address
Group 50 addresses into 25 pairs of consecutive numbers: {1000, 1001}, {1002,
1003}, …, {1048, 1049}. Now we assign 26 houses to 25 groups. According to the PHP
and the fact that each house has a distinct address, there must be two houses assigned to
the same group of addresses. Therefore, these two houses have consecutive addresses.
b. 5 points.
1 point for using only starting and ending letters of strings.
2 points for finding all combinations of the starting and ending letters.
2 points for using the PHP.
Nonempty strings over {a, b, c, d} can be any size greater than 0, can use any
combination of letters, and can have any order. We are only concerned with the starting
and ending letters of strings. Find all 16 possible combinations of the starting and ending
letters:
a*a a*b a*c a*d
b*a b*b b*c b*d
c*a c*b c*c c*d
d*a d*b d*c d*d
Now that we have 16 “pigeonholes” and 17 “pigeons”, we apply the PHP and conclude
that there must be two different strings that have similar starting and ending letters.
2. Combinatorial Proof (8 points)
4 points for each side. Deduct 6 points off for only rephrasing the hints.
First note that we can start the summation with k = 1, since the term with k = 0 is 0. The
left-hand side counts the number of ways to choose a subset as described in the hint by
breaking it down by the number of elements in the subset, note there are k ways to choose
each of the distinguished elements if the subset has size k. For the right-hand side, first note
that 2221
(1)2 (12)2 (1)2 2
nnnn
nn nn nn n
−−
+=+ =−+. The first term counts the
number of ways to make this choice if the two distinguished elements are different (choose
them, then choose any subset of the remaining elements to be the rest of the subset). The
second term counts the number of ways to make this choice if the two distinguished elements
are the same (choose it, then choose any subset of the remaining elements to be the rest of the
subset). Note that this works even if n = 1.
pf3

Partial preview of the text

Download Solutions to Discrete Mathematical Structures Homework #9 and more Assignments Discrete Structures and Graph Theory in PDF only on Docsity!

CS173 Discrete Mathematical Structures

Fall 2006

Homework #9 Solution

due Tuesday, November 7, 2006, 8:00 a.m.

(46 points + 6 bonus points)

1. The Pigeonhole Principle (10 points)

a. 5 points.

2 points for correctly grouping addresses into pairs of consecutive numbers.

2 points for applying the PHP.

1 point for including the fact that each house has a distinct address

Group 50 addresses into 25 pairs of consecutive numbers: {1000, 1001}, {1002,

1003}, …, {1048, 1049}. Now we assign 26 houses to 25 groups. According to the PHP

and the fact that each house has a distinct address, there must be two houses assigned to

the same group of addresses. Therefore, these two houses have consecutive addresses.

b. 5 points.

1 point for using only starting and ending letters of strings.

2 points for finding all combinations of the starting and ending letters.

2 points for using the PHP.

Nonempty strings over { a , b , c , d } can be any size greater than 0, can use any

combination of letters, and can have any order. We are only concerned with the starting

and ending letters of strings. Find all 16 possible combinations of the starting and ending

letters:

aa ab ac ad

ba bb bc bd

ca cb cc cd

da db dc dd

Now that we have 16 “pigeonholes” and 17 “pigeons”, we apply the PHP and conclude

that there must be two different strings that have similar starting and ending letters.

2. Combinatorial Proof (8 points)

4 points for each side. Deduct 6 points off for only rephrasing the hints.

First note that we can start the summation with k = 1, since the term with k = 0 is 0. The

left-hand side counts the number of ways to choose a subset as described in the hint by

breaking it down by the number of elements in the subset, note there are k ways to choose

each of the distinguished elements if the subset has size k. For the right-hand side, first note

that

2 2 2 1 ( 1)2 ( 1 2)2 ( 1)2 2

n n n n n n n n n n n

− − − −

  • = − + = − +. The first term counts the

number of ways to make this choice if the two distinguished elements are different (choose

them, then choose any subset of the remaining elements to be the rest of the subset). The

second term counts the number of ways to make this choice if the two distinguished elements

are the same (choose it, then choose any subset of the remaining elements to be the rest of the

subset). Note that this works even if n = 1.

3. Binomial Coefficients (10 points + 6 bonus points)

a. (5 points)

  1. (1 point) the 2nd term:

198 2 192 3

x x x

  ⋅ −^ = 

  1. (2 points) the coefficient of 300

x

:

First determine which term 300

x

is: (200 − k ) − 3 k = − 300 ⇒ k = 125

Then apply the binomial theorem:

  ⋅^ ⋅ −^ = − ⋅ 

  1. (2 points) Yes. (200 − k ) − 3 k = 0 ⇒ k = 50

150 50 150 50 3

x x

  ⋅^ ⋅ −^ ⋅^ ⋅^ = 

b. Bonus: 6 points

1 point for correct range of k : − 600 ≤ k ≤ 200

1 point for a piecewise function

1 point for k being a multiple of 4

1 point for the correct value 0 for k not evenly divided by 4

1 point for finding

k C

1 point for the correct +/- sign:

600 4 ( 1)

  • k

600 4

k k C k k f k

k k

 (^) +  ⋅ − , − ≤ ≤ = 

  , −^ ≤^ ≤^ /

c. 5 points

2 points for (1 1) 0

n − = .3 points for expand (1 1)

n − using the binomial theorem.

Notice that (1 1) 0

n − =. We apply the binomial theorem to (1 1)

n − , we have

1 2 2

n

n n n n

n

C n C n C n C n n

C n C n C n C n n

− −