# FPTAS

**完全多项式时间近似方案（FPTAS）** 是一类用于优化问题的近似算法族，其中每个算法接受一个精度参数 ε，并返回一个目标值至少为最优值 (1 − ε) 倍的解，其运行时间同时是输入规模和 1/ε 的多项式。<sup>[1](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)</sup> FPTAS 是标准近似类层级中最强的保证：它将任意好的近似比与仅随所需精度提高而多项式增长的运行时间结合在一起。<sup>[2](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 一族 ε-近似算法 \(\{\mathcal{A}_{\varepsilon}\}_{\varepsilon}\) 构成 FPTAS，当且仅当 \(\mathcal{A}_{\varepsilon}\) 的运行时间是实例编码规模和 \(1/\varepsilon\) 的多项式<sup>[1](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)</sup> |
| 保证（最大化） | 对于编码长度为 n 的实例，算法在多项式时间内运行，并返回一个可行解，其代价满足 \(f_{\mathcal{A}} \ge (1-\varepsilon) \cdot f_{\max}\)<sup>[1](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)</sup> |
| 类层级 | FPTAS ⊆ PTAS ⊆ APX ⊆ NPO，且所有包含关系严格当且仅当 P ≠ NP<sup>[2](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> |
| 障碍 | 强 NP 难问题（满足一个弱的、自然的补充条件）不可能有 FPTAS，除非 P = NP<sup>[3](https://graal.ens-lyon.fr/~lmarchal/scheduling/ptas.pdf)</sup> |
| 经典例子 | 背包近似方案——背包问题的一个 FPTAS，归功于伊瓦拉和金（1975）、萨尼（1976）以及根斯和列夫纳（1979）<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup> |
| 近期例子 | 划分问题的一个确定性 FPTAS，运行时间为 \(\widetilde{O}(n + 1/\varepsilon)\)（2025）<sup>[5](https://arxiv.org/abs/2501.12848)</sup> |

## 定义及其与 PTAS 的关系

对于最优代价为 \( f_{\max} \) 的最大化问题，一个 ε-近似算法在实例编码长度 n 的多项式时间内运行，并返回一个可行解，其代价满足 \( f_{\mathcal{A}} \ge (1-\varepsilon) \cdot f_{\max} \)。一族这样的算法（每个 ε 对应一个）构成 FPTAS，当运行时间是编码规模和 \( 1/\varepsilon \) 的多项式时。<sup>[1](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)</sup> 对于最小化问题，类似的保证以相同形式的因子限制解的代价超出最优值的程度。

与普通**多项式时间近似方案（PTAS）** 的区别完全在于对 ε 的依赖方式。PTAS 只要求对于每个固定的 ε，运行时间是输入规模的多项式，因此诸如 \( 2^{1/(\varepsilon-1)} \cdot p(|x|) \) 或 \( |x|^{1/(\varepsilon-1)} \) 这样的复杂度仍然合格；此时 ε 非常接近 1 的计算在实际中可能不可行。<sup>[2](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> FPTAS 通过使运行时间同时也是 \( 1/\varepsilon \) 的多项式来消除这一漏洞，因此要求更高精度的代价只会适度增长。<sup>[1](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)</sup>

在 NPO 优化问题的类层级中，FPTAS ⊆ PTAS ⊆ APX ⊆ NPO，且这些包含关系严格当且仅当 P ≠ NP。<sup>[2](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> APX 收集的是可在某个常数因子内近似的问题；因此 PTAS 或 FPTAS 问题也是常数因子可近似的，但反之不一定成立。

## 强 NP 难性障碍

否定一个优化问题存在 FPTAS 的主要工具是证明其强 NP 难性。强 NP 难问题，只要满足一个弱的、自然的补充条件，就不可能有 FPTAS，除非 P = NP。<sup>[3](https://graal.ens-lyon.fr/~lmarchal/scheduling/ptas.pdf)</sup> 直觉是：一个对 \( 1/\varepsilon \) 具有多项式依赖的 FPTAS 可以用足够小的 ε 运行，使近似变为精确，从而为强 NP 难问题给出一个多项式时间的精确算法。<sup>[6](https://notes.lukasl.dev/Knowledge/Strong-NP-Hardness-Rules-Out-FPTAS)</sup>

这就是为什么 FPTAS 的结果集中在弱 NP 难问题上，如背包问题和划分类问题——它们的难度依赖于输入中数值的大小——而强 NP 难的装箱和调度变体则改用 PTAS、常数因子算法或启发式方法来处理。<sup>[3](https://graal.ens-lyon.fr/~lmarchal/scheduling/ptas.pdf)</sup><sup> • </sup><sup>[7](https://www.sciencedirect.com/science/article/pii/S1574013716301356)</sup>

## 背包 FPTAS

经典背包问题要求从 n 个物品中选出总利润最大且总重量不超过容量 c 的子集；子集和问题是利润与重量重合的特殊情况。<sup>[8](https://www.sciencedirect.com/science/article/pii/S0377221799002611)</sup> 萨尔塔杰·萨尼是一位当时从事近似算法研究的计算机科学家，于 1975 年在《ACM 杂志》上发表了《0/1 背包问题的近似算法》。<sup>[9](https://dblp.org/rec/journals/jacm/Sahni75.html)</sup><sup> • </sup><sup>[10](https://www.cise.ufl.edu/~sahni/s.htm)</sup> 这一系列工作最终凝结为背包近似方案——一个归功于伊瓦拉和金（1975）、萨尼（1976）以及根斯和列夫纳（1979）的 FPTAS。<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup>

该构造依赖于一种支配关系，与动态规划背包算法中使用的结构相同：在利润和重量两方面都不优于其他解的方案被丢弃，而对利润进行缩放和舍入则削减动态规划的状态空间，使运行时间成为 \( 1/\varepsilon \) 的多项式。<sup>[4](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)</sup> 缩放与舍入结合动态规划仍然是标准的 FPTAS 配方；2024 年针对最短-最长路径问题的一个 FPTAS——其动机来自多域服务功能链编排——正是使用了这些技术。<sup>[11](https://arxiv.org/abs/2404.13488)</sup>

## 已知 FPTAS 的适用范围

除背包问题外，FPTAS 已被开发用于一系列弱 NP 难和结构化问题。对于[划分问题](https://www.edgepedia.org/zh/partition-problem)，2025 年的一篇论文给出了一个运行时间为 \(\widetilde{O}(n + 1/\varepsilon)\) 的确定性 FPTAS；在此工作之前，只有随机算法能达到 \(\widetilde{O}(n + 1/\varepsilon)\)，而最好的确定性算法运行时间为 \(\widetilde{O}(n + 1/\varepsilon^{5/4})\)。<sup>[5](https://arxiv.org/abs/2501.12848)</sup> 其他例子包括：一个基于近似计数背包解技术的确定性 FPTAS，用于以 \( 1 \pm \epsilon \) 的相对误差估计随机变量之和<sup>[12](https://arxiv.org/abs/1303.6071)</sup>；以及一个用于在固定维数多面体中混合整数可行集上最大化有理系数多项式的 FPTAS，该多项式在可行域上非负，其构造基于巴尔维诺克开创的短有理生成函数理论。<sup>[1](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)</sup><sup> • </sup><sup>[13](https://www.math.ucdavis.edu/~deloera/RECENT_WORK/mixed-approximation.pdf)</sup>

对于多维装箱及其推广——它们在调度、路由、资源分配和云计算中的虚拟机放置中有应用——综述文献讨论了近似算法和在线算法，但未报告一般变体的 FPTAS；这些问题是强 NP 难的，因此强 NP 难性障碍适用。<sup>[7](https://www.sciencedirect.com/science/article/pii/S1574013716301356)</sup><sup> • </sup><sup>[3](https://graal.ens-lyon.fr/~lmarchal/scheduling/ptas.pdf)</sup>

## 实际意义

FPTAS 保证之所以有吸引力，是因为两个调节旋钮——实例规模和精度——是解耦的：将输入规模翻倍或要求多一位精度，都只会将运行时间乘以一个有界多项式因子，而非指数因子。定义中对 \( 1/\varepsilon \) 多项式依赖的限制，正是将高精度下可用的方案与 PTAS 区分开来的关键——后者的运行时间虽然对每个固定 ε 是多项式，但当 ε 趋近于 1 时可能表现为 \( 2^{1/(\varepsilon-1)} \)。<sup>[2](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)</sup> 与此同时，强 NP 难性障碍意味着对于许多具有实际重要性的问题——包括一般装箱问题——除非 P = NP，否则不可能存在 FPTAS，因此那里的近似研究以更弱的保证为目标。<sup>[3](https://graal.ens-lyon.fr/~lmarchal/scheduling/ptas.pdf)</sup><sup> • </sup><sup>[7](https://www.sciencedirect.com/science/article/pii/S1574013716301356)</sup>

## References

1. [Hemmecke, Köppe, Lee, Weismantel, "50 Years of Integer Programming" chapter, Definition 15.3 (FPTAS)](https://sites.math.washington.edu/~thomas/teaching/m514_web/50YearsIP.pdf)
2. [Approximate algorithms and approximation classes, The WWW Compendium (KTH)](https://www.csc.kth.se/~viggo/wwwcompendium/node4.html)
3. [Marchal, lecture notes on PTAS, ENS Lyon, Theorem 0.6.2](https://graal.ens-lyon.fr/~lmarchal/scheduling/ptas.pdf)
4. [Papadimitriou–Steiglitz-style combinatorial optimization text, §17.3 A Fully Polynomial Approximation Scheme, LMU Munich](https://www.mathematik.uni-muenchen.de/~kpanagio/KombOpt/book.pdf)
5. [A Note on Deterministic FPTAS for Partition, arXiv:2501.12848](https://arxiv.org/abs/2501.12848)
6. [Strong NP-Hardness Rules Out FPTAS, notes.lukasl.dev](https://notes.lukasl.dev/Knowledge/Strong-NP-Hardness-Rules-Out-FPTAS)
7. [Christensen, Khan, Pokutta, Tetali, "Approximation and online algorithms for multidimensional bin packing: A survey", Computer Science Review 24 (2017)](https://www.sciencedirect.com/science/article/pii/S1574013716301356)
8. [Caprara, Kellerer, Pferschy, "Approximation algorithms for knapsack problems with cardinality constraints", European Journal of Operational Research](https://www.sciencedirect.com/science/article/pii/S0377221799002611)
9. [Sartaj Sahni (1975), "Approximate Algorithms for the 0/1 Knapsack Problem", JACM, dblp record](https://dblp.org/rec/journals/jacm/Sahni75.html)
10. [Sartaj Sahni publication list, University of Florida](https://www.cise.ufl.edu/~sahni/s.htm)
11. [An FPTAS for Shortest-Longest Path Problem, arXiv:2404.13488](https://arxiv.org/abs/2404.13488)
12. [A Fully Polynomial-Time Approximation Scheme for Approximating a Sum of Random Variables, arXiv:1303.6071](https://arxiv.org/abs/1303.6071)
13. [math.ucdavis.edu](https://www.math.ucdavis.edu/~deloera/RECENT_WORK/mixed-approximation.pdf)

---
*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/fptas

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