In his book, Algorithm Design Guide, Stephen S. Lösen creates the following problem:
Now consider the following planning task. Imagine that you are a highly inflationary actor who has been presented with proposals to play a major role in the development of various film projects. Each offer comes with the first and last day of filming. To complete this work, you must record its availability throughout this period. Thus, you cannot simultaneously accept two tasks, the intervals between which overlap.
For an artist like you, the criteria for hiring are clear: you want to make as much money as possible. Since each of these films pays the same fee per film, this means that you are looking for the maximum possible set of tasks (intervals), so that none of them conflict with each other.
For example, consider the available projects in Figure 1.5 [above]. We can play no more than four films, namely “discrete” mathematics, programming, settlement bets and one of the “Horizontal state” or “Steiners Tree” states.
You (or your agent) must solve the following algorithmic planning problem:
Problem: Movie Scheduling Problem
Input: Set i of n intervals on a line.
Conclusion:. What is the largest subset of mutually non-overlapping intervals that can be selected from I?