Docsity

CS 220 Discrete Mathematics Homework 5, Assignments of Discrete Mathematics

Toggle sidebar
bg1
Homework 5
CS 220: Discrete Mathematics
Instructor: Dr. Arun Ross
Due Date: December 8, 2006 (5:00pm)
Total Points: 60
Note: You are permitted to discuss the following questions with others in the class.
However, you must write up your own solutions to these questions. Any indication to the
contrary will be considered an act of academic dishonesty.
1. [25 points] Solve the following and indicate the principle that was used in each case.
(a) A computerized housing service has a list of 50 men and 50 women. Names are selected
at random. How many names must be chosen to guarantee two names of the same
gender?
(b) In a group of 42 tourists, everyone speaks English or French; there are 35 English
speakers and 18 French speakers. How many speak both English and French?
(c) A user’s password to access a computer system consists of three letters followed by two
digits. How many different passwords are possible?
(d) How many people must be in a group in order to guarantee that two people in the
same group have the same birthday (do not forget leap year!)?
(e) Let nbe a positive number. Show that in any set of n+ 1 numbers, there are at least
two with the same remainder when divided by n.
2. [10 points] A binary string of length nis an ordered sequence containing nzeroes and ones.
Thus, 0110 is a binary string of length 4 and 10000 is a binary string of length 5. Consider
the set of all binary strings of length 8. How many strings in this set start or end with a 0?
3. [15 points] A customer at a fast-food restaurant can order a hamburger with or without
mustard, ketchup, pickle or onion; a fish sandwich with or without lettuce, tomato or tartar
sauce; and a choice of three kinds of soft drinks or two kinds of milk shakes. How many
different orders are possible if a customer can order at most one hamburger, one fish sandwich
and one beverage (but can order less)?
4. [10 points] Let Aand Bbe two sets. Using first principles show that (ASB)′=A′TB′.
pf2

Partial preview of the text

Download CS 220 Discrete Mathematics Homework 5 and more Assignments Discrete Mathematics in PDF only on Docsity!

Homework 5

CS 220: Discrete Mathematics Instructor: Dr. Arun Ross Due Date: December 8, 2006 (5:00pm) Total Points: 60

Note: You are permitted to discuss the following questions with others in the class. However, you must write up your own solutions to these questions. Any indication to the contrary will be considered an act of academic dishonesty.

  1. [25 points] Solve the following and indicate the principle that was used in each case.

(a) A computerized housing service has a list of 50 men and 50 women. Names are selected at random. How many names must be chosen to guarantee two names of the same gender? (b) In a group of 42 tourists, everyone speaks English or French; there are 35 English speakers and 18 French speakers. How many speak both English and French? (c) A user’s password to access a computer system consists of three letters followed by two digits. How many different passwords are possible? (d) How many people must be in a group in order to guarantee that two people in the same group have the same birthday (do not forget leap year!)? (e) Let n be a positive number. Show that in any set of n + 1 numbers, there are at least two with the same remainder when divided by n.

  1. [10 points] A binary string of length n is an ordered sequence containing n zeroes and ones. Thus, 0110 is a binary string of length 4 and 10000 is a binary string of length 5. Consider the set of all binary strings of length 8. How many strings in this set start or end with a 0?
  2. [15 points] A customer at a fast-food restaurant can order a hamburger with or without mustard, ketchup, pickle or onion; a fish sandwich with or without lettuce, tomato or tartar sauce; and a choice of three kinds of soft drinks or two kinds of milk shakes. How many different orders are possible if a customer can order at most one hamburger, one fish sandwich and one beverage (but can order less)?
  3. [10 points] Let A and B be two sets. Using first principles show that (A

B)′^ = A′^

B′.

Note: The following bonus question carries 5 points. You are not permitted to discuss this question with anyone else.

  1. Let A and B be two sets. Prove that if A

B = A − B, then B = ∅, where ∅ is the null set.