Back to the 2022 paper

Module 3: Greedy, Dynamic Programming and Other Paradigms

202214m

What is activity selection problem? Suppose that instead of always selecting the first activity to finish, we select the last activity to start that is compatible with all previously selected activities. Describe how this approach is a greedy algorithm, prove that it yields an optimal solution.

Similar questions