ArticleslgStudy

computer science

Modified due-date scheduling heuristic

Modified due-date scheduling heuristic is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Modified due-date scheduling heuristic rather than just read about it. In short: The modified due-date (MDD) scheduling heuristic is a greedy heuristic used to solve the single-machine total weighted tardiness problem (SMTWTP). Presentation The modified due date scheduling is a scheduling heuristic created in 1982 by Baker and Bertrand, used to solve the NP-hard single machine total-weighted tardiness problem.

Key takeaways

  • Modified due-date scheduling heuristic belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Modified due-date scheduling heuristic to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Modified due-date scheduling heuristic from memory before moving on to harder problems.

Reference excerpt

The modified due-date (MDD) scheduling heuristic is a greedy heuristic used to solve the single-machine total weighted tardiness problem (SMTWTP).

Presentation The modified due date scheduling is a scheduling heuristic created in 1982 by Baker and Bertrand, used to solve the NP-hard single machine total-weighted tardiness problem. This problem is centered around reducing the global tardiness of a list of tasks which are characterized by their processing time, due date and weight by re-ordering them.

Algorithm

Principle This heuristic works the same way as other greedy algorithms. At each iteration, it finds the next job to schedule and add it to the list. This operation is repeated until no jobs are left unscheduled. MDD is similar to the earliest due date (EDD) heuristic except that MDD takes into account the partial sequence of job that have been already constructed, whereas EDD only looks at the jobs' due dates.

Implementation Here is an implementation of the MDD algorithm in pseudo-code. It takes in an unsorted list of tasks and return the list sorted by increasing modified due date:

function mdd(processed, task) return max(processed + task.processTime, task.dueDate) function mddSort(tasks) unsortedTasks = copy(tasks) sortedTasks = list processed = 0 while unsortedTasks is not empty bestTask = unsortedTasks.getFirst() bestMdd = mdd(processed, bestTask) for task in unsortedTasks mdd = mdd(processed, task) if mdd < bestMdd then bestMdd = mdd bestTask = task sortedTasks.pushBack(bestTask) unsortedTasks.remove(bestTask) processed += bestTask.processTime return sortedTasks

Practical example In this example we will schedule flight departures. Each flight is characterized by:

a due date: The time after which the plane is expected to have taken off a processing time: The amount of time the plane takes to take off a weight: An arbitrary value to specify the priority of the flight. We need to find an order for the flight to take off that will result in the smallest total weighted tardiness. For this example we will use the following values:

In the default order, the total weighted tardiness is 136. The first step is to compute the modified due date for each flight. Since the current time is 0 and, in our example, we don’t have any flight whose due date is smaller than its processing time, the mdd of each flight is equal to its due date:

The flight with the smallest MDD (Flight n° 3) is then processed, and the new modified due date is computed. The current time is now 5.

The operation is repeated until no more flights are left unscheduled. We obtain the following results:

In this order, the total weighted tardiness is 92. This example can be generalized to schedule any list of job characterized by a due date and a processing time.

Performance Applying this heuristic will result in a sorted list of tasks which tardiness cannot be reduced by adjacent pair-wise interchange. MDD’s complexity is O ( n ) {\displaystyle O(n)} .

Variations There is a version of MDD called weighted modified due date (WMDD) which takes into account the weights. In such a case, the evaluation function is replaced by:

function wmdd(processed, task) return (1 / task.weight) * max(task.processTime, task.dueDate - processed)

References

See also Scheduling (computing)

Worked examples

Example 1 — a first encounter with Modified due-date scheduling heuristic

Start with the simplest possible case. Write down what Modified due-date scheduling heuristic claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Modified due-date scheduling heuristic before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Modified due-date scheduling heuristic ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Modified due-date scheduling heuristic

In research
Modified due-date scheduling heuristic appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Modified due-date scheduling heuristic in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Modified due-date scheduling heuristic is common in secondary-school and first-year university syllabi. It links to neighbouring topics Optimal scheduling, Processor scheduling algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Modified due-date scheduling heuristic outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Modified due-date scheduling heuristic in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Modified due-date scheduling heuristic means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Modified due-date scheduling heuristic out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Modified due-date scheduling heuristic in simple terms?

The modified due-date (MDD) scheduling heuristic is a greedy heuristic used to solve the single-machine total weighted tardiness problem (SMTWTP). Presentation The modified due date scheduling is a scheduling heuristic created in 1982 by Baker and Bertrand, used to solve the NP-hard single machine…

Why does Modified due-date scheduling heuristic matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Modified due-date scheduling heuristic?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Modified due-date scheduling heuristic.

Tags

  • Optimal scheduling
  • Processor scheduling algorithms

Keep exploring