Alok and Bhanu play the following min-max game. Given the
expression
N = 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
Answer Posted / deepak
since ALOK is selecting the values for X,Y,Z and as he is
trying to obtain a max value for N he needs to select 9,0,0
for X,Y,Z respectively since,N=9-0-0=9(max case)
But as BHANU wants a minimum value for N he will most likely
will want to obtain a negative value for N,He would hve chosen
values for X,Y,Z as 0,9,9..since N=0-9-9=-18(min case)
NOW, ALOK is chosing values n BHANU is assigning them
we will obtain -9
since, N=0-9-0=-9
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Sister's age is twice than that of the brother. If the brother's age is six, what is the sister's age after two years?
f(X)= 2X-1 + f(X-1) if X is not equal to zero and if f(X=0)=0, If f(X)=4f(X-1) then the value of X=?
1,40,00,000 pencils are put up straight. all the pencils are of length range 3 to 6 inches. 80% of the pencils have average of five inches. so the find out the total length spanned by the penciles.
A boy scores 9 marks more than his friend in an exam and has 56% marks of the total of their marks. Calculate the marks scored by each of them.
A son and father goes for boating in river upstream . After rowing for 1 mile son notices the hat of his father falling in the river. After 5min. he tells his father that his hat has fallen. So they turn around and are able to pick the hat at the point from where they began boating after 5 min.Tell the speed of river.
low temperature at the night in a city is 1/3 more than ½ hinge as higher temperature in a day. sum of the low temp and higherst temp is 100C. then what is the low temperature
x + 4 y relation between x and y is x/2y = 3/2 ie x = 3y find the x -2y ratio
Which of the following fractions is less than 1/3
A person left house with speed 40 mile per hour his wife after 30 minutes left to catch him at a speed of 50. In what time she will catch?
The cost of an item is Rs 12.60. If the profit is 10% over selling price what is the selling price ?
Ram, Shyam and Gumnaam are friends.Ram is a widower and lives alone and his sister takes care of him. Shyam is a bachelor and his niece cooks his food and looks after his house. Gumnaam is married to Gita and lives in large house in the same town. Gita gives the idea that all of them could stay together in the house and share monthly expenses equally. During their first month of living together, each person contributed Rs.25. At the end of the month, it was found that Rs 92 was the expense so the remaining amount was distributed equally among everyone. The distribution was such that everyone received a whole number of Rupees. How much did each person receive?
Now i am doing RHCE (Red Hat Certified Engineer). Please give some interview questions of linux.
At six o'clock the wall clock struck 6 times . Checking with my watch , I noticed that the time between the first & last strokes was 30 seconds . How long will the clock take to stike 12 at mid night
There are following denominations of money: 1, 2, 5, 10, 20, 50, and 100 paise. Alex has as twice mony as David, who has as twice as Bindya, who again has as twice money as Charles. Each has two coins in hand. Which coins Bindya has?
An array was given and we were required to write a function : int CalculateThirdHighest(int a[ ]) : which calculates the third highest number in the array. While coding in C remember to calculate the length of array using formulae length of array=sizeof(a)/sizeof(int). Because the number of elements of array were not passed as argument. i want a solution in C/C++ language