Series: Subject: Topic:
Question: 64 of 375

# Solve Min-Max Game

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, What would be the value of N at the end of the game?
This question is related to TCS Interview
Asked by: AMARJUKUNTLA | Member Since Nov-2010 | Asked on: Nov 24th, 2010

View all questions by AMARJUKUNTLA

Answered On : Nov 25th, 2010

max=18
min=9

Answered On : Nov 25th, 2010

max=27
min=9

1 User has rated as useful.

ravinath1987

Answered On : Nov 28th, 2010

max=27

min=0

Siddhu19

Answered On : Dec 7th, 2010

Since Alok is choosing the numbers he chooses for the maximum sum.

Those numbers would be 9, 9, 0

N = 9 + 9 + 9 - 0 = 27   --> maximum

but for least value with those numbers

N = 9 + 9 + 0 - 9 = 9  --> Minimum

1 User has rated as useful.

samir

Answered On : Oct 14th, 2011

Alok and Bhanu play the the following min-max game.Given the expression N=ARE VARIAB 19+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.towords this end,Alok choose a single digit number and Bhanu substitutes this for a variable of her choice(X,Y,Z).Alok then choose the next value and Bhanu, the variable to substitute the value .Finally Alok proposes the value for the remaining variables. Assuming both play to their optimal strategies ,the value of N at the end of the game would be

Avinash Chourasiya

Answered On : Nov 12th, 2011

It is question of Artificial Intelligence, and solved by various modular steps. But the simplest logic for answering these type of questions is

If ((X) (operator)(expression))
then if(operator=="+")
if(operator=="-")
if(operator=="*")

It is 100% sure answer because I am an IT student so AI is my subject plus I have cracked the TCS .

ganta.jyostna

Answered On : Dec 23rd, 2011

For these type of ques, remember dis thumb rule..
X*Y-Z=18
X+Y-Z=11
X-Y-Z=2

so
N = 9 + X + Y - Z
N= 9+11=20