One of the most appropriate suspension issues is the selection of secretaries, but how should we decide the number to postpone?
Description of Wikipedia is difficult for me.
Additional
I was able to get the best value using the method you answered.
However, there were times when the price was not good, so I looked it up again and found out that
It seems that there is a way to maximize expectations for similar problems.
I looked at the formula, but in the end, I couldn't understand the specific calculation method, so I couldn't check it.
I don't mind a small number, so please tell me how to calculate it.
Formula I didn't know how to calculate
If the relative ranking of the i-th interview is or higher, we will postpone it unless we are likely to adopt it
Algorithmic Dictionary Kyoritsu Publishing (1994/08) Page 646
If the number of applicants is n and large enough
If the number of people to send off is set to (n/e), the probability of hiring the best secretary is greatest.
The probability is 1/e.
If you set the number of people to (n/e), the probability of hiring the best secretary is greatest.
The probability is 1/e.
That's the solution to the secretarial selection problem.
The e used here is called the Napier number, Euler number, natural logarithmic bottom, etc., and its value is 2.718281828459045... (abbreviated below). e is an irrational number, just like the circumference, so the number below the decimal point continues indefinitely.
The reason for this result is explained in Wikipedia, but I think it is difficult to understand without knowledge of probability and calculus.However, you can easily calculate how many people you need to send off with a calculator.
For example, if there are 100 applicants, the number of applicants to be sent is 100/2.71824 = 36.7885 ... so 37 people (round off as it is not divisible). Then, you can choose someone better than any of the 37 people you saw off.
It's practically practical to say, "If you see more than one-third of the applicants off and the best person you've seen off, you'll choose that person."
584 PHP ssh2_scp_send fails to send files as intended
578 Understanding How to Configure Google API Key
623 Uncaught (inpromise) Error on Electron: An object could not be cloned
922 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
576 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.