aktivitetvalgproblemet
Aktivitetsvalgproblemet, also known as the activity selection problem, is a classic problem in computer science and operations research. It deals with selecting a maximum number of non-overlapping activities from a given set of activities, where each activity has a start time and a finish time. The goal is to choose a subset of activities such that no two selected activities overlap in time, and the size of this subset is maximized.
This problem is often used to illustrate the concept of a greedy algorithm. A common greedy approach
The greedy strategy of sorting by finish times is proven to yield an optimal solution for the