8 The Mathematics of Scheduling

Slides:



Advertisements
Similar presentations
1 Chapter 8 Approximation Algorithms (Part II). 2 Outline Scheduling Independent tasks Bin packing.
Advertisements

Excursions in Modern Mathematics Sixth Edition
CPE555A: Real-Time Embedded Systems
Chapter 3: Planning and Scheduling Lesson Plan
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Scheduling with Independent Tasks Notes 9 – Section 8.7.
Chapter 8: Scheduling “Science is organized knowledge. Wisdom is organized life.” -Immanuel Kant.
Critical Paths and Critical Paths Algorithm Notes 8 – Sections 8.5 & 8.6.
SCHEDULING Critical Activities are: B, F, I, M, Q.
Critical Paths.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
Scheduling Two people are camping out and wish to cook a simple supper consisting of soup and hamburgers. In order to prepare the supper, several tasks.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
The Mathematics of Scheduling Chapter 8. How long does it take to build a house? It depends on Size of the house Type of construction Number of workers.
Sequencing Problem.
A processor is a person, machine, computer, or robot etc., which works on a task. To solve a scheduling problem typically the tasks are scheduled to minimize.
Table of Contents Rational Functions: Vertical Asymptotes Vertical Asymptotes: A vertical asymptote of a rational function is a vertical line (equation:
Copyright © 2011 Pearson, Inc. 1.2 Functions and Their Properties.
Excursions in Modern Mathematics Sixth Edition
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
The importance of sequences and infinite series in calculus stems from Newton’s idea of representing functions as sums of infinite series.  For instance,
11 Table 2.1 defines a correspondence between a set of percent scores and a set of letter grades. For each score from 0 to 100, there corresponds only.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
CS453 Lecture 3.  A sequential algorithm is evaluated by its runtime (in general, asymptotic runtime as a function of input size).  The asymptotic runtime.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Planning and Scheduling Chapter 3 Jennifer Holland February 2, 2010.
Spring 2015 Mathematics in Management Science Machine Scheduling Problem Statement of MSP Assumptions & Goals Priority Lists List Processing Algorithm.
Scheduling policies for real- time embedded systems.
Exact methods for ALB ALB problem can be considered as a shortest path problem The complete graph need not be developed since one can stop as soon as in.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
An Efficient Algorithm for Scheduling Instructions with Deadline Constraints on ILP Machines Wu Hui Joxan Jaffar School of Computing National University.
Spring 2015 Mathematics in Management Science Critical Path Scheduling Critical Paths & Times Backflow Algorithm Critical Times PL Critical Path Algorithm.
Outline Introduction Minimizing the makespan Minimizing total flowtime
The Task. Competition Details To write a short story of no more than 800 words based on the competition topic. –When you see the topic on the next slide,
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
INTEGRALS We saw in Section 5.1 that a limit of the form arises when we compute an area. We also saw that it arises when we try to find the distance traveled.
5 INTEGRALS.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1.1 Modeling and Equation Solving.
Planning and Scheduling.  A job can be made up of a number of smaller tasks that can be completed by a number of different “processors.”  The processors.
Critical Paths and Scheduling Tasks Circuits, Paths, and Schedules.
Critical Path Scheduling (Txt: 8.5 & SOL: DM.10) CLASSWORK (DAY 30) EXAMPLE IN CLASS HOMEWORK (DAY 30): WORKSHEET DAY 30 QUIZ NEXT BLOCK.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Probability Rules!
Problem Solving in Chemistry. Skills Used in Problem Solving We are faced with problems each day, and not just in chemistry An answer needs to be found.
Chapter 2: Functions and Relations Section 2-3: Functions in the Real World.
Tardiness Bounds for Global EDF Scheduling on a Uniform Multiprocessor Kecheng Yang James H. Anderson Dept. of Computer Science UNC-Chapel Hill.
8 The Mathematics of Scheduling
Study Tips For A Great Education In Math.
Excursions in Modern Mathematics Sixth Edition
Scheduling: The Multi-Level Feedback Queue
Critical Path Analysis
Each set of points below represent an exponential function
Genome Assembly.
Copyright © Cengage Learning. All rights reserved.
Real Time Scheduling Mrs. K.M. Sanghavi.
Big O Notation.
Scheduling Theory By Sarah Walker 12/4/2018.
Critical Path Method Farrokh Alemi, Ph.D.
3.1 Earliest Start Times.
Planning and Scheduling
Numerical Analysis Lecture 2.
Chapter 10 Multiprocessor and Real-Time Scheduling
Planning and Scheduling
Critical Path Scheduling (Txt: 8.5 & SOL: DM.10)
CHAPTER 8 Resources and Resource Access Control
List Processing (SOL: DM.10)
Increasing and Decreasing Functions and the First Derivative Test
Chapter 3: Planning and Scheduling Lesson Plan
Scheduling: The Multi-Level Feedback Queue
Ch 4. Periodic Task Scheduling
Presentation transcript:

8 The Mathematics of Scheduling 8.1 The Basic Elements of Scheduling 8.2 Directed Graphs (Digraphs) 8.3 Scheduling with Priority Lists 8.4 The Decreasing-Time Algorithm 8.5 Critical Paths 8.6 The Critical-Path Algorithm 8.7 Scheduling with Independent Tasks

Independent Tasks We will briefly discuss what happens to scheduling problems in the special case when there are no precedence relations to worry about. This situation arises whenever we are scheduling tasks that are all independent. There are no efficient optimal algorithms known for scheduling, even when the tasks are all independent.

Scheduling with Independent Tasks The nuts-and-bolts details of creating a schedule using a priority list become tremendously simplified when there are no precedence relations to mess with. In this case, we just assign the tasks to the processors as they become free in exactly the order given by the priority list.

Scheduling with Independent Tasks Without precedence relations, the critical-path time of a task equals its processing time. This means that the critical-time list and decreasing-time list are exactly the same list, and, therefore, the decreasing-time algorithm and the critical-path algorithm become one and the same.

Example 8.13 Preparing for Lunch Priority list: A(70), B(90), C(100), D(70), E(80), F(20), G(20), H(80), I(10) Since there are no precedence relations, there are no ineligible tasks, and all tasks start out as ready tasks. As soon as a processor is free, it picks up the next available task in the priority list. From the bookkeeping point of view, this is a piece of cake. It is obvious from the figure on the next slide that this is not a very good schedule.

Example 8.13 Preparing for Lunch

Example 8.13 Preparing for Lunch If we use the decreasing-time priority list (which in this case is also the critical-time priority list), we are bound to get a much better schedule. Priority list: C(100), B(90), E(80), H(80), A(70), D(70), F(20), G(20), I(10)

Example 8.13 Preparing for Lunch This is clearly an optimal schedule, since there is no idle time for any of the processors throughout the project. The optimal finishing time for the project is Opt = 180 minutes.

Example 8.14 Preparing for Lunch: Part 2 After the success of your last banquet, you and your two friends are asked to prepare another banquet. This time it will be a seven-course meal. The courses are all independent tasks, and their processing times (in minutes) are A(50), B(30), C(40), D(30), E(50), F(30), and G(40).

Example 8.14 Preparing for Lunch: Part 2 The decreasing-time priority list is A(50), E(50), C(40), G(40), B(30), D(30), and F(30). The resulting schedule, has project finishing time Fin = 110 minutes.

Example 8.14 Preparing for Lunch: Part 2 An optimal schedule (found using old-fashioned trial and error) with finishing time Opt = 90 minutes is shown.

Example 8.14 Preparing for Lunch: Part 2 Knowing the optimal finishing time Opt = 90 minutes allows us to measure how much we were off when we used the decreasing-time priority list. As we did with earlier approximate solutions, we use the relative error. In this case, the relative error is (110 – 90)/90 = 20/90 ≈ 0.2222 = 22.22%.

RELATIVE ERROR OF A SCHEDULE For a schedule with finishing time Fin, the relative error (denoted by ) is given by

Graham Bound In 1969 American mathematician Ron Graham showed that when scheduling independent tasks using the critical-path algorithm with N processors, the relative error is at most (N – 1)/3N. We will call this upper bound for the relative error the Graham bound.

GRAHAM BOUND The Graham bound for the relative error  when scheduling a set of independent tasks with N processors is

Graham’s Bound The table shows the Graham bound for the relative error  for a few small values of N.

Graham’s Bound The table gives us a good sense of what is happening: As N grows, so does the Graham bound, but the Graham bound tapers off very quickly and will never go past 33 1/3%.

Graham’s Bound Graham’s bound essentially implies that with independent tasks we can use the critical-path algorithm with the assurance that the relative error is bounded–no matter how many tasks need to be scheduled or how many processors are available to carry them out the finishing time of the project will never be more than 33 1/3% more than the optimal finishing time.