Author: Vishal Khopkar
Dynamic programming, trees
We need to adjust some of the given events to be held at the stadium such that the stadium is used to its fullest.
Well, there may be many solutions, the one I chose was using trees and dynamic programming.
We first look at the Gantt chart shown on the problem page. There will be some events that can be chosen independently of others, i.e. if the event does not overlap with another, the two can be said to be independent. Now, I constructed the tree shown below and calculated the path consuming the largest time.
The approach used in 0-1 knapsack can be used here.
![Tree for event scheduling]