On the I/O Complexity of the CYK Algorithm and of a Family of Related DP Algorithms
arXiv:2410.20337
Abstract
Asymptotically tight lower bounds are derived for the Input/Output (I/O) complexity of a class of dynamic programming algorithms including matrix chain multiplication, optimal polygon triangulation, and the construction of optimal binary search trees. Assuming no recomputation of intermediate values, we establish an I/O lower bound, where denotes the size of the input and denotes the size of the available fast memory (cache). When recomputation is allowed, we show the same bound holds for , where is a positive constant. In the case where , we show an I/O lower bound. We also discuss algorithms for which the number of executed I/O operations matches asymptotically each of the presented lower bounds, which are thus asymptotically tight. Additionally, we refine our general method to obtain a lower bound for the I/O complexity of the Cocke-Younger-Kasami algorithm, where the size of the grammar impacts the I/O complexity. An upper bound with asymptotically matching performance in many cases is also provided.