1. there are n locks and n matching keys if all the locks and keys are to be perfectly matched find the maximum number of trials required to open a lock?

Dear Student,
Please find below the solution to the asked query:

For the first key, maximum number of trials needed is n. For second key, it will be n  1 .In general, for rth key, maximum number of trials needed are (n  r + 1), then maximum numberof trials are T=n+n-1+n-2+.......+1Sum of n terms of an A.P.=n2First Term+Last TermT=n2n+1T=nn+12=n+1C2Hence maximum number of trials needed are n+1C2.

Hope this information will clear your doubts about this topic.

If you have any doubts just ask here on the ask and answer forum and our experts will try to help you out as soon as possible.
Regards

  • 9
What are you looking for?