Open JangoBoogaloo opened 2 weeks ago
Tasks have (start, end) time with profit. Try to schedule to get maximum profit.
(start, end)
profit
Can not concurrent tasks or can have at most x concurrent tasks
x
start time
next element
i
maximum profits
Maximum Length of Pair Chain
Longest Increasing Subsequence
Maximum Earnings From Taxi
Two Best Non-Overlapping Events
How is it different from SweepLine
Description
Tasks have
(start, end)
time withprofit
. Try to schedule to get maximum profit.Condition
Can not concurrent tasks or can have at most
x
concurrent tasksDP Idea
start time
start time
don't need to worry about conflict with it'snext element
i
, getmaximum profits
for combinations start ati
maximum profits
in DP.i