GeekInterview.com
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

Showing Answers 1 - 7 of 7 Answers
anuradha_anu

Answered On : Nov 25th, 2010

View all answers by anuradha_anu

max=18
min=9

  
Login to rate this answer.
anuradha_anu

Answered On : Nov 25th, 2010

View all answers by anuradha_anu

max=27
min=9

Yes  1 User has rated as useful.
  
Login to rate this answer.
ravinath1987

Answered On : Nov 28th, 2010

View all answers by ravinath1987

max=27


min=0

  
Login to rate this answer.
Siddhu19

Answered On : Dec 7th, 2010

View all answers by Siddhu19

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

Yes  1 User has rated as useful.
  
Login to rate this answer.
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

  
Login to rate this answer.
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=="+")
then answer= X+11
if(operator=="-")
then answer= X+2
if(operator=="*")
then answer= X+18.

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

  
Login to rate this answer.

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

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.