生日放假:最大化期望工日
Birthday Holidays
题目详情
Labor laws in Erewhon require factory owners to give every worker a holiday whenever one of them has a birthday and to hire without discrimination on grounds of birthdays. Except for these holidays they work a 365- day year. The owners want to maximize the expected total number of mandays worked per year in a factory. How many workers do factories have in Erewhon?
解析
设工厂雇佣 人,生日独立均匀分布在 365 天。
某天为“工作日”当且仅当没人生日在这天,其概率为
因此期望工作天数为 ,期望“工日数”(man-days)为
忽略整数约束,把 ,最大化 :
由于 ,得到
取整数时最优在 364 或 365 附近。