Scheduling
Scheduling
Greedy Algorithms
p Optimization problems involve profit
maximization (or cost minimization) under
resource constraints
p Greedy Algorithms build solutions step-by-
step: each step uses “locally optimal”
(short-sighted?) rules to optimize the
objective function
Knapsack Problem
Interval scheduling
Analysis
p Running time = O(n log n)
p Let A be the solution of the greedy
algorithm
n A is a compatible set of requests
10
11