知识卡片
集合覆盖贪心有对数界
设非空全集X的最优覆盖用k≥1个子集。
每轮贪心至少覆盖剩余元素的1/k,故i轮后剩余量至多|X|e^(−i/k)。取i=⌊k ln|X|⌋+1便小于1,得到贪心集合数≤k(1+ln|X|);|X|=1时也成立。
原书的⌈ln|X|⌉倍写法漏了小规模边界。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第35章 近似算法 · 查看原书依据
The algorithm stops when Ui = Ø, which means that |Ui| < 1. Thus an upper bound on the number of iterations of the algorithm is the smallest value of i for which |Ui| < 1. Since 1 + x ≤ ex for all real x (see inequality (3.14) on page 66), by letting x = −1/k, we have 1 − 1/k ≤ e−1/k, so that (1 − 1/k)k ≤ (e−1/k)k = 1/e.
参考来源
- 位置:《算法导论(第4版)》第35章《近似算法》(OEBPS/chapter035.xhtml,文本字符[30000,35000))。
- 结论依据:第35.3节证明每轮剩余量至多乘(1−1/k),再用(1−1/k)^i≤e^(−i/k);要严格小于1须取i>k ln|X|,而非仅取i=0(|X|=1时)。
- 原始内容:The algorithm stops when U i = Ø, which means that | U i | < 1. Thus an upper bound on the number of iterations of the algorithm is the smallest value of i for which | U i | < 1. Since 1 + x ≤ e x for all real x (see inequality (3.14) on page 66), by letting x = −1/ k , we have 1 − 1/ k ≤ e −1/ k , so that (1 − 1/ k ) k ≤ ( e −1/ k ) k = 1/ e .