首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

调度有关问题用快速不相交集解

2012-06-16 
调度问题用快速不相交集解Problems 16-4: Scheduling variationsConsider the following algorithm for th

调度问题用快速不相交集解
Problems 16-4: Scheduling variations 
 

Consider the following algorithm for the problem from Section 16.5 of scheduling unit-time tasks with deadlines and penalties. Let all n time slots be initially empty, where time slot i is the unit-length slot of time that finishes at time i. We consider the tasks in order of monotonically decreasing penalty. When considering task aj , if there exists a time slot at or before aj 's deadline dj that is still empty, assign aj to the latest such slot, filling it. If there is no such slot, assign task aj to the latest of the as yet unfilled slots.

Argue that this algorithm always gives an optimal answer.

Use the fast disjoint-set forest presented in Section 21.3 to implement the algorithm efficiently. Assume that the set of input tasks has already been sorted into monotonically decreasing order by penalty. Analyze the running time of your implementation.

b该怎么解?

[解决办法]
看不懂,飘过。。
[解决办法]
翻译下吧,没耐心做阅读理解了。

热点排行