Can you please help identify if the two following variants of the bounded halting problem are in different deterministic complexity classes?
$$ H1 = \{ (\langle M \rangle, w, t) \mid \text{$M$ accepts $w$ in time at most $t$} \} $$ $$ H2 = \{ (\langle M \rangle, t) \mid \forall \text{$w$, $M$ accepts $w$ in time at most $t$} \} $$ $$ \text{(where $t$ is binary-encoded for both)} $$ When I do the math, (ignoring simulation cost for readability), I get:
- $H1 = O(2^{N}) \in $ EXP-TIME
- $H2 = O(2^{N})*O(2^{2^N}) \in $ 2-EXPTIME
- To illustrate my thinking, here are a few examples:
t (base 10) | t (base 2) | N | H1 (Single Simulation) | Total Unique inputs length t | H2 |
---|---|---|---|---|---|
2 | 10 | 2 | 2 steps = O(2^N) | 4 = O(2^(2^N)) | 8 = 4*2 |
3 | 11 | 2 | 3 steps | 8 | 16 = 8*3 |
4 | 100 | 3 | 4 steps | 16 | 48 = 16*3 |
9 | 1001 | 4 | 9 steps | 512 | 2048 = 512*4 |
Resources regarding H2:
- Wikipedia EXP-COMPLETE seems to say $H2$ is EXP-COMPLETE update below
- CS StackExchange EXP-Complete Example top answers link to above wikipedia article
Resources for H1:
- CS StackExchange Halting problem in EXP-complete
- A Professor's Public Lecture Notes 1st page, 3.3
- The Computational Complexity of the Bounded Halting Problem
- another whitepaper page 7, bottom left
- Wikipedia: P-complete problems
Update: wiki exp-complete article now updated to describe H1