Greedy vs dynamic programming: greedy makes locally optimal choices, DP considers all subproblems

Greedy: locally optimal choices; DP: considers all subproblems

Image: Varistor60, CC BY-SA 4.0, via Wikimedia Commons

Greedy vs dynamic programming: greedy makes locally optimal choices, DP considers all subproblems

Greedy: locally optimal choices; DP: considers all subproblems

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath