Download Solution

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
DISCRETE STRUCTURES
SOLUTION 3
1. Let there be x, y, z P’s in the first, second and third rows respectively.
So, x + y + z = 7. The number of P’s in the first, second and third rows and
the number of ways in which they can be arranged is tabulated below. The
max number of P’s in any row is given in the top row of the table below:
3
1
1
2
1
2
1
3
3
2
2
3
4
1
2
1
4
4
3
1
3
2
3
2
5
5
4
4
2
1
3
3
1
3
2
2
Calculation
3.4.1
3.6.5
3.4.5
3.1.10
3.1.5
3.4.10
1.4.10
1.4.5
3.6.10
3.4.10
1.6.10
No. of ways
12
90
60
30
15
120
40
20
180
120
60
So the total number of ways is the summation of the number of ways which
is 747.
2. Proceed as explained in the class.
3. Consider the function f defined on X by the rule that for each member x of
X:
f(x) = Number of friends of x in X.
If X  m , the possible values of f(x) are 0,1,2,…m-1. Since friends of x can
be members of X except x, so if f is a function from set X to set Y =
{0,1,2,…m-1}. At this point we can not apply PHP as the cardinality of
both the sets is m.
If there is a person c who has m-1 friends then everyone else is a friend of c
and no one has 0 friends. So the numbers m-1 and 0 can not be both the
members of set Y. So f is a function from a set with m members to a set
with m-1 (or lesser) members and PHP tells us that f can not be an injective
function. So, at least 2 people must have same number of friends.
4. Y  1,31/ 2 ,3,33/ 2 ,...,319 / 2 ,310 
We can observe that the given numbers are in GP. We want the number of
ways of selecting 2 numbers such that their product is not less than 310 .
So, when number is m let k be the number of ways of selecting the other
numbers such that m < n
M
1
31/ 2
3
35 / 2
.
.
.
39 / 2
35
311/ 2
36
.
.
.
39
319 / 2 1
k
1
2
3
4
.
.
.
10
10
9
8
.
.
.
2
1
N
310
319 / 2 , 310
39 , 319 / 2 , 310
317 / 2 , 39 , 319 / 2 , 310
.
.
.
31/ 2 , 36 ,…., 310
31/ 2 , 36 ,…., 310 1
36 , 313 / 2 , . . ., 310
313 / 2 , 37 , . . ., 310
.
.
.
319 / 2 , 310
310
So, the total number of ways of selecting two numbers from Y such that
product is greater than or equal to 310 is
(1 + 2 + 3 +. . .+ 10) + (1 + 2 + 3 +. . .+ 10) = 110.
5. To throw the dice without any profit or loss, you would be willing to pay an
amount which is equal to the expected value.
To calculate the expected value, we need the probabilities of the events
involved (i.e. getting 1 or 2 and so on). Since this is a biased dice and we
have been given the relationship between the probability of getting an odd
number and even number, let us assume that the probability of getting an
odd number is p, so the probability of getting an even number is 3p.
Since all six events we are considering are mutually exclusive and
exhaustive, so the sum of probabilities is 1.
So, p + 3p + p + 3p + p + 3p = 1 i.e. p = 1/12
P(Odd) = 1/12 and P(Even) = 3/12. We have been given the monetary
values associated with getting an odd number as well as getting an even
number
So, Expected Value = 1/12 (10 + 10 + 10) + 3/12 (5 + 5 + 5) = 6.25
6. Think of an equilateral triangle with each side exactly 1 inch long. At least
two of its vertices have to be of the same color (colors are pigeon holes and
vertices are the pigeons). This proves that there have to be two points of the
same color exactly 1 inch apart.
Of course, if all the points of the plane are colored the same (either red or
blue) , then it is impossible to find two points of different color any
distance apart. But suppose that there is atleast one red point and one blue
point in the plane. Then it is possible to find two points of different color
exactly one inch apart, and this is how:
a). Choose two points of different color. If they are exactly 1 inch apart
then the problem is solved.
b). If the distance between them is less than 1 inch, mark a point which is 1
inch away from each of these points. No matter whether it is blue or red, it
will have a point of different color exactly 1 inch apart.
c). If the distance between the originally chosen points of different is
greater then 1 inch, connect these points with a segment. Look at a point on
this segment, which is 1 inch away from the red point (and so 1 inch closer
to the blue point then the original red point). If this new point is blue, the
problem is solved. If this point is red, replace the original point by this
point and continue to apply this algorithm. Eventually the distance between
the red point and the blue point that you are considering will become either
1 inch or less than 1 inch
7. There are 25  8  3  1 students (pigeons) and 3 possible grades (pigeon
holes); therefore, by general pigeon hole principle, there must be more than
8 students with the same grade.