# PTAS

**多项式时间近似方案（PTAS）** 是一类用于NP难优化问题的近似算法：对于任意固定精度参数 ε > 0，它返回一个值在最优值 1 + ε 倍以内的解，并且对于该固定 ε，运行时间是输入规模的多项式<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup><sup> • </sup><sup>[2](https://wuecampus.uni-wuerzburg.de/moodle/mod/resource/view.php?id=1960474)</sup>。

| 关键事实 | 细节 |
|---|---|
| 保证 | 对每个常数 ε > 0，在关于 n 的多项式时间内得到 (1+ε)-近似，其中多项式次数可依赖于该固定 ε<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> |
| 允许的运行时间 | n^{f(1/ε)} 或 f(1/ε)·n^{O(1)} 均符合；指数或对 ε 的依赖可以任意差<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup><sup> • </sup><sup>[3](https://cs.brown.edu/media/filer_public/35/ac/35acafd4-f83c-4e64-8c57-0dda602f1051/beckeramariah.pdf)</sup> |
| 类层级 | FPTAS ⊆ PTAS ⊆ APX ⊆ NPO，当且仅当 P ≠ NP 时包含严格<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> |
| EPTAS | 运行时间 f(1/ε)·n^c，c 与 ε 无关<sup>[3](https://cs.brown.edu/media/filer_public/35/ac/35acafd4-f83c-4e64-8c57-0dda602f1051/beckeramariah.pdf)</sup> |
| FPTAS | 运行时间关于 n 和 1/ε 均为多项式<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> |
| 里程碑结果 | 阿罗拉（Arora，《ACM杂志》1998）和米切尔（Mitchell，《SIAM计算杂志》1999）给出欧几里得TSP（Euclidean TSP）的首个PTAS<sup>[4](https://arxiv.org/abs/2411.02585)</sup> |
| 困难性 | 除非 P = NP，MAX-3SAT没有PTAS，这是PCP定理（PCP theorem）的推论<sup>[5](https://old.corelab.ntua.gr/courses/struct-comp/old/1112/material/PCPs-HoA-UGC_Haris.pdf)</sup> |

## 定义

设 Π 为优化问题。算法 A 是PTAS，若对每个输入 (I, ε) 且 ε > 0，它输出可行解 s，使得对最小化问题有 obj_Π(I, s) ≤ (1+ε)·OPT，或对最大化问题有 obj_Π(I, s) ≥ (1−ε)·OPT，并且对每个固定 ε，运行时间关于 |I| 为多项式<sup>[2](https://wuecampus.uni-wuerzburg.de/moodle/mod/resource/view.php?id=1960474)</sup>。等价地，在NPO框架中，性能比 R(x, T(x)) 定义为 m(x,y)/opt(x) 与 opt(x)/m(x,y) 中的较大者，至多为 1 + ε<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup>。

精度参数必须是与输入规模无关的常数。如果允许 ε 依赖 n，例如 ε = 1/n，那么算法很可能不会在多项式时间内运行<sup>[6](https://pages.cs.wisc.edu/~shuchi/courses/880-F19/scribe-notes/lecture2-draft.pdf)</sup>。

## 方案层级

定义不限制运行时间如何依赖 ε，只限制它如何依赖 n。运行时间为 n^{1/ε} 或 2^{1/ε} n^4 的方案是PTAS，但当 ε 接近0时，计算在实际中可能不可行<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup><sup> • </sup><sup>[2](https://wuecampus.uni-wuerzburg.de/moodle/mod/resource/view.php?id=1960474)</sup>。这引出两个更强的概念：

- **EPTAS（有效PTAS）。** 运行时间 O(f(ε)·n^c)，其中指数 c 不依赖 ε<sup>[3](https://cs.brown.edu/media/filer_public/35/ac/35acafd4-f83c-4e64-8c57-0dda602f1051/beckeramariah.pdf)</sup>。对 ε 的依赖与多项式部分分离，这一点对固定参数可处理性很重要：一个优化问题的EPTAS会为其参数化决策版本产生一个固定参数可处理算法，而其逆否命题是证明不存在EPTAS的标准途径<sup>[7](https://ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/b145855395face57d2bdd372c51f91cd_4q-jmGrmxKs.pdf)</sup>。
- **FPTAS（完全多项式时间近似方案）。** 运行时间关于 n 和 1/ε 均为多项式，例如 O(n^3/ε^2)<sup>[2](https://wuecampus.uni-wuerzburg.de/moodle/mod/resource/view.php?id=1960474)</sup><sup> • </sup><sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup>。每个FPTAS也是EPTAS<sup>[7](https://ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/b145855395face57d2bdd372c51f91cd_4q-jmGrmxKs.pdf)</sup>。

包含关系 [FPTAS](https://www.edgepedia.org/zh/fptas) ⊆ PTAS ⊆ APX ⊆ NPO 成立，并且当且仅当 P ≠ NP 时这些包含是严格的<sup>[1](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup>。在NP难近似问题中，FPTAS是所能期望的最好结果<sup>[6](https://pages.cs.wisc.edu/~shuchi/courses/880-F19/scribe-notes/lecture2-draft.pdf)</sup>。

## 什么限制了PTAS

PCP定理蕴含存在 ε_1 > 0，使得除非 P = NP，MAX-3SAT不存在多项式时间 (1−ε_1)-近似，这直接排除了该问题的PTAS<sup>[5](https://old.corelab.ntua.gr/courses/struct-comp/old/1112/material/PCPs-HoA-UGC_Haris.pdf)</sup>。更一般地，除非 P = NP，任何APX完全问题都不能有PTAS，任何MAX-SNP完全问题也不能有，这涵盖MAX-3SAT、有界度图上的最大独立集和最大割<sup>[8](https://link.springer.com/article/10.1007/s00224-011-9366-z)</sup>。

另一个障碍把PTAS与FPTAS区分开来。强NP难问题既不允许FPTAS，也不允许伪多项式精确算法<sup>[9](https://opencourse.inf.ed.ac.uk/sites/default/files/2024-03/lecture_28_-_fully_polynomial-time_approximation_schemes.pdf)</sup>。对于装箱问题（bin packing），从划分问题（Partition）的一个简单归约表明，判定一组物品能否装入两个箱子是NP难的，因此不可能有优于3/2的近似；假设 P ≠ NP，对于此类强NP难问题，PTAS是最佳可达到的结果<sup>[10](https://www.sciencedirect.com/topics/computer-science/time-approximation-scheme)</sup>。

## 例子

**背包问题（Knapsack）。** 一个简单的PTAS枚举至多 k 个物品的所有子集，共 \( O(kn^{k}) \) 个，把每个子集放入背包，并贪心地填充剩余容量；结果是在 \( O(kn^{k+1}) \) 时间内得到 (1 + 1/k)-近似，对固定 k 关于 n 是多项式，但关于 1/ε 不是<sup>[9](https://opencourse.inf.ed.ac.uk/sites/default/files/2024-03/lecture_28_-_fully_polynomial-time_approximation_schemes.pdf)</sup>。背包问题不是强NP难，事实上它允许FPTAS<sup>[7](https://ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/b145855395face57d2bdd372c51f91cd_4q-jmGrmxKs.pdf)</sup>。

**欧几里得TSP。** 1996年，普林斯顿大学（Princeton University）计算机科学教授[桑吉夫·阿罗拉](https://www.edgepedia.org/zh/sanjeev-arora-computer-scientist)（Sanjeev Arora）和石溪大学（Stony Brook University）的约瑟夫·S. B. 米切尔（Joseph S. B. Mitchell）独立地为一类平面上的几何优化问题给出了PTAS，包括TSP、斯坦纳树（Steiner tree）和k-MST<sup>[11](https://www.sciencedirect.com/topics/mathematics/network-optimization)</sup>。阿罗拉的期刊版本给出了固定维数欧几里得TSP的一个方案：在平面中，随机化版本在 O(n (log n)^{O(c)}) 时间内找到 (1 + 1/c)-近似，对固定 c 关于 n 近乎线性，改进了克里斯托菲德斯（Christofides）此前最好的3/2-近似<sup>[12](https://cir.nii.ac.jp/crid/1360292619592901504)</sup>。米切尔的方法把平面中任意多边形剖分转换为一种“m-guillotine”剖分，其长度至多为原长度的 (1 + c/m) 倍，然后用动态规划搜索具有递归结构的断头台式剖分（guillotine subdivision）<sup>[13](https://epubs.siam.org/doi/abs/10.1137/S0097539796309764)</sup>。这些被视为突破性工作，是该问题的首批PTAS<sup>[4](https://arxiv.org/abs/2411.02585)</sup>。

**稠密实例（dense instances）。** 阿罗拉、卡格尔（Karger）和卡尔平斯基（Karpinski）给出了一个统一框架，为许多NP难问题的稠密实例提供PTAS，包括最大割（maximum cut）、图二分（graph bisection）、最小k路割（minimum k-way cut）和最大3可满足性（maximum 3-satisfiability）<sup>[14](https://www.sciencedirect.com/science/article/pii/S0022000098916051)</sup>。

## 运行时间作为活跃前沿

一旦PTAS存在，研究就转向如何收紧对 ε 的依赖。对于欧几里得TSP，拉奥（Rao）和史密斯（Smith）（STOC 1998）给出了随机化 (1/ε)^{O(1/ε^{d−1})}·n log n 方案；巴尔塔尔（Bartal）和戈特利布（Gottlieb）（FOCS 2013）达到 2^{(1/ε)^{O(d)}} n，关于 n 线性；基什法卢迪-巴克（Kisfaludi-Bak）、内德洛夫（Nederlof）和文格日茨基（Węgrzycki）（FOCS 2021）达到 2^{O(1/ε^{d−1})} n log n，默姆克（Mömke）和周（Zhou）（2024）用随机化 2^{O(1/ε^{d−1})} n 时间方案回答了他们的开放问题，实现了对 ε 的Gap-ETH紧依赖<sup>[4](https://arxiv.org/abs/2411.02585)</sup>。PTAS仍在为特定问题继续发展，例如平面图和增长有界图（growth-bounded graphs）上的最小安全支配集（secure dominating set）<sup>[15](https://www.sciencedirect.com/science/article/abs/pii/S0166218X24002774)</sup>，以及长度相近的平行线段上带邻域的TSP（TSP with neighborhoods），运行时间为 n^{O(λ/ε^3)}<sup>[16](https://arxiv.org/abs/2504.02190)</sup>。

## References

1. [Approximate algorithms and approximation classes, Viggo Kann's compendium](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)
2. [Approximation Schemes, lecture notes, Universität Würzburg](https://wuecampus.uni-wuerzburg.de/moodle/mod/resource/view.php?id=1960474)
3. [A polynomial-time approximation scheme (PTAS), course notes, Brown University](https://cs.brown.edu/media/filer_public/35/ac/35acafd4-f83c-4e64-8c57-0dda602f1051/beckeramariah.pdf)
4. [Mömke & Zhou (2024). A Linear Time Gap-ETH-Tight Approximation Scheme for Euclidean TSP. arXiv:2411.02585](https://arxiv.org/abs/2411.02585)
5. [PCPs, Hardness of Approximation and the Unique Games Conjecture, NTUA course notes](https://old.corelab.ntua.gr/courses/struct-comp/old/1112/material/PCPs-HoA-UGC_Haris.pdf)
6. [CS880: Approximation and Online Algorithms, lecture 2 notes, UW–Madison](https://pages.cs.wisc.edu/~shuchi/courses/880-F19/scribe-notes/lecture2-draft.pdf)
7. [MIT 6.046J Design and Analysis of Algorithms, Lecture 18 notes](https://ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/b145855395face57d2bdd372c51f91cd_4q-jmGrmxKs.pdf)
8. [Structure of Polynomial-Time Approximation, Theory of Computing Systems](https://link.springer.com/article/10.1007/s00224-011-9366-z)
9. [Introduction to Algorithms, Lecture 28: (Fully) Polynomial-Time Approximation Schemes, University of Edinburgh](https://opencourse.inf.ed.ac.uk/sites/default/files/2024-03/lecture_28_-_fully_polynomial-time_approximation_schemes.pdf)
10. [Time Approximation Scheme, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/time-approximation-scheme)
11. [Network Optimization, ScienceDirect Topics](https://www.sciencedirect.com/topics/mathematics/network-optimization)
12. [Arora (1998). Polynomial time approximation schemes for Euclidean traveling salesman and other geometric problems. Journal of the ACM 45(5), 753–782](https://cir.nii.ac.jp/crid/1360292619592901504)
13. [Mitchell (1999). Guillotine Subdivisions Approximate Polygonal Subdivisions. SIAM Journal on Computing 28(4), 1298–1309](https://epubs.siam.org/doi/abs/10.1137/S0097539796309764)
14. [Arora, Karger & Karpinski (1999). Polynomial Time Approximation Schemes for Dense Instances of NP-Hard Problems. Journal of Computer and System Sciences 58(1), 193–210](https://www.sciencedirect.com/science/article/pii/S0022000098916051)
15. [PTASs for secure dominating set in planar graphs and growth-bounded graphs, Discrete Applied Mathematics](https://www.sciencedirect.com/science/article/abs/pii/S0166218X24002774)
16. [A PTAS for Travelling Salesman Problem with Neighbourhoods Over Parallel Line Segments of Similar Length. arXiv:2504.02190](https://arxiv.org/abs/2504.02190)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Computational complexity › Complexity of database and optimization problems

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/ptas

English original: https://www.edgepedia.org/ptas
