新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> We choose to study algorithmic problems,  not because they are easy,  but because they are hard.
    [返回] 计算机科学论坛计算机理论与工程『 算法理论与分析 』 → 请教“Scheduling to minimize average completion time”问题 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 10312 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 请教“Scheduling to minimize average completion time”问题 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     ablmf 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:2
      积分:56
      门派:XML.ORG.CN
      注册:2008/3/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给ablmf发送一个短消息 把ablmf加入好友 查看ablmf的个人资料 搜索ablmf在『 算法理论与分析 』的所有贴子 引用回复这个贴子 回复这个贴子 查看ablmf的博客楼主
    发贴心情 请教“Scheduling to minimize average completion time”问题

    『算法导论』的作业16-2

    Suppose you are given a set S = {a1, a2, ..., an} of tasks, where task ai requires pi units of processing time to complete, once it has started. You have one computer on which to run these tasks, and the computer can run only one task at a time. Let ci be the completion time of task ai , that is, the time at which task ai completes processing. Your goal is to minimize the average completion time, that is, to minimize .

    ……

    Suppose now that the tasks are not all available at once. That is, each task has a release time ri before which it is not available to be processed. Suppose also that we allow preemption, so that a task can be suspended and restarted at a later time.  Give an algorithm that schedules the tasks so as to minimize the average completion time in this new scenario. Prove that your algorithm minimizes the average completion time, and state the running time of your algorithm.


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2008/3/25 13:00:00
     
     ablmf 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:2
      积分:56
      门派:XML.ORG.CN
      注册:2008/3/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给ablmf发送一个短消息 把ablmf加入好友 查看ablmf的个人资料 搜索ablmf在『 算法理论与分析 』的所有贴子 引用回复这个贴子 回复这个贴子 查看ablmf的博客2
    发贴心情 
    这个问题的算法本身不难,可是我很久都不能想到证明算法正确的办法。
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2008/3/25 13:01:00
     
     represent 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:54
      门派:XML.ORG.CN
      注册:2008/3/26

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给represent发送一个短消息 把represent加入好友 查看represent的个人资料 搜索represent在『 算法理论与分析 』的所有贴子 引用回复这个贴子 回复这个贴子 查看represent的博客3
    发贴心情 
    我觉得平均完成时间最小化,在ri=0,不可中断的调度问题中,就等于总完工时间最小化。可中断问题的一个特例是不可中断。说了好像没有说啊,水平有限
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2008/3/26 10:05:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 算法理论与分析 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/15 12:39:59

    本主题贴数3,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    62.500ms