概率分析和随机化算法雇佣问题 hire_assistant(n) best = 0 // candidate 0 is a least-qualified dummy candidate for i = 1 to n interview candidate i if candidate i is better than candidate best best = i hire candidate i 被子2024年8月27日大约 6 分钟算法概率随机化算法