Illustrating the Suitability of Greedy and Dynamic Algorithms Using The Economics Concept of "Opportunity Cost"

11/19/2020
by   Eugene Callahan, et al.
0

Students of Computer Science often wonder when, exactly, one can apply a greedy algorithm to a problem, and when one must use the more complicated and time-consuming techniques of dynamic programming. This paper argues that the existing pedagogical literature does not offer clear guidance on this issue. We suggest improving computer science pedagogy by importing a concept economists use in their own implementations of dynamic programming. That economic concept is "opportunity cost," and we explain how it can aid students in differentiating "greedy problems" from problems requiring dynamic programming

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/14/2018

Greedy can also beat pure dynamic programming

Many dynamic programming algorithms are "pure" in that they only use min...
research
03/27/2017

A Dynamic Programming Solution to Bounded Dejittering Problems

We propose a dynamic programming solution to image dejittering problems ...
research
03/14/2018

Greedy can beat pure dynamic programming

Many dynamic programming algorithms for discrete 0-1 optimizationproblem...
research
01/25/2023

Exact and rapid linear clustering of networks with dynamic programming

We study the problem of clustering networks whose nodes have imputed or ...
research
05/25/2017

An Empirical Analysis of Approximation Algorithms for the Euclidean Traveling Salesman Problem

With applications to many disciplines, the traveling salesman problem (T...
research
01/20/2020

OpenMP Parallelization of Dynamic Programming and Greedy Algorithms

Multicore has emerged as a typical architecture model since its advent a...
research
05/14/2018

Maximum Entropy Interval Aggregations

Given a probability distribution p = (p_1, ..., p_n) and an integer 1≤ ...

Please sign up or login with your details

Forgot password? Click here to reset