Y by cubres
An interesting problem:
There are
events
that are each continuous and last on a certain time interval. Each event has a weight
However, one can only choose to attend activities that do not overlap with each other. The goal is to maximize the sum of weights of all activities attended. Prove or disprove that the following algorithm allows for an optimal selection:
For each
consider
the sum of
over all
such that
and
are not compatible.
1. At each step, delete the event that has the maximal
If there are multiple such events, delete the event with the minimal weight.
2. Update all
3. Repeat until all
are 
There are



For each






1. At each step, delete the event that has the maximal

2. Update all

3. Repeat until all


This post has been edited 1 time. Last edited by Maximilian113, Apr 13, 2025, 12:56 AM
Reason: clarity
Reason: clarity