TCS
Company
Alok and Bhanu play the following min-max game. Given the expression
N = 9 + X + Y - Z
Where X, Y and Z are variables representing single digits (0 to 9), Alok would like to maximize N while Bhanu would like to minimize it. Towards this end, Alok chooses a single digit number and Bhanu substitutes this for a variable of her choice (X, Y or Z). Alok then chooses the next value and Bhanu, the variable to substitute the value. Finally Alok proposes the value for the remaining variable.
Assuming both play to their optimal strategies, the value of N at the end of the game would be
27
0.0
20
18
Read Solution (Total 14)
-
- First alok chooses 9 and bhanu plcaes it in Z.
Now the equatin becomes N=X+Y.
So the maximum value that alok can get is
N=9+9 i.e N=18. - 14 years agoHelpfull: Yes(34) No(7)
- ans is 18
there is no condition abt repetition ..
so first alok will choose any from 0 to 9
bhanu will subtitute this number from based ontwo factors
if it is in between 0 to 5 he will add means any x&y,,
if it is in b/w 6to 9 he will subtract...
next choice is bhanu he will choose the no b/w 0 to 9
if it is zero alok subtistute this in place of z only
otherwise he will place in x or y...
last chance is alok so he wiil definitely choose 9..
bcoz it is his option
we can easily say that alok will always choose values like either x=z or y=z
to max value
so the answer is 18. - 14 years agoHelpfull: Yes(22) No(9)
- 9+9+7-5=20
- 14 years agoHelpfull: Yes(11) No(27)
- the basic pattern is x+y-z....then at the end of the game would be 11.....now 9+(expression)=9+11=20............are pagla mukhosto kore fel
- 14 years agoHelpfull: Yes(10) No(5)
- first alok chooses the 9 in order to max the game but banu sub in the var z to min the game so the eqn becomz N = 9+X+Y-9
then now the alok turns to max the game so in order to max the game he chooses 9 for the remain varbls
so ans is 18 - 14 years agoHelpfull: Yes(8) No(3)
- since both of dem play to their optimal strategies, Alok wont choose 9 at the beginning since Bhanu would definitely substitute in z and the value would b minimized he would choose sum value slightly greater than 5 ie. 6 or 7 so v get the answer as 20.
- 12 years agoHelpfull: Yes(6) No(0)
- 18
- 14 years agoHelpfull: Yes(5) No(3)
- 18
- 14 years agoHelpfull: Yes(3) No(2)
- 18
- 14 years agoHelpfull: Yes(2) No(2)
- I think X,Y and Z are diff variables having diff values between 0-9. All can not have same value of 9. Then 19 should be possible.
- 14 years agoHelpfull: Yes(2) No(17)
- why to choose only 7 as the first one??
- 11 years agoHelpfull: Yes(1) No(1)
- 19
- 14 years agoHelpfull: Yes(0) No(18)
- ganesh is right
- 14 years agoHelpfull: Yes(0) No(7)
- N = 9 + X + Y - Z
=9+11
=20 - 10 years agoHelpfull: Yes(0) No(0)
TCS Other Question
The pacelength P is the distance between the rear of two consecutive footprints. For men, the formula, n/P = 144 gives an approximate relationship between n and P where, n = number of steps per minute and P = pacelength in meters. Bernard knows his pacelength is 164cm. The formula applies to Bernard's walking. Calculate Bernard's walking speed in kmph.
36 people {a1, a2,...,a36} meet and shake hands in a circular fashion. In other words, there are totally 36 handshakes involving the pairs, {a1, a2}, {a2, a3},....,{a35, a36}, {a36, a1}. Then size of the smallest set of people such that the rest have shaken hands with at least one person in the set is