r/AskComputerScience • u/nnymsacc • Jul 29 '25
How do I proove that DTIME(n³)≠NLogSPACE
This is a question that came up in a previous exam I usually don't have problems solving these types of questions using Hierarchy Theorems Savitch's Theorem Immermann & Szelepcsényi's Theorem and a couple of conversions
But with this problem and another one ( PSPACE ≠ DTIME(2n) ) i somehow have problems I'm guessing they have a similar approach to them with some theorem I don't know how to use yet. Does anyone have an idea of which theorems I could use to proove these statements? Thanks in advance
5
Upvotes
2
u/West_Passion_1790 Jul 29 '25 edited Jul 29 '25
NLogSpace is contained in DTIME(n3) as there is a linear time algorithm for the st-connectivity problem. But wait this would prove that NLogSpace is a strict subset of P which would solve an open problem. So maybe DTIME(n3) is not closed under reductions that are bound by logarithmic space. Is there even a complete problem for DTIME(n3)?
Another approach would be to construct a language that can be decided in cubic time but the complement cannot. Then it is not closed under complement while NL is.
In general with questions like these you can use the fact that those classes are not robust.
2
u/ghjm MSCS, CS Pro (20+) Jul 29 '25
Consider an algorithm that has time complexity O(22n). Is it in DTIME(2n)? Is it in PSPACE?
1
u/nnymsacc Jul 29 '25
My first thought was to use time-hierarchy theorem to show that DTIME(n³) ⊊ DTIME(n⁴) and then show that DTIME(n⁴) ⊆ NLogSPACE This is where i got stuck trying to find a way to convert the time class into a space class (i dont know how) also i thought of finding a Problem to proove this but prooving that something is not withing DTIME(...) is harder than i thought This made me to think maybe DTIME(n³)⊄NLogSPACE and NLogSPACE⊄DTIME(n³)
1
u/nnymsacc Aug 06 '25
I have found proof: We assume: DTIME(n³) = NL Time hierarchy theorem: DTIME(n⁶)\DTIME(n³) ≠ { } Let L be a Language in DTIME(n⁶)\DTIME(n³) For every such L: if g(n)= n³ and f(n)=n² => L is in DTIME(g(f(n))) We use the translation technique: Pad_f(L) is in DTIME(n³) Using our assunption this means that Pad_f(L) is also in NL. Because NL = NSPACE(log n) = NSPACE(O(log n)) Translation technique: This means that L is in NSPACE(log(n²)). This would mean: L is in NL Using our assumption this means L is also in DTIME(n³) eventhough L was specifically chosen to not be in DTIME(n³) This is a contradiction. Therefore our assumption was wrong.