Since the introduction of retroactive data structures at SODA 2004, a major unsolved problem has been to bound the gap between the best partially retroactive data structure (where changes can be made to the past, but only the present can be queried) and the best fully retroactive data structure (where the past can also be queried) for any problem. It was proved in 2004 that any partially retroactive data structure with operation time Top(n, m) can be transformed into a fully retroactive data structure with operation time O(√m · Top(n, m)), where n is the size of the data structure and m is the number of operations in the timeline [7]. But it has been open for 14 years whether such a gap is necessary.
In this paper, we prove nearly matching upper and lower bounds on this gap for all n and m. We improve the upper bound for n ≪ √m by showing a new transformation with multiplicative overhead n log m. We then prove a lower bound of min{n log m, √m}1 − o(1) assuming any of the following conjectures:
- Conjecture I: CircuitSAT requires 2n − o(n) time on n-input circuits of size 2o(n).
-
This conjecture is far weaker than the well-believed SETH conjecture from complexity theory, which asserts that CNFSAT with n variables and O(n) clauses already requires 2n − o(n) time.
- Conjecture II: Online (min, +) product between an integer n × n matrix and n vectors requires n3 − o(1) time.
-
This conjecture is weaker than the APSP conjectures widely used in fine-grained complexity.
- Conjecture III (3-SUM Conjecture): Given three sets A, B, C of integers, each of size n, deciding whether there exist a ∈ A, b ∈ B, c ∈ C such that a + b + c = 0 requires n2 − o(1) time.
-
This 1995 conjecture [13] was the first conjecture in fine-grained complexity.
Our lower bound construction illustrates an interesting power of fully retroactive queries: they can be used to quickly solve batched pair evaluation. We believe this technique can prove useful for other data structure lower bounds, especially dynamic ones.