1. Independent interval Problems
Find the maximum number of intervals that do not cover each other in N intervals
Sort the ending point, and then select from the interval with the smallest ending point.
2. Coverage Interval
Give a large interval, then give n cells, and find the minimum number of intervals to cover the large interval.
First select the start vertex, then select the maximum ending vertex range of the Start vertex, and so on.
3. minimum vertex coverage of the Interval
Returns n intervals and calculates the smallest number of points so that each interval has at least one vertex.
Method 1) sort the ending points (from small to large), and then sort the last vertex labels of each interval in sequence (you must determine whether the end points have been marked)
Method 2) sort the start point (from large to small), and label the start point of each interval in sequence (you must determine whether the start point has been marked)
Method 3) first remove the intervals that contain other intervals, then sort the start point, and then mark the end point from small to large (you must determine whether it has been marked)
4. minimum interval coverage of a vertex
N points are given and covered with m intervals to minimize the total number of intervals.
Sorts the gaps between neighboring points from large to small, overwrites all points with a large interval, and then disconnects the gaps from each other.
[Reprint] [greedy] various coverage problems