知识卡片
近似比统一最大与最小化
若算法解成本为C、最优成本为C且均为正,近似比要求max(C/C, C*/C)不超过ρ(n)。
最小化看C/C,最大化看C/C;比值至少为1,等于1才保证最优。
这个定义把两类优化问题放在同一尺度。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 第35章 近似算法 · 查看原书依据
We say that an algorithm for a problem has an approximation ratio of ρ(n) if, for any input of size n, the cost C of the solution produced by the algorithm is within a factor of ρ(n) of the cost C* of an optimal solution: If an algorithm achieves an approximation ratio of ρ(n), we call it a ρ(n)-approximation algorithm. The
参考来源
- 位置:《算法导论(第4版)》第35章《近似算法》(OEBPS/chapter035.xhtml,文本字符[0,5000))。
- 结论依据:第35章近似定义、顶点覆盖与满足三角不等式的旅行商算法;图35.1–35.2已核对。
- 原始内容:We say that an algorithm for a problem has an approximation ratio of ρ ( n ) if, for any input of size n , the cost C of the solution produced by the algorithm is within a factor of ρ ( n ) of the cost C * of an optimal solution: If an algorithm achieves an approximation ratio of ρ ( n ), we call it a ρ ( n ) -approximation algorithm . The