# EXPTIME

**EXPTIME**（也写作 EXP）是判定问题的复杂度类：这些问题可由确定性[图灵机](https://www.edgepedia.org/zh/turing-machine)在时间界 \( 2^{n^{k}} \) 内求解，其中 \( k \) 为某个常数，\( n \) 为输入长度；形式化地说，\( \mathrm{EXPTIME} = \bigcup_{k=1}^{\infty} \mathrm{DTIME}[2^{n^{k}}] \)<sup>[1](https://people.cs.umass.edu/~immerman/book/ch0_1_2.pdf)</sup>。它汇集了那些存在算法的判定问题，其运行时间是输入规模的多项式的指数，这一界远高于多项式时间，但对每个输入仍然是有限且可判定的。<sup>[1](https://people.cs.umass.edu/~immerman/book/ch0_1_2.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( \mathrm{EXPTIME} = \bigcup_{k=1}^{\infty} \mathrm{DTIME}[2^{n^{k}}] \)，确定性指数时间<sup>[1](https://people.cs.umass.edu/~immerman/book/ch0_1_2.pdf)</sup> |
| 已知包含关系 | \( \mathrm{P} \subseteq \mathrm{NP} \subseteq \mathrm{PSPACE} \subseteq \mathrm{EXPTIME} \)<sup>[2](https://plato.stanford.edu/entries/computability/)</sup> |
| 已证明的分离 | \( \mathrm{P} \subsetneq \mathrm{EXPTIME} \)，这是该链中唯一已知的真包含，由时间层次定理得出<sup>[2](https://plato.stanford.edu/entries/computability/)</sup><sup> • </sup><sup>[3](https://www.cse.buffalo.edu/~regan/papers/pdf/ALRch27.pdf)</sup> |
| 为何 PSPACE 包含在内 | 运行时间超过指数时间的 PSPACE 机器必然重复某个格局，因而永远循环；所以每个停机的 PSPACE 计算都在指数时间内结束<sup>[2](https://plato.stanford.edu/entries/computability/)</sup> |
| 交替式刻画 | \( \mathrm{ASPACE}[n^{O(1)}] = \mathrm{EXP} \)：交替式图灵机上的多项式空间等于确定性指数时间<sup>[4](https://people.cs.rutgers.edu/~allender/papers/ALR12.pdf)</sup> |
| 典型完全问题 | 广义 \( n \times n \) 国际象棋<sup>[5](https://kubokovac.eu/zlozitost/mat/chessExptime.pdf)</sup>、\( N \times N \) 跳棋<sup>[6](https://epubs.siam.org/doi/abs/10.1137/0213018)</sup>、采用日本劫争规则的围棋<sup>[7](https://ics.uci.edu/~eppstein/cgt/hard.html)</sup>，以及下推系统的 CTL 模型检验<sup>[8](https://www.cse.iitd.ac.in/~fsttcs20/Abstracts/100.html)</sup> |

## 定义与底层模型

该类定义在判定问题之上，也就是二进制串集合之上；\( \mathrm{DTIME}[t(n)] \) 表示可由确定性多带图灵机在长度为 \( n \) 的输入上以 \( O(t(n)) \) 步判定的问题<sup>[1](https://people.cs.umass.edu/~immerman/book/ch0_1_2.pdf)</sup>。《[斯坦福哲学百科全书](https://www.edgepedia.org/zh/stanford-encyclopedia-of-philosophy)》在讨论计算复杂性时，以 EXP 为名引入同一个类，写作 \( \bigcup_{k \in \mathbb{N}} \mathrm{TIME}(2^{n^{k}}) \)，并与 P、NP 和 PSPACE 并列；它指出，这类定义中使用的时间界限于时间可构造函数，其中包括 \( \log(n) \)、\( n^{k} \)、\( 2^{n} \) 和 \( n! \)<sup>[9](https://plato.stanford.edu/archives/sum2024/entries/computational-complexity/)</sup>。由于一台在时间 \( t(n) \) 内运行的机器不可能访问超过 \( t(n) \) 个纸带单元，每个时间受限类都包含于相应的空间受限类<sup>[10](https://planetmath.org/complexityclass)</sup>。

该定义在合理的机器模型之间是稳健的：复杂性理论习惯上将经典类建立在确定性多带图灵机之上，而多项式相关的模型会给出相同的类<sup>[9](https://plato.stanford.edu/archives/sum2024/entries/computational-complexity/)</sup>。非确定性对应类 NEXP 类似地定义为 \( \bigcup_{k} \mathrm{NTIME}(2^{n^{k}}) \)<sup>[9](https://plato.stanford.edu/archives/sum2024/entries/computational-complexity/)</sup>。

## 在复杂性层级中的位置

包含链 \( \mathrm{P} \subseteq \mathrm{NP} \subseteq \mathrm{PSPACE} \subseteq \mathrm{EXPTIME} \) 是已知的，但其中多数步骤尚不知道是否为真包含。包含关系 \( \mathrm{NP} \subseteq \mathrm{PSPACE} \) 成立，是因为多项式空间足以尝试 NP 计算的每个分支，并在分支之间复用空间；\( \mathrm{PSPACE} \subseteq \mathrm{EXPTIME} \) 成立，是因为一台运行时间超过指数时间的 PSPACE 机器必然重复了某个格局，因而陷入无限循环，所以每个停机的 PSPACE 计算都在指数时间内结束<sup>[2](https://plato.stanford.edu/entries/computability/)</sup>。尚不知道 P 是否不同于 PSPACE，也不知道 NP 是否不同于 EXPTIME；该链中唯一已确立的真包含是 \( \mathrm{P} \subsetneq \mathrm{EXPTIME} \)<sup>[2](https://plato.stanford.edu/entries/computability/)</sup>。

**时间层次定理**提供了这一分离。若 \( t_1 \) 和 \( t_2 \) 是时间可构造的，且 \( t_1(n) \log t_1(n) = o(t_2(n)) \)，则 \( \mathrm{DTIME}[t_1] \subset \mathrm{DTIME}[t_2] \)；额外的对数因子来自在固定带数的通用机上模拟多带机器<sup>[3](https://www.cse.buffalo.edu/~regan/papers/pdf/ALRch27.pdf)</sup>。作为推论，\( \mathrm{P} \subseteq \mathrm{DTIME}[n^{\log n}] \subset \mathrm{DTIME}[2^{n}] \subseteq \mathrm{E} \)，由此得到严格包含 \( \mathrm{P} \subset \mathrm{E} \)，因而存在一个指数时间问题，没有多项式时间算法能解它<sup>[3](https://www.cse.buffalo.edu/~regan/papers/pdf/ALRch27.pdf)</sup>。同一定理还给出 \( \mathrm{NP} \subsetneq \mathrm{NEXP} \)<sup>[3](https://www.cse.buffalo.edu/~regan/papers/pdf/ALRch27.pdf)</sup>。一个实际后果是：EXPTIME 完全问题可证明不能在多项式时间内求解，而 NP 完全问题则不同，它们的多项式时间地位仍然悬而未决<sup>[2](https://plato.stanford.edu/entries/computability/)</sup>。

## 交替式刻画

EXPTIME 在交替式图灵机方面有一个精确刻画。交替式图灵机的状态被标记为存在状态或全称状态；若某条转移导致接受，则从存在状态接受；若所有转移都导致接受，则从全称状态接受<sup>[4](https://people.cs.rutgers.edu/~allender/papers/ALR12.pdf)</sup>。阿肖克·钱德拉（Ashok Chandra）、德克斯特·科曾（Dexter Kozen）和拉里·斯托克迈耶（Larry Stockmeyer）的交替定理发表于 1981 年的《ACM杂志》，在一个方向上以多项式关联资源，在另一方向上以指数关联资源：确定性与非确定性空间多项式对应于交替时间，而交替空间指数对应于确定性时间<sup>[4](https://people.cs.rutgers.edu/~allender/papers/ALR12.pdf)</sup>。直接推论包括 \( \mathrm{ATIME}[n^{O(1)}] = \mathrm{PSPACE} \) 和 \( \mathrm{ASPACE}[n^{O(1)}] = \mathrm{EXP} \)<sup>[4](https://people.cs.rutgers.edu/~allender/papers/ALR12.pdf)</sup>。用文字说，指数确定性时间恰好等于交替式机器上的多项式空间，这就是交替式机器论证贯穿 EXPTIME 下界证明的原因<sup>[4](https://people.cs.rutgers.edu/~allender/papers/ALR12.pdf)</sup>。

## EXPTIME 完全问题

一个问题是 EXPTIME 完全的，当且仅当它属于 EXPTIME，且每个 EXPTIME 问题都归约到它；这类问题是指数时间界下最难的问题之一。一个广泛游玩的游戏的第一个完全性结果来自魏茨曼研究所的组合博弈论学者阿维兹里·S·弗伦克尔（Aviezri S. Fraenkel）和戴维·利希滕斯坦（David Lichtenstein），他们在 1981 年证明：计算 \( n \times n \) 棋盘上广义国际象棋的完美策略是指数时间完全的<sup>[5](https://kubokovac.eu/zlozitost/mat/chessExptime.pdf)</sup>。他们的结果意味着，存在无穷多个 \( n \times n \) 局面，判定谁能获胜至少需要 \( n \) 的指数时间；这比当时已知的跳棋、围棋、五子棋和六角棋的 PSPACE 困难性更强<sup>[5](https://kubokovac.eu/zlozitost/mat/chessExptime.pdf)</sup>。J. M. 罗布森（J. M. Robson）在《SIAM计算学刊》上证明：判定某个特定玩家能否从 \( N \times N \) 跳棋的给定局面强制获胜，以及找出最佳着法，二者都是 EXPTIME 完全的<sup>[6](https://epubs.siam.org/doi/abs/10.1137/0213018)</sup>。对于围棋，加州大学欧文分校的组合学家戴维·埃普斯坦（David Eppstein）的标准综述记载：即使没有重复规则，该游戏也是 PSPACE 困难的；而在日本劫争规则下，它是 EXPTIME 完全的<sup>[7](https://ics.uci.edu/~eppstein/cgt/hard.html)</sup>。

这一模式延伸到棋盘游戏之外。2019 年《人工智能》上的一项分析证明：求解《[愤怒的小鸟](https://www.edgepedia.org/zh/angry-birds)》一般关卡的判定问题，依版本不同，是 NP 困难、PSPACE 困难、PSPACE 完全或 EXPTIME 困难的；其中 EXPTIME 困难性由归约自 G2 得到，而 G2 是一个已知的 EXPTIME 完全问题；作者称这是首个单人游戏的 EXPTIME 困难性证明，其中把物理模拟器本身用作对抗力量<sup>[11](https://www.sciencedirect.com/science/article/pii/S0004370219302188)</sup>。在验证领域，法国国家科学研究中心/波尔多大学的伊戈尔·瓦卢凯维奇（Igor Walukiewicz）表明：下推系统上时序逻辑 CTL 的模型检验问题是 EXPTIME 完全的，而其片段 EF 是 PSPACE 完全的<sup>[8](https://www.cse.iitd.ac.in/~fsttcs20/Abstracts/100.html)</sup>。简洁表示也会把问题推高到 EXPTIME：自然的 P 完全图问题，当图以简洁电路给出时，会变成 EXPTIME 完全，因为此时输入描述的是一个指数级更大的对象。

## 该类分离了什么、没有分离什么

EXPTIME 完全结果给出无条件下界：此类问题的任何算法，其运行时间都随输入规模的某个幂次呈指数上升<sup>[6](https://epubs.siam.org/doi/abs/10.1137/0213018)</sup>。这比 NP 完全性是更尖锐的陈述；后者只有在 \( \mathrm{P} \ne \mathrm{NP} \) 时才排除多项式时间。仍然悬而未决的是该类之上和之内的精细结构：PSPACE 是否等于 EXPTIME、NP 是否不同于 EXPTIME、EXPTIME 是否等于 NEXP，这些都未解决<sup>[2](https://plato.stanford.edu/entries/computability/)</sup>。一项综合结果使第一个问题的利害变得具体：费恩利（Fearnley）、佩莱德（Peled）和舍韦（Schewe）表明，对给定时序规约总存在小系统，当且仅当 \( \mathrm{PSPACE} = \mathrm{EXPTIME} \)<sup>[12](https://arxiv.org/abs/1202.5449)</sup>。

## References

1. [Neil Immerman, Background in Complexity, ch. 2 (definitions of DTIME, P, NP, PSPACE, EXPTIME)](https://people.cs.umass.edu/~immerman/book/ch0_1_2.pdf)
2. [Computability and Complexity, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/computability/)
3. [Regan, Algorithms and Complexity, ch. 27: Hierarchy Theorems](https://www.cse.buffalo.edu/~regan/papers/pdf/ALRch27.pdf)
4. [Allender et al., Complexity Theory (Alternation Theorems, Chandra, Kozen, Stockmeyer 1981)](https://people.cs.rutgers.edu/~allender/papers/ALR12.pdf)
5. [Fraenkel & Lichtenstein, Computing a perfect strategy for n×n chess requires time exponential in n (1981)](https://kubokovac.eu/zlozitost/mat/chessExptime.pdf)
6. [J. M. Robson, N by N Checkers is Exptime Complete, SIAM Journal on Computing (1984)](https://epubs.siam.org/doi/abs/10.1137/0213018)
7. [David Eppstein, Computational Complexity of Games and Puzzles](https://ics.uci.edu/~eppstein/cgt/hard.html)
8. [Igor Walukiewicz, Model Checking CTL Properties of Pushdown Systems, FSTTCS 2000](https://www.cse.iitd.ac.in/~fsttcs20/Abstracts/100.html)
9. [Computational Complexity Theory, Stanford Encyclopedia of Philosophy (Summer 2024 edition)](https://plato.stanford.edu/archives/sum2024/entries/computational-complexity/)
10. [Complexity class, PlanetMath](https://planetmath.org/complexityclass)
11. [The computational complexity of Angry Birds, Artificial Intelligence (2019)](https://www.sciencedirect.com/science/article/pii/S0004370219302188)
12. [Fearnley, Peled, Schewe, Synthesis of Succinct Systems, arXiv:1202.5449](https://arxiv.org/abs/1202.5449)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Computational complexity › Classical complexity classes

Copyright 2026 Edgepedia

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

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

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