Suppose you are given a set of intervals, with the start time of each interval as index s i and the end time f of index i. Find the minimum number of points that need to be placed so that each interval has a point.
I am trying to find an algorithm that would resolve this. I get stuck when a gap that spans two intervals, that is, starts halfway through one interval and ends halfway through another, has an interval that is contained in it.
thank
source
share