Interval scheduling problem (Allow no more than k intervals to overlap)
(Mylib/Typical/interval_scheduling_k.cpp)
Operations
-
interval_scheduling_k(l[N], r[N], k)
-
N
個の半開区間[l[i], r[i])
を、ある点で最大k
個までの重複を許して選ぶときに、選べる個数を最大化する方法を返す。
- Time complexity $O(N \log N)$
Requirements
Notes
Problems
References
Verified with
Code
Back to top page