Activity Selection Problem & Huffman Code
Activity Selection Problem
Why Use a Greedy Algorithm?
The Greedy Algorithm is based on the following intuition:
Time Complexity: Greedy-Activity Selector
Schedules a set of n activities in Θ(n) time, assuming that the activities were already sorted initially by their finish times.
Huffman Code