Break the security

You want to get through a security door, where you have to enter 3 digits as password, where each digit can be any from 0 to 9. The checking mechanism is, however, defective, and so will let you in if any 2 of your digits match with the password's. e.g. if the password is 087 and you enter 057, then you will be let in. You don't have much time and hence want to make as few tries as possible. What is the minimum number of tries in which you can definitely enter, and what are they (you need not give explicitly, if you describe a pattern).



...give your answer with proof.

Replies

  • raj87verma88
    raj87verma88
    Why do you wish to break through a "Security Door"?
  • Kaustubh Katdare
    Kaustubh Katdare
    I knew a method of solving this type of problems. Will have to scratch my skull for this one. Hmm! :neutral:
  • ms_cs
    ms_cs
    Let me know the answer?
  • Yamini L
    Yamini L
    I think answer for this should be 50
  • Saandeep Sreerambatla
    Saandeep Sreerambatla
    Have got two methods of solving and got answers as 50 once and 55 for the next method.

    So waiting what the person asked will tell ..๐Ÿ˜Ž๐Ÿ˜Ž
  • arsh86
    arsh86
    English-Scared
    Have got two methods of solving and got answers as 50 once and 55 for the next method.

    So waiting what the person asked will tell ..๐Ÿ˜Ž๐Ÿ˜Ž

    can u explain both methods???????????
  • Differential
    Differential
    Is the digit matching positional?
    I mean, if pasword is 087, then it won't accept 507. Tough 2 digsits are there, they are at diff positions. RIGHT?
  • Saandeep Sreerambatla
    Saandeep Sreerambatla
    Differential
    Is the digit matching positional?
    I mean, if pasword is 087, then it won't accept 507. Tough 2 digsits are there, they are at diff positions. RIGHT?

    Correct.
    pwd=087 if you give 057 it is correct.
    ๐Ÿ˜Ž
  • Raviteja.g
    Raviteja.g
    yes, if it does not care about positions then the number of tries would be decreased to great extent.
    otherwise it would be critical .
    anyway waiting for the answer........
  • ms_cs
    ms_cs
    ... I like these type of problems...I need to see these type of ...Send the link here or send the book name
  • Differential
    Differential
    I tried to solve this one and got the answer as 91. Am I correct or what?

    ๐Ÿ˜•
  • Raviteja.g
    Raviteja.g
    Differential,
    can you give explanation
    then we can analyze whether you are correct or went wrong anywhere
    ok
  • Raviteja.g
    Raviteja.g
    I tried to solve this one
    where is the explanation boss!
    I think you guessed the answer .
    Am I right Differential!!!?
  • Differential
    Differential
    Raviteja.g
    where is the explanation boss!
    I think you guessed the answer .
    Am I right Differential!!!?
    I have an explanation! I'm waiting to hear if my answer is right or wrong.
    There is no point in telling the explanation if answer is wrong.
  • sarveshgupta
    sarveshgupta
    is the answer 100?
  • Saandeep Sreerambatla
    Saandeep Sreerambatla
    The answer should be either 50 or 55
  • Digs
    Digs
    According to me the answe is 61...i found it out by using a simple mathematical technique..is it right??
  • RajdeepCE
    RajdeepCE
    The number is 99, if it concerns the position. Cause we have to guess 2 number & there are 99 possiblities.
    But if the position is not concerned than the number of tries wilk be decreased. So as per my calculation the number of tries for this method is 55. The explanation for is that for each series e.g. 0-9, 10-19, 20-29,..., 90-99. The combination will decrease one for each series, cause the number is repeated already. That means series will be 0-9, 11-19, 22-29, 33-39,...,99. So the total number of tries will be 55.
    Am I right? I am very keen to know the answer if I am wrong.
  • Differential
    Differential
    Looks like the one who asked the question and knows the real answer is away for long. Let's wait for him.

You are reading an archived discussion.

Related Posts

HI guys, This is for my friend he is a mechanical engineer we studied together. Now he want to go to Singapore for joining MBA. His preferred universities are James...
CEans, So far, we've had lot of discussion on CE projects. The biggest concern everyone has is the number of incomplete projects we have. No one likes that. While successful...
Here is my introduction as per the template set by the forum administrator: Name: Vivek.R Engineering Trade: Computer Science Location: Cochin,Kerala Occupation: Student(Final semester) Hobbies & Interest: Programming, Web surfing,...
i need som project ideas for doing my final year projects..i hav but its not gud to do n my final yr..im doing my electrical and elctronics eng..if u people...
Hi I just got through GATE with 97.2 percentile and 1167 AIR nad 536 score from CS Discipline. I hadn't seriously expected this as I hadn't prepared anything. Now I...