You are given the following 7 activities that wish to use a lecture hall, which can only…
- User
You are given the following 7 activities that wish to use a lecture hall, which can only be used by one activity at a time. What's the maximum number of activities that you can schedule in this lecture hall? Activity Start Time Finish Time A1 5 8 A2 3 5 A3 1 3 A4 8 12 A5 13 17 A6 6 9 A7 6 7
- Assistant
One possible solution is to schedule the following activities:
A3 from 1 to 3 A2 from 3 to 5 A1 from 5 to 8 A4 from 8 to 12 A5 from 13 to 17
This way, five activities can be scheduled without any conflicts. A6 and A7 cannot be scheduled in this scenario as they overlap with A1 and A6, respectively.