Efficient pebbling for list traversal synopses
Yossi Matias, Ely Porat
Abstract
We show how to support efficient back traversal in a unidirectional list, using small memory and with essentially no slowdown in forward steps. Using O( n) memory for a list of size n, the i'th back-step from the farthest point reached so far takes O( i) time in the worst case, while the overhead per forward step is at most ε for arbitrary small constant ε>0. An arbitrary sequence of forward and back steps is allowed. A full trade-off between memory usage and time per back-step is presented: k vs. kn1/k and vice versa. Our algorithms are based on a novel pebbling technique which moves pebbles on a virtual binary, or t-ary, tree that can only be traversed in a pre-order fashion. The compact data structures used by the pebbling algorithms, called list traversal synopses, extend to general directed graphs, and have other interesting applications, including memory efficient hash-chain implementation. Perhaps the most surprising application is in showing that for any program, arbitrary rollback steps can be efficiently supported with small overhead in memory, and marginal overhead in its ordinary execution. More concretely: Let P be a program that runs for at most T steps, using memory of size M. Then, at the cost of recording the input used by the program, and increasing the memory by a factor of O( T) to O(M T), the program P can be extended to support an arbitrary sequence of forward execution and rollback steps: the i'th rollback step takes O( i) time in the worst case, while forward steps take O(1) time in the worst case, and 1+ε amortized time per step.
Create a lesson
Related papers
Finding Hypercliques Faster Than Brute Force
Josh Alman, Baitian Li, Neha Pant et al.
Semi-Streaming Reachability and Shortest Paths in n1/3+o(1) Passes
Gary Hoppenworth, George Z. Li, Sepideh Mahabadi et al.
The Power of Interaction in Locally Edge-Private Subgraph Counting
Xian Chen, Pan Peng
Matchings under One-Sided Preferences with Soft Quotas
Santhini K A, Raghu Raman Ravi, Meghana Nasre
Nearly-Linear Query Algorithm for Submodular Maximization subject to a Matroid Constraint
Tatsuya Terao
Faster Planar Diameter using Pseudoline Envelopes
Da Wei Zheng, Daniel Prigan