Think Tank-Final_compressed
Think Tank-Final_compressed
ANALYTICS GROUP
CDC 101
THINK
TANK
“ A Curated Collection of
Probability Problems & Puzzles ”
KHARAGPUR DATA
ANALYTICS GROUP
INDEX
I. Probability
1. Basic Questions 1-20
2. Bayes Theorem 21-24
3. Expectation 25-52
4. Strategy 53-62
5. Geometrical 63-84
6. Distribution 85-94
7. Pigeon Hole Principle 95-106
8. Random Walk 107-117
9. Miscellaneous 118-124
II. Puzzles
1. Basic Puzzles 125-157
2. Mathematics 158-187
3. Strategy 188-215
KHARAGPUR DATA
ANALYTICS GROUP
BASIC
PUZZLES
KHARAGPUR DATA
ANALYTICS GROUP
1
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 4, 21
Solution :
2
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
3
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
4
KHARAGPUR DATA
ANALYTICS GROUP
2. Coin in square
In a common carnival game a player tosses
a penny from a distance of about 5 feet
onto the surface of a table ruled in 1-inch
squares. If the penny (3/4 inch in
diameter) falls entirely inside a square, the
player receives 5 cents but does not get his
penny back; otherwise he loses his penny.
If the penny lands on the table, what is his
chance to win?
5
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1/16
Solution :
6
KHARAGPUR DATA
ANALYTICS GROUP
7
KHARAGPUR DATA
ANALYTICS GROUP
Answer :
Solution :
8
KHARAGPUR DATA
ANALYTICS GROUP
9
KHARAGPUR DATA
ANALYTICS GROUP
Answer : YES
Solution :
10
KHARAGPUR DATA
ANALYTICS GROUP
11
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1:1
Solution :
12
KHARAGPUR DATA
ANALYTICS GROUP
6. Half Time
The probability of having accidents
on a road in one hour is ¾. What
is the probability of accidents in
half an hour?
13
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1/2
Solution :
14
KHARAGPUR DATA
ANALYTICS GROUP
7. Craps
The game of craps, played with two dice, is one
of America’s fastest and most popular gambling
games. Calculating the odds associated with it is
an instructive exercise.
The rules are as follows: Only the totals for the
two dice count. The player throws the dice and:
Wins immediately if the total for the first throw
is 7 or 11.
Loses immediately if the total is 2, 3, or 12.
Any other total becomes the player’s “point.” If
the first throw results in a point, the player
continues to throw the dice repeatedly until one
of the following occurs:
The player wins by throwing the point again.
The player loses by throwing a 7.
What is the player’s chance to win?
15
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 3/9
Solution :
16
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
17
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
18
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
19
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
20
KHARAGPUR DATA
ANALYTICS GROUP
BAYES
THEOREM
KHARAGPUR DATA
ANALYTICS GROUP
8. Father of Lies
A father claims about snowfall last night.
First daughter tells that the probability of
snowfall on a particular night is 1/8.
Second daughter tells that 5 out of 6
times the father is lying! What is the
probability that there actually was a
snowfall?
21
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1/36
Solution :
22
KHARAGPUR DATA
ANALYTICS GROUP
9. 50 marbles
23
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 0.75
Solution :
24
KHARAGPUR DATA
ANALYTICS GROUP
EXPECTATION
KHARAGPUR DATA
ANALYTICS GROUP
25
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 4
Solution :
26
KHARAGPUR DATA
ANALYTICS GROUP
27
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 6
Solution :
28
KHARAGPUR DATA
ANALYTICS GROUP
29
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 0.5
Solution :
30
KHARAGPUR DATA
ANALYTICS GROUP
31
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 4.25
Solution :
32
KHARAGPUR DATA
ANALYTICS GROUP
33
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1:1
Solution :
34
KHARAGPUR DATA
ANALYTICS GROUP
35
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
36
KHARAGPUR DATA
ANALYTICS GROUP
Solution(Conti) :
37
KHARAGPUR DATA
ANALYTICS GROUP
38
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 0.5
Solution :
39
KHARAGPUR DATA
ANALYTICS GROUP
Solution(Conti) :
40
KHARAGPUR DATA
ANALYTICS GROUP
41
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 4
Solution :
42
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
43
KHARAGPUR DATA
ANALYTICS GROUP
44
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 2.25
Solution :
45
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
46
KHARAGPUR DATA
ANALYTICS GROUP
47
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 11.42
Solution :
48
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
49
KHARAGPUR DATA
ANALYTICS GROUP
50
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 7.47
Solution :
51
KHARAGPUR DATA
ANALYTICS GROUP
52
KHARAGPUR DATA
ANALYTICS GROUP
STRATEGY
KHARAGPUR DATA
ANALYTICS GROUP
53
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
54
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
55
KHARAGPUR DATA
ANALYTICS GROUP
56
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
57
KHARAGPUR DATA
ANALYTICS GROUP
58
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
59
KHARAGPUR DATA
ANALYTICS GROUP
60
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
61
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
62
KHARAGPUR DATA
ANALYTICS GROUP
GEOMETRY
AND INTEGRAL
PUZZLES
KHARAGPUR DATA
ANALYTICS GROUP
63
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
64
KHARAGPUR DATA
ANALYTICS GROUP
65
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
66
KHARAGPUR DATA
ANALYTICS GROUP
67
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
68
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
69
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
70
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
71
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
72
KHARAGPUR DATA
ANALYTICS GROUP
28.Random Ratio
p and q are two points chosen at
random between 0 and 1. What
is the probability that the ratio p/q
lies between 1 and 2?
73
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1/4
Solution :
74
KHARAGPUR DATA
ANALYTICS GROUP
75
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 3/4
Solution :
76
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
77
KHARAGPUR DATA
ANALYTICS GROUP
78
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1/4
Solution :
79
KHARAGPUR DATA
ANALYTICS GROUP
80
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 3/4
Solution :
81
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
82
KHARAGPUR DATA
ANALYTICS GROUP
83
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1/4
Solution :
84
KHARAGPUR DATA
ANALYTICS GROUP
DISTRIBUTIONS
KHARAGPUR DATA
ANALYTICS GROUP
85
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 10
Solution :
86
KHARAGPUR DATA
ANALYTICS GROUP
87
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 3/4
Solution :
88
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
89
KHARAGPUR DATA
ANALYTICS GROUP
90
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
91
KHARAGPUR DATA
ANALYTICS GROUP
36.Correlated Variables
92
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
93
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
94
KHARAGPUR DATA
ANALYTICS GROUP
PIGEONHOLE
PRINCIPLE
KHARAGPUR DATA
ANALYTICS GROUP
95
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
96
KHARAGPUR DATA
ANALYTICS GROUP
97
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
Let “count(n)” be the count of ways to place
tiles on a “2 x n” grid, we have following
two ways to place first tile.
1) If we place first tile vertically, the
problem reduces to “count(n-1)”
2) If we place first tile horizontally, we have
to place second tile also horizontally. So the
problem reduces to “count(n-2)”
Therefore, count(n) can be written as below.
count(n) = n if n = 1 or n = 2
count(n) = count(n-1) + count(n-2)
The above recurrence is nothing but
Fibonacci Number expression.
98
KHARAGPUR DATA
ANALYTICS GROUP
99
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
100
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
101
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
102
KHARAGPUR DATA
ANALYTICS GROUP
103
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 253
Solution :
104
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
105
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
106
KHARAGPUR DATA
ANALYTICS GROUP
RANDOM
WALK
KHARAGPUR DATA
ANALYTICS GROUP
107
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 1
Solution :
108
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
109
KHARAGPUR DATA
ANALYTICS GROUP
42. Drunkard
Problem
110
KHARAGPUR DATA
ANALYTICS GROUP
111
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
112
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
113
KHARAGPUR DATA
ANALYTICS GROUP
114
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
115
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
116
KHARAGPUR DATA
ANALYTICS GROUP
117
KHARAGPUR DATA
ANALYTICS GROUP
MISCELLANEOUS
KHARAGPUR DATA
ANALYTICS GROUP
WINNER
118
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
119
KHARAGPUR DATA
ANALYTICS GROUP
120
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
121
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
122
KHARAGPUR DATA
ANALYTICS GROUP
123
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
124
KHARAGPUR DATA
ANALYTICS GROUP
II . PUZZLES
KHARAGPUR DATA
ANALYTICS GROUP
GENERAL
KHARAGPUR DATA
ANALYTICS GROUP
1. Burning Cords
You are given two cords that both burn in exactly
one hour, not necessarily at a uniform rate. How
should you light the cords to determine a time
interval of exactly 15 minutes?
FOLLOW-UP QUESTION:
Instead of having two cords, what if you only had
one cord, how would you measure 15 minutes?
125
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
First, let's try to measure thirty minutes. To do that, we can
burn both ends of a cord.
Even if it burns non-uniformly, it will still finish in exactly 30
minutes.
To measure 15 minutes, burn the first cord at one end and
the second cord at both ends. Half an hour later, when the
second cord finishes burning, the first cord has exactly 30
minutes of length left.
Now we can burn the other end of the first cord, and it shall
finish in exactly 15 minutes.
FOLLOW-UP ANSWER:
Break the cord into approximately half, and burn these two
cords from both of their ends. If both these cords finish
burning together, that means exactly 15 minutes have
passed. If any one of these cords finishes first, break the
other cords from approximately the middle, and further burn
all ends of these little cords. Continuing this way theoretically
leads to exactly 15 minutes!
126
KHARAGPUR DATA
ANALYTICS GROUP
127
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
Create a deck of k cards randomly from the original 52-
card deck, (k=10 here) and then turn over the k-card
deck. Goal is achieved!
128
KHARAGPUR DATA
ANALYTICS GROUP
3. Eight Balls
You are given eight balls. They appear identical,
but one is heavier than the rest. You have a pair
of balancing scales. How do you find the heavy
ball?
129
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
130
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
131
KHARAGPUR DATA
ANALYTICS GROUP
There are 25 horses among which you need to find out the
fastest 3 horses. You can conduct a race among at most 5 to
find out their relative speed. At no point, you can find out the
actual speed of the horse in a race. Find out the minimum no.
of races which are required to get the top 3 horses.
132
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
First, we group the horses into groups of 5 and race each group
on the race course. This gives us 5 races (see image below).
133
KHARAGPUR DATA
ANALYTICS GROUP
134
KHARAGPUR DATA
ANALYTICS GROUP
135
KHARAGPUR DATA
ANALYTICS GROUP
5. Mislabelled Jars
There are 3 jars, namely, A, B, C. All of
them are mislabeled. Following are the
labels of each of the jars:
A: Candies
B: Sweets
C: Candies and Sweets (mixed in a
random proportion)
You can put your hand in a jar and pick
only one eatable at a time. Tell the
minimum number of eatable(s) that
has/have to be picked in order to label the
jars correctly.
136
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
137
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
138
KHARAGPUR DATA
ANALYTICS GROUP
6. 12 Marbles
You are given a set of scales and 12 marbles. The
scales are of the old balance variety. That is, a
small dish hangs from each end of a rod that is
balanced in the middle. The device enables you to
conclude either that the contents of the dishes
weigh the same or that the dish that falls lower has
heavier contents than the other. The 12 marbles
appear to be identical. In fact, all of them are
identical, and one is of a different weight. Your
task is to identify the unusual marble and discard
it. You are allowed to use the scales three times if
you wish, but no more. Note that the unusual
marble may be heavier than the others, or it may
be lighter; you do not know which. You are asked
to both identify it and determine whether it is
heavy or light.
139
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
140
KHARAGPUR DATA
ANALYTICS GROUP
7. Which Switch
141
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
142
KHARAGPUR DATA
ANALYTICS GROUP
8. Shooting in
Circles
1024 pirates stand in a circle. They start
shooting alternately in a cycle such that
the 1st pirate shoots the 2nd, the 3rd
shoots the 4th, and so on. The pirates
who got shot are eliminated from the
game. They continue in circles, shooting
the next standing pirate, until only one
pirate is left. Which position should
someone stand to survive?
143
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
144
KHARAGPUR DATA
ANALYTICS GROUP
9. Chocolate Bar
145
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
For a chocolate of size mxn, we need
mn - 1 steps. By breaking an existing
piece horizontally or vertically, we merely
increase the total number of pieces by
one. Starting from 1 piece, we need mn -
1 steps to get to mn pieces. Another way
to reach the same conclusion is to focus
on "bottom left corners of squares": Keep
the chocolate rectangle in front of you and
start drawing lines corresponding to cuts.
Each cut "exposes" one new bottom left
corner of some square. Initially, only one
square's bottom left corner is exposed. In
the end, all mn squares have their bottom
left corners exposed.
146
KHARAGPUR DATA
ANALYTICS GROUP
10 .Clock's Perfect
Alignment
147
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
148
KHARAGPUR DATA
ANALYTICS GROUP
149
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
150
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
151
KHARAGPUR DATA
ANALYTICS GROUP
152
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
153
KHARAGPUR DATA
ANALYTICS GROUP
154
KHARAGPUR DATA
ANALYTICS GROUP
155
KHARAGPUR DATA
ANALYTICS GROUP
156
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
157
KHARAGPUR DATA
ANALYTICS GROUP
MATHS
PUZZLES
KHARAGPUR DATA
ANALYTICS GROUP
158
KHARAGPUR DATA
ANALYTICS GROUP
Answer : Equal
Solution :
159
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
160
KHARAGPUR DATA
ANALYTICS GROUP
161
KHARAGPUR DATA
ANALYTICS GROUP
162
KHARAGPUR DATA
ANALYTICS GROUP
17.
163
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
164
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
165
KHARAGPUR DATA
ANALYTICS GROUP
166
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
167
KHARAGPUR DATA
ANALYTICS GROUP
168
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
169
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
170
KHARAGPUR DATA
ANALYTICS GROUP
20.Primes
Why it is that if p is a prime
number greater than 3, then p^2
- 1 is always divisible by 24 with
no remainder.
171
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
172
KHARAGPUR DATA
ANALYTICS GROUP
173
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
174
KHARAGPUR DATA
ANALYTICS GROUP
22. Multilingual
A group has 70 members. For any two
members X and Y .There is a
language that X speaks but Y does not,
and there is a language that Y speaks
but X does not. At least how many
different languages are spoken by this
group?
175
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 8
Solution :
176
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
177
KHARAGPUR DATA
ANALYTICS GROUP
23. Relative
Distance
Two trains are on same track and they are
coming toward each other. The speed of the
first train is 50 km/h and the speed of the
second train is 70 km/h. A bee starts flying
between the trains when the distance
between two trains is 100 km. The bee first
flies from first train to second train. Once it
reaches the second train, it immediately flies
back to the first train … and so on until
trains collide. Calculate the total distance
travelled by the bee. Speed of bee is 80
km/h.
177
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 66.7 KM
Solution :
178
KHARAGPUR DATA
ANALYTICS GROUP
179
KHARAGPUR DATA
ANALYTICS GROUP
Answer :
Solution :
180
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
181
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
182
KHARAGPUR DATA
ANALYTICS GROUP
25. Derangement
183
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 9
Solution :
184
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
185
KHARAGPUR DATA
ANALYTICS GROUP
186
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
187
KHARAGPUR DATA
ANALYTICS GROUP
STRATEGY
KHARAGPUR DATA
ANALYTICS GROUP
188
KHARAGPUR DATA
ANALYTICS GROUP
Answer : (98, 0, 1, 0, 1)
Solution :
189
KHARAGPUR DATA
ANALYTICS GROUP
Two Eggs
An Egg breaks only if dropped from above a
threshold floor, within a 100-story building.
Every time you drop an egg, it is counted as an
attempt. You are given 2 eggs to deduce the
threshold floor, with a minimum number of
attempts in the worst case!
190
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 14
Solution :
191
KHARAGPUR DATA
ANALYTICS GROUP
192
KHARAGPUR DATA
ANALYTICS GROUP
Answer : Survives
Solution :
If there is 1 tiger, then it will eat the sheep because
he does not need to worry about being eaten. Sheep
will not survive. If there are 2 tigers, both of them
knows that if one eats the Sheep, the other tiger will
eat him. So, the sheep will survive.
If there are 3 tigers, then they each of them knows
that if one tiger eats up the sheep, then Iceland will
be left with 1 sheep and 2 tigers and as shown in the
previous case, the sheep will survive. Hence each
tiger will try to eat up the sheep. The sheep will not
survive.
If there are 4 tigers, then the sheep will survive.
And so on….
So, If there are even number of tigers the sheep will
survive, else it will die. Hence, if there are 100
tigers the sheep will survive.
193
KHARAGPUR DATA
ANALYTICS GROUP
194
KHARAGPUR DATA
ANALYTICS GROUP
Answer : Yes
Solution :
This is a classic problem involving geometry and relative speed, often referred
to as the "Duck and Fox Problem". Here's the approach:
195
KHARAGPUR DATA
ANALYTICS GROUP
Solution contd. :
3. Wait for the Right Moment: The duck continues
swimming in its smaller circle until the fox is straight
across the lake from it. At this point, the duck and fox
are separated by half the circumference of the lake, a
distance that the fox has to cover to reach the duck if
it heads straight for the shore.
196
KHARAGPUR DATA
ANALYTICS GROUP
197
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
198
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
199
KHARAGPUR DATA
ANALYTICS GROUP
35:King's Salary
After the revolution, each of the 66 citizens of a
certain city, including the king, has a salary of 1.
King cannot vote, but has the power to suggest
changes - namely, redistribution of salaries. Each
person's salary must be a whole number of dollars,
and the salaries must sum to 66. He suggests a new
salary plan for every person including himself in
front of the city. Citizens are greedy, and vote yes if
their salary is raised, no if decreased, and don't vote
otherwise. The suggested plan will be implemented if
the number of "yes" votes are more than "no" votes.
The king is both, selfish and clever. He proposes a
series of such plans. What is the maximum salary he
can obtain for himself?
200
KHARAGPUR DATA
ANALYTICS GROUP
Answer : $6
Solution :
The king begins by proposing that 33 citizens have
their salaries doubled to $2, at the expense of the
remaining 33 (himself included). Next, he increases
the salaries of 17 of the 33 salaried voters (to $3 or
$4) while reducing the remaining 16 to $0. In
successive turns, the number of salaried voters falls
to 9, 5,
3, and 2. Finally, the king bribes three paupers with
$1 each to help him turn over the two big salaries
to himself, thus finishing with a royal salary of $63.
It is not difficult to see that the king can do no better
at any stage than to reduce the number of
salaried voters to just over half the previous number;
in particular, he can never achieve a unique salaried
voter. Thus, he can do no better than $6
201
KHARAGPUR DATA
ANALYTICS GROUP
202
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 99
Solution :
We can number prisoners from 100 to 1, with 100
being the last person in the line. Prisoners agree that
if the 100th100th person will say "red" if there are
an even number of "red" hats visible on the prisoners
1 to 99, and blue otherwise. This way, prisoner
number 99 can look ahead and count the red hats. if
they add up to an even number and the number 100
said “red”, then 99 must be wearing a blue hat. if
they add up to an even number and number 100 said
“blue”, signaling an odd number of red hats, number
99 must also be wearing a red hat.
Similarly, number 98 knows that 99 said the correct
hat, and so uses that information along with the 97
hats in the front to figure out their own hat's color.
This can continue till the first prisoner.
This strategy will free 99 prisoners. But the
100th100th prisoner has to rely on luck and has a
50:50 chance of being right.
203
KHARAGPUR DATA
ANALYTICS GROUP
204
KHARAGPUR DATA
ANALYTICS GROUP
Answer : 833
Solution :
205
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
206
KHARAGPUR DATA
ANALYTICS GROUP
Solution(Conti) :
207
KHARAGPUR DATA
ANALYTICS GROUP
208
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
209
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
210
KHARAGPUR DATA
ANALYTICS GROUP
Solution:
211
KHARAGPUR DATA
ANALYTICS GROUP
212
KHARAGPUR DATA
ANALYTICS GROUP
Answer : Blue
Solution :
213
KHARAGPUR DATA
ANALYTICS GROUP
39.
Kings Conundrum
214
KHARAGPUR DATA
ANALYTICS GROUP
Solution :
215