UVa 1467 Installations 解题报告(贪心)

该博客介绍了如何解决一个电信公司服务工程师的工作调度问题,目标是通过贪心策略找到最小化延迟罚款总和的解决方案。博客内容涉及输入输出格式、示例及解题过程,提出了一种根据截止日期排序并寻找最大和次大罚款的方法来优化调度。
摘要由CSDN通过智能技术生成

1467 - Installations

Time limit: 3.000 seconds

In the morning, service engineers in a telecom company receive a list of jobs which they must serve today. They install telephones, internet, ipTVs, etc and repair troubles with established facilities. A client requires a deadline when the requested job must be completed. But the engineers may not complete some jobs within their deadlines because of job overload. For each job, we consider, as a penalty of the engineer, the difference between the deadline and the completion time. It measures how long the job proceedsafter its deadline. The problem is to find a schedule minimizing the sum of the penalties of the jobs with the two largest penalties.

A service engineer gets a list of jobs Ji with a serving timesi and a deadlinedi. A job Ji needs timesi, and if it is completed at timeCi, then the penalty of Ji is defined to bemax{0, Ci -di}. For convenience, we assume that the timet when a job can be served is0$ \le$t <$ \infty$ and

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值