Abstract
We consider so-called “incremental” dynamic programming algorithms, and are interested in the number of subproblems produced by them. The classical dynamic programming algorithm for the Knapsack problem is incremental, produces nK subproblems and nK 2 relations (wires) between the subproblems, where n is the number of items, and K is the knapsack capacity. We show that any incremental algorithm for this problem must produce about nK subproblems, and that about nKlogK wires (relations between subproblems) are necessary. This holds even for the Subset-Sum problem. We also give upper and lower bounds on the number of subproblems needed to approximate the Knapsack problem. Finally, we show that the Maximum Bipartite Matching problem and the Traveling Salesman problem require exponential number of subproblems. The goal of this paper is to leverage ideas and results of boolean circuit complexity for proving lower bounds on dynamic programming.
Similar content being viewed by others
Notes
All logarithms in this paper are to the basis 2.
We prefer to use the term “node” instead of “vertex” as well as “wire” instead of “edge” while talking about branching programs, because inputs to programs may also be edges and vertices of a customary graph.
The Min-Plus semiring (R+,⊕,⊗,∞,0) with operations x⊕y=min(x,y) and x⊗y=x+y, is called “tropical” in honor of Imre Simon who lived in Sao Paulo (south tropic). Tropical algebra and tropical geometry are intensively studied topics in mathematics.
References
Aho, A., Hopcroft, J., Ullman, J.: The Design and Analysis of Computer Algorithms. Addison-Wesley, Reading (1974)
Ajtai, M.: Determinism versus non-determinism for linear time RAMs with memory restrictions. J. Comput. Syst. Sci. 65(1), 2–37 (2002)
Alekhnovich, M., Borodin, A., Buresh-Oppenheim, J., Impagliazzo, R., Magen, A.: Toward a model for backtracking and dynamic programming. Comput. Complex. 20(4), 679–740 (2011)
Angelopoulos, S., Borodin, A.: The power of prioritized algorithms for facility location and set cover. Algorithmica 40(4), 271–291 (2004)
Arora, S., Lund, C., Motwani, R., Sudan, M., Szegedy, M.: Proof verification and the hardness of approximation problems. J. ACM 45(3), 501–555 (1998)
Barvinok, A., Gimadi, E.K., Serdyukov, A.I.: The maximum traveling salesman problem. In: Gutin, G., Punnen, A. (eds.) The Traveling Salesman Problem and Its Variations, pp. 585–607. Kluwer, Amsterdam (2002)
Beame, P., Saks, M., Sun, X., Vee, E.: Time-space trade-off lower bounds for randomized computation of decision problems. J. ACM 50(2), 154–195 (2003)
Bellman, R.: Combinatorial processes and dynamic programming. In: Proc. of the 10-th Symp. in Applied Math of the AMS, pp. 24–26. AMS, Providence (1958)
Bompadre, A.: Exponential lower bounds on the complexity of a class of dynamic programs for combinatorial optimization problems. Algorithmica 62(3–4), 659–700 (2012)
Borodin, A., Razborov, A., Smolensky, R.: On lower bounds for read-k times branching programs. Comput. Complex. 3, 1–18 (1993)
Borodin, A., Nielsen, M.N., Rackoff, C.: (Incremental) prioritized algorithms. Algorithmica 37(4), 295–326 (2003)
Borodin, A., Boyar, J., Larsen, K.S., Mirmohammadi, N.: Priority algorithms for graph optimization problems. Theor. Comput. Sci. 411(1), 239–258 (2010)
Buresh-Oppenheim, J., Davis, S., Impagliazzo, R.: A stronger model of dynamic programming algorithms. Algorithmica 60(4), 938–968 (2011)
Davis, S., Impagliazzo, R.: Models of greedy algorithms for graph problems. Algorithmica 54(3), 269–317 (2009)
Furman, M.E.: Application of a method of fast multiplication of matrices in the problem of finding the transitive closure of a graph. Sov. Math. Dokl. 11(5), 1252 (1970)
Garey, M.R., Johnson, D.S.: Strong NP-completeness results: motivation, examples, and implications. J. ACM 25, 499–508 (1978)
Hansel, G.: Nombre minimal de contacts de fermeture necessaires pour realiser une function booleenne symetrique de n variables. C. R. Acad. Sci. 258(25), 6037–6040 (1964). In French
Held, M., Karp, R.M.: A dynamic programming approach to sequencing problems. SIAM J. Appl. Math. 10, 196–210 (1962)
Helman, P.: A common schema for dynamic programming and branch and bound algorithms. J. ACM 36(1), 97–128 (1989)
Helman, P., Rosenthal, A.: A comprehensive model of dynamic programming. SIAM J. Algebr. Discrete Methods 6, 319–334 (1985)
Jerrum, M., Snir, M.: Some exact complexity results for straight-line computations over semirings. J. ACM 29(3), 874–897 (1982)
Jukna, S.: A note on read-k times branching programs. RAIRO Theor. Inform. Appl. 29(1), 75–83 (1995)
Jukna, S.: A nondeterministic space-time tradeoff for linear codes. Inf. Process. Lett. 109(5), 286–289 (2009)
Jukna, S.: Boolean Function Complexity: Advances and Frontiers. Springer, Berlin (2012)
Jukna, S., Razborov, A.A.: Neither reading few bits twice nor reading illegally helps much. Discrete Appl. Math. 85(3), 223–238 (1998)
Karchmer, M., Wigderson, A.: Monotone circuits for connectivity require super-logarithmic depth. SIAM J. Discrete Math. 3(2), 255–265 (1990)
Karp, R., Held, M.: Finite state processes and dynamic programming. SIAM J. Appl. Math. 15, 693–718 (1967)
Kerr, L.R.: The effect of algebraic structure on the computation complexity of matrix multiplications. PhD Thesis, Cornell Univ., Ithaca, NY (1970)
Kowalik, L., Mucha, M.: 35/44-approximation for asymmetric Maximum TSP with triangle inequality. Algorithmica 59(2), 240–255 (2011)
Munro, I.: Efficient determination of the transitive closure of a directed graph. Inf. Process. Lett. 1(2), 56–58 (1971)
Nechiporuk, E.I.: On a boolean function. Sov. Math. Dokl. 7(4), 999–1000 (1966)
Okolnishnikova, E.A.: Lower bounds on the complexity of realization of characteristic functions of binary codes by branching programs. In: Diskretnii Analiz, Novosibirsk, vol. 51, pp. 61–83 (1991). In Russian
Poloczek, M.: Bounds on greedy algorithms for MAX SAT. In: Demetrescu, C., Halldórsson, M.M. (eds.) Proc. of 19th Ann. European Symp. on Algorithms. LNCS, vol. 6942, pp. 37–48. Springer, Berlin (2011)
Regev, O.: Priority algorithms for makespan minimization in the subset model. Inf. Process. Lett. 84(3), 153–157 (2002)
Rychkov, K.L.: On the complexity of generalized contact circuits. Diskretn. Anal. Issled. Oper. 16(5), 78–87 (2009). In Russian
Wegener, I.: Branching Programs and Binary Decision Diagrams. SIAM, Philadelphia (2000)
Woeginger, G.J.: When does a dynamic programming formulation guarantee the existence of a fully polynomial time approximation scheme (fptas)? Informs J. Comput. 12(1), 57–74 (2000)
Acknowledgements
I am thankful to Allan Borodin, Joshua Buresh-Oppenheim, Russell Impagliazzo, Gerhard Paseman, and Georg Schnitger for enlightening discussions. My thanks to anonymous referees for stimulating comments; I am especially obligated to one of them for suggesting to use even-odd pairs in the proof of Theorem 5.
Author information
Authors and Affiliations
Corresponding author
Additional information
Research supported by the DFG grant SCHN 503/5-1.
Rights and permissions
About this article
Cite this article
Jukna, S. Limitations of Incremental Dynamic Programming. Algorithmica 69, 461–492 (2014). https://doi.org/10.1007/s00453-013-9747-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-013-9747-6