Consider the following problems and greedy algorithms. For each greedy algorithm, prove or disprove its optimality. (i) Consider scheduling a set of jobs on a single resource, where each job has a size, s, and a deadline, d;. Once you've determined a schedule each job will have a finish time fi. The lateness of job i is defined to be li = max(0, fidi). Here, our goal is to minimize the total lateness of all n jobs. That is, we wish to minimize (i) n Σ i=1 li Prove or disprove the optimality of scheduling Earliest Deadline First. Consider a list of n unique ordered integers, where you are allowed to remove m of them. The goal is to maximize the distance between the remaining closest numbers. As an example, consider the list [1,4,5,6,8,9], where we are allowed to remove two numbers. Here, an optimal solution would be to remove the numbers 5 and 8, leaving us with the list [1,4,6,9]. The distance between the closest remaining numbers is 2 (between 4 and 6). The proposed greedy algorithm to this problem is to take a pair of numbers which are currently closest together and remove the one which would result in the better solution. Using [1, 4, 5, 6, 8, 9] again as an example, the greedy algorithm would look at one of the closest pairs of numbers (4,5), (5,6) or (8,9). Without loss if generality assume it examines the pair (4,5), 5 is closer to 6 than 4 is to 1, so the algorithm would choose to remove 5, leaving the list [1,4,6,8,9]. The algorithm would then look again at a closest pair of numbers, (8,9) and remove 8, terminating to the solution [1,4,6,9]. Prove or disprove the optimality of this algorithm.

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter11: Nonlinear Programming
Section11.1: Review Of Differential Calculus
Problem 6P
icon
Related questions
Question

Please don't use AI for the answer! I would appreciate your human touch!

Consider the following problems and greedy algorithms. For each greedy algorithm,
prove or disprove its optimality.
(i)
Consider scheduling a set of jobs on a single resource, where each
job has a size, s, and a deadline, d;. Once you've determined a schedule
each job will have a finish time fi. The lateness of job i is defined to be
li = max(0, fidi). Here, our goal is to minimize the total lateness of all n
jobs. That is, we wish to minimize
(i)
n
Σ
i=1
li
Prove or disprove the optimality of scheduling Earliest Deadline First.
Consider a list of n unique ordered integers, where you are allowed
to remove m of them. The goal is to maximize the distance between the
remaining closest numbers. As an example, consider the list [1,4,5,6,8,9],
where we are allowed to remove two numbers. Here, an optimal solution would
be to remove the numbers 5 and 8, leaving us with the list [1,4,6,9]. The
distance between the closest remaining numbers is 2 (between 4 and 6). The
proposed greedy algorithm to this problem is to take a pair of numbers which
are currently closest together and remove the one which would result in the
better solution. Using [1, 4, 5, 6, 8, 9] again as an example, the greedy algorithm
would look at one of the closest pairs of numbers (4,5), (5,6) or (8,9). Without
loss if generality assume it examines the pair (4,5), 5 is closer to 6 than 4 is to
1, so the algorithm would choose to remove 5, leaving the list [1,4,6,8,9]. The
algorithm would then look again at a closest pair of numbers, (8,9) and remove
8, terminating to the solution [1,4,6,9]. Prove or disprove the optimality of
this algorithm.
Transcribed Image Text:Consider the following problems and greedy algorithms. For each greedy algorithm, prove or disprove its optimality. (i) Consider scheduling a set of jobs on a single resource, where each job has a size, s, and a deadline, d;. Once you've determined a schedule each job will have a finish time fi. The lateness of job i is defined to be li = max(0, fidi). Here, our goal is to minimize the total lateness of all n jobs. That is, we wish to minimize (i) n Σ i=1 li Prove or disprove the optimality of scheduling Earliest Deadline First. Consider a list of n unique ordered integers, where you are allowed to remove m of them. The goal is to maximize the distance between the remaining closest numbers. As an example, consider the list [1,4,5,6,8,9], where we are allowed to remove two numbers. Here, an optimal solution would be to remove the numbers 5 and 8, leaving us with the list [1,4,6,9]. The distance between the closest remaining numbers is 2 (between 4 and 6). The proposed greedy algorithm to this problem is to take a pair of numbers which are currently closest together and remove the one which would result in the better solution. Using [1, 4, 5, 6, 8, 9] again as an example, the greedy algorithm would look at one of the closest pairs of numbers (4,5), (5,6) or (8,9). Without loss if generality assume it examines the pair (4,5), 5 is closer to 6 than 4 is to 1, so the algorithm would choose to remove 5, leaving the list [1,4,6,8,9]. The algorithm would then look again at a closest pair of numbers, (8,9) and remove 8, terminating to the solution [1,4,6,9]. Prove or disprove the optimality of this algorithm.
Expert Solution
steps

Step by step

Solved in 2 steps with 8 images

Blurred answer
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning