演算法›Ch7 貪婪演算法第 5 題/共 12 題
5. Activity Selection、Greedy Algorithm
#AL-07-005中Activity SelectionGreedy Algorithm
- Activity-selection problem. Suppose we have a set of n proposed activities. Each activity has a start time and a finish time , where . If selected, activity takes place during the half-open time interval . Activities and are compatible if the intervals and do not overlap. That is, and are compatible if or . In the activity-selection problem, we wish to select a maximum-size subset of mutually compatible activities. For the following greedy ideas, select the one(s) that yield an optimal solution.
📄 交大110
▤完整推導請見《WH 資工筆記 · 演算法》Ch7 貪婪演算法