vix.ing · top · new · best · stats · spec

On the I/O Complexity of the CYK Algorithm and of a Family of Related DP Algorithms

2024/10/27 by De Stefani, Lorenzo, Gupta, Vedant
#Data Structures and Algorithms (cs.DS) #F.2.0 #FOS: Computer and information sciences

paper · doi:10.48550/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 Ω((n3)/(√(M)B)) I/O lower bound, where n denotes the size of the input and M denotes the size of the available fast memory (cache). When recomputation is allowed, we show the same bound holds for M < cn, where c is a positive constant. In the case where M ≥ 2n, we show an Ω(n/B) 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.

Related