Docsity

CS 441 Fall 2005 Exam 2: Discrete Mathematics Problems, Exams of Computer Science

Toggle sidebar
bg1
CS 441 Fall 2005 Exam 2
There are 15 problems in 3 parts (A to C) on 6 pages with a total score of 100 points. Do all problems.
Calculators are not allowed.
Part A: Counting
1. (4 points) Compute the value of each of these quantities.
(a) P(6,4) (b) C(8,5)
2. (6 points) Consider a cow that is walking along a road that is in the East-West direction. Each
minute the cow either walks 10 yards to the East or 10 yards to the West. How many ways are there
for the cow to walk to end up 20 yards to the East from its starting position after walking for 10
minutes?
3. (6 points) Suppose we want to toss a coin until we get either a total of 2 heads or a total of 3 tails.
How many possible sequences of heads and tails are there? Show your work.
1
pf3
pf4
pf5

Partial preview of the text

Download CS 441 Fall 2005 Exam 2: Discrete Mathematics Problems and more Exams Computer Science in PDF only on Docsity!

CS 441 Fall 2005 Exam 2 There are 15 problems in 3 parts (A to C) on 6 pages with a total score of 100 points. Do all problems. Calculators are not allowed. Part A: Counting

  1. (4 points) Compute the value of each of these quantities. (a) P(6,4) (b) C(8,5)
  2. (6 points) Consider a cow that is walking along a road that is in the East-West direction. Each minute the cow either walks 10 yards to the East or 10 yards to the West. How many ways are there for the cow to walk to end up 20 yards to the East from its starting position after walking for 10 minutes?
  3. (6 points) Suppose we want to toss a coin until we get either a total of 2 heads or a total of 3 tails. How many possible sequences of heads and tails are there? Show your work.
  1. (6 points) Suppose you are shopping for gifts to give to 10 people for the holidays. There are 4 kinds of gifts that you are considering buying. Suppose it is fine to give the same kind of gift to more than one person. How many ways are there to buy gifts for these people?
  2. (10 points) Suppose a department contains 8 men and 11 women. How many ways are there to form a committee with 6 members if there must be at least 1 man and at least 1 woman?
  1. (8 points) Suppose that we roll a die until either it comes up 6 or we have rolled it 4 times. What is the expected number of times we roll the die?
  2. (8 points) Consider a game where a number between 1 and 100 inclusive is randomly chosen. The player gets 2 points if the number is even. The player gets 5 points if the number is 10 or smaller. The player loses 3 points if the number is divisible by 5. For example, if the number is 20, then the player gets 2 – 3 = – 1 point. What is the expected number of points if the player plays this game 10 times?

Part C: Relations

  1. (4 points) Let A = { 1, 2, 3 } and B = { 3, 4, 5 }. Let R be a relation from A to B defined by R = { (a,b) | a + b < 5 }. (a) List all the elements in R. (b) Display this relation graphically.
  2. (10 points) Let R be a relation on a set A. Define R’ to be a relation on A such that x R’ y if there exists z such that x R z and y R z. (a) Suppose R is the relation on the set { a, b, c, d } given below. Show R’ using a digraph. R R’ (b) For any relation R, it is always the case that R’ is reflexive. TRUE FALSE (c) For any relation R, it is always the case that R’ is symmetric. TRUE FALSE (d) For any relation R, it is always the case that R’ is transitive. TRUE FALSE