### References & Citations

# Computer Science > Computational Complexity

# Title: Greedy can beat pure dynamic programming

(Submitted on 14 Mar 2018 (v1), last revised 29 May 2018 (this version, v2))

Abstract: Many dynamic programming algorithms for discrete 0-1 optimizationproblems are "pure" in that their recursion equations only use min/max and addition operations, and do not depend on actual input weights. The well-known greedy algorithm of Kruskal solves the minimum weight spanning tree problem on $n$-vertex graphs using only $O(n^2\log n)$ operations. We prove that any pure DP algorithm for this problem must perform $2^{\Omega(\sqrt{n})}$ operations. Since the greedy algorithm can also badly fail on some optimization problems, easily solvable by pure DP algorithms, our result shows that the computational powers of these two types of algorithms are incomparable.

## Submission history

From: Stasys Jukna [view email]**[v1]**Wed, 14 Mar 2018 16:16:10 GMT (8kb)

**[v2]**Tue, 29 May 2018 16:38:27 GMT (11kb)

Link back to: arXiv, form interface, contact.