5: Complexity Flashcards
Within which time and space complexities can you copy an input from an input tape to a working tape in a multi-tape TM? How could you improve this for the language πΏ(0 ^ (2 ^ π))?
Copying across would take DTIME(2π log2(π)) and DSPACE(π).
You could instead have a binary number to count the number of input symbols on the working tape, incrementing it every time you read a new input symbol. Since the language is a number of 0s equal to a power of 2, after reading them all the working tape will consist of a 1 and all 0s afterwards. This improves space complexity to DSPACE(log2(π)) and time complexity to ??.
What is a computation resource? List 5.
An asset that enables computations of increased complexity and difficulty.
time; space; energy; the number of comparisons; the number of calls to an oracle.
How do you measure time and space complexity in TMs?
Time β‘ the number of transitions made by TM.
Space β‘ the number of tape cells touched by TM.
What is an instance of a problem?
An input word that falls within (the language of) a problem.
Consider a positive non-decreasing function π βΆ N β N, πΏ a language, L, (over some alphabet π΄),
and π being the length of the input to f(n).
True/false: DTIME(π (π)) > {πΏ | πΏ is decided by some (deterministic) TM in at most π (π) transitions}
False. Here, DTIME(π (π)) = {πΏ | πΏ is decided by some (deterministic) TM in at most π(π) transitions}
What is a complexity class?
A set of computing problems, grouped by the time and space complexities that they require to solve.
How do you mathematically define deterministic polynomial time complexities?
P = βͺ πβ₯1 DTIME(π^π)
So the union of all factors raised to some k where k >= 1
What does β^? mean?
A β^? B = whether A is an element of the set B. (?)
What are the consequences of the Time and Space Hierarchy Theorems
- DTIME(n ^ 2) is strictly more powerful than DTIME(n)
- DTIME(n ^ 1042) is strictly more powerful than DTIME(n ^ 1041)
- If d > c >= 1, DTIME(n ^ d) is strictly more powerful than DTIME(n ^ c).
- DTIME(n ^ Ο) is strictly more powerful than DTIME(n ^ e) since Ο > e.
- DSPACE(n * log(n)) is strictly more powerful than DSPACE(n).
- DTIME(2 ^ n) is strictly more powerful than DTIME(n ^ 3)
- Much more time (or space) means more problems solvable
What happens when adding a βlargeβ amount of time and/or space?
Adding a βlargeβ amount of time and/or space gives a strict hierarchy of complexity classes.
Let π be a positive non-decreasing function π βΆ N β N
Let πΏ be a language (over some alphabet π΄),
and π be the length of the input.
True/false: NSPACE(π (π)) = {πΏ β£ There is some certificate π such that πΏ is decided by a Deterministic TM which takes π as additional input using at most π (π) additional tape cells}
True.
What is the Space Hierarchy Theorem?
Any increases in asymptotic space increases a system's computational power. Let f(n) = o(g(n)), where f(n) is space-constructible. Then DSPACE(g(n)) \ DSPACE(f(n)) β β So there are more problems that can be done in f(n) space that can't be done in g(n) space if f(n) is space-constructible and f(n) > g(n).
What does the big theta notation mean?
- If π (π) = Ξ(π(π)), then π and π are the same size
- π and π are within a constant factor
- π = π(π(π)) and π = Ξ©(π(π))
Consider a positive non-decreasing function π βΆ N β N, πΏ a language, L, (over some alphabet π΄),
and π being the length of the input to f(n).
True/false: DSPACE(π (π)) > {πΏ | πΏ is decided by some (deterministic) TM in at most π (π) tape cells}
False. Here, DSPACE(π (π)) = {πΏ | πΏ is decided by some (deterministic) TM in at most π (π) tape cells}
How can you relate time and space complexities?
NTIME(π (π)) β DSPACE(π (π))
AND
NSPACE(π (π)) β βͺπDTIME(ππ (π))
How can you relate Non-deterministic vs Deterministic Space?
Letπ (π) β₯ log π. Then
NSPACE(π (π)) β DSPACE((π (π))^ 2)
How can you mathematically relate NPSPACE and DSPACE?
PSPACE = βͺ πβ₯1 DSPACE(π^π)
When is π(π) Ξ©(π (π))?
There exist constants π and a π0 > 0 such that for all π > π0, π(π) β₯ π β π (π). Intuitively, π(π) grows no less than π (π) for large π. This is an asymptotic lower bound.