Describe a simple greedy algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM13812168

Question 1: Describe a simple greedy algorithm that computes a 2-approximation of the optimal schedule. In other words, if T* is the smallest possible makespan achievable for the given set of jobs using k processors, then the schedule produced by your algorithm should have a makespan of at most 2T*. Your algorithm should run in O(kn) time. Prove that the schedule produced by your algorithm has makespan at most 2T*. To do so, you will probably want to use two properties the minimum makespan T* must obviously satisfy:

  • T* ≥ 1/k Σ Pki=1 ti. (The processor doing the most amount of work must do at least a 1/k fraction of the total amount of work.)
  • T* ≥ max{t1, t2,..., tn}. (The longest job needs to run on some processor Pj, so this processor finishes no earlier than the time it takes to complete this job.)

You should then prove that the schedule produced by your algorithm has makespan at most 1/k Σki=1 ti +max{t1, t2, ..., tn}.

Question 2:  Describe a modification of the above greedy algorithm that computes an optimal schedule, that is, one with the smallest possible makespan, provided the given set of jobs satisfies the following condition: Let t1, t2,..., tn once again be the predicted amounts of time it takes to run jobs J1, J2,..., Jn, and let t* = min{t1, t2, ..., tn}. You may assume that t* = 1. Then, for all 1 ≤ i ≤ n, ti is a power of 2. Your algorithm should run in O(n lg n + kn) time. Prove that it produces an optimal schedule.

Reference no: EM13812168

Questions Cloud

What is the horizontal component of the velocity : What is the horizontal component of the velocity and how far from the catapult does it land?
What is known in philadelphia as the curse of billy penn : What is known in Philadelphia as "The Curse of Billy Penn"? Is the smiling man on the Quaker Oats box meant to be the likeness of William Penn?
Discuss the structure and role of party organizations : Discuss the structure and role of party organizations. Mention each level of party organization-local, state, and national-including what the function is of each in modern politics.
Integrated marketing communications : integrated Marketing Communications
Describe a simple greedy algorithm : Describe a simple greedy algorithm that computes a 2-approximation of the optimal schedule. In other words, if T* is the smallest possible makespan achievable for the given set of jobs using k processors, then the schedule produced by your algorit..
Write essay about doctor-assisted suiside related to old age : Write an essay about doctor-assisted suiside related to old age or mortality.
Product design philosophy behind industrial design : Discuss the product design philosophy behind industrial design and design for manufacture and assembly. Which one do you think is more important in a customer-focused product development?
Write down kvl for both the base loop : Write down KVL for both the base loop and the collector loop when the transistor is in saturation.
Industrial design and design for manufacture and assembly : Discuss the product design philosophy behind industrial design and design for manufacture and assembly. Which one do you think is more important in a customer-focused product development?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd