Secretary Problem Calculator
Free online secretary problem calculator. Enter your values and get instant results with the formula, step-by-step working, a worked example and FAQs — everything runs locally in your browser on Calcton, no signup required.
中文版:秘书问题在线计算器
原理:依次面试 n 个候选只能当场决定。最优策略是先观察前 k 个建立基准,之后选择第一个超过基准者。成功率 P(n,k) = (k/n)·(H(n−1) − H(k−1)),用调和数精确计算。
步骤:输入 n,工具对每个 k 枚举 P(n,k) 并取最大值,给出 k* 与成功率。
示例:n = 100 时 k* = 37、成功率 0.371042778713;n = 10 时 k* = 3、成功率 0.398690476190。
注意事项:当 n → ∞ 时 k* → n/e ≈ 0.3679n、成功率 → 1/e ≈ 0.3679——这就是「37% 法则」;若允许事后召回或目标改为最大化期望名次,策略会不同。
参考值:P(100,37) = 0.371042778713;1/e = 0.367879441171;100/e = 36.787944117144。
How to use the Secretary Problem Calculator
- Fill in the inputs with your own numbers — every field shows what it expects.
- The result updates instantly as you type; no "Calculate" click needed.
- Read the result card for the main figure, the step-by-step formula, and practical notes.
Frequently asked questions
Is the Secretary Problem Calculator free?
Yes — all math calculators on Calcton are free, with no sign-up required. Your inputs are processed in your browser and never sent to a server.
Is there a Chinese version of this tool?
Yes. Use the Chinese version link above — it is the same calculator with the interface in Simplified Chinese.
References
Formulas and benchmarks used by this calculator follow these published sources.
KevinContent LeadCalcton Editorial Team · Last updated 2026-10-01
Kevin maintains Calcton's formula verification and content: every calculator cites the standard it implements, worked examples are recomputed programmatically, and health benchmarks follow WHO and international guidelines.
Related calculators
More in this category: Math calculators
About math calculators
Free online math calculators for algebra, statistics, number theory and everyday arithmetic — from quadratic equations and matrices to percentages, fractions and prime factorization, each with step-by-step formulas.