16. Greedy Algorithms

A greedy algorithm always makes the choice that looks the best at the current step. ----- it makes a locally optimal choice in the hope that this choice will lead to a globally optimal solution.

Load balancing problem---NP hard

Given a set of m machines M1,M2,...,Mm and a set of n jobs, each job j has a processing time t j >0 with 1< j< n. We seek to assign each job to one of them machines so that the loads placed on all machines are as “balanced” as possible, where the load at a machine is the sum of processing times of all jobs allocated to the machine.

This is the problem(Load balancing problem) we can not solve in polynomial time unless P=NP. Instead, we aim to find a feasible solution to it.

If we are able to show that there is a certain degree of guarantee between the feasible solution and its optimal solution, then we call this algorithm is an approximation algorithm for the load-balancing problem.

In other words, our objective is to: minimize max{Ti | 1 < i < m}

The Greedy Strategy: Assign the current job j to a machine Mi with the minimum load at each time.

Theorem: Algorithm Greedy-Balance produces an assignment of jobs to machines with makespan T < 2T*, where T and T * are the loads delivered by the greedy algorithm and an optimal load of the problem.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 不知不觉,在创业的道路已经摸踏滚打了五年,累并快乐着!
    进取的心阅读 1,562评论 0 0
  • 来源:http://bbs.ichunqiu.com/thread-9617-1-1.html?from=ch 近...
    池寒阅读 3,332评论 0 0
  • 我今年25岁,是个很尴尬的年纪,工作不安稳,恋爱也没有,确是让所有人都放心的一个人。原因?我也不知道。可...
    呆吖阅读 1,850评论 0 3
  • 在现代密码体制中有保密和认证两种机制,一般发送者和接收者拥有自己的公钥和密钥,公钥是公开的,密钥不公开。 保密机制...
    F麦子阅读 4,726评论 0 0

友情链接更多精彩内容