Excursions in Modern Mathematics, 7e: 8.7 - 1Copyright © 2010 Pearson Education, Inc. Scheduling with Independent Tasks Notes 9 – Section 8.7.

Slides:



Advertisements
Similar presentations
Excursions in Modern Mathematics Sixth Edition
Advertisements

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.
Precedence Constrained Scheduling Abhiram Ranade Dept. of CSE IIT Bombay.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 15 Chances, Probabilities, and Odds 15.1Random Experiments and.
Copyright © 2009 Pearson Education, Inc. CHAPTER 1: Graphs, Functions, and Models 1.1 Introduction to Graphing 1.2 Functions and Graphs 1.3 Linear Functions,
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Trapezoidal Rule Section 5.5.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 18, Slide 1 Chapter 18 Confidence Intervals for Proportions.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 5 The Mathematics of Getting Around 5.1Euler Circuit Problems 5.2What.
Eigenvalues and Eigenvectors
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Copyright © 2008 Pearson Education, Inc. Chapter 11 Probability and Calculus Copyright © 2008 Pearson Education, Inc.
Copyright © 2008 Pearson Education, Inc. Chapter 13 The Trigonometric Functions Copyright © 2008 Pearson Education, Inc.
Copyright © 2008 Pearson Education, Inc
Copyright © 2012 Pearson Education, Inc. Publishing as Addison Wesley 1.5 Linear Equations, Functions, Zeros, and Applications  Solve linear equations.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Probability Rules!
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 5.2.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Chain Rule Section 3.6.
Copyright © 2011 Pearson, Inc. 1.2 Functions and Their Properties.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall 5.4 Fundamental Theorem of Calculus.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 11 Systems of Equations.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Chapter 7 Section 6 Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Scheduling policies for real- time embedded systems.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Copyright © 2011 Pearson, Inc. 2.4 Real Zeros of Polynomial Functions.
Chapter 5 Section 2. Objectives 1 Copyright © 2012, 2008, 2004 Pearson Education, Inc. Use 0 as an exponent. Use negative numbers as exponents. Use the.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 14 Descriptive Statistics 14.1Graphical Descriptions of Data 14.2Variables.
Practice Slides Unlabeled. Copyright © 2010 Pearson Education, Inc. Plate 1.
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.
Slide 1 Copyright © 2015, 2011, 2008 Pearson Education, Inc. Factors and Prime Factorization Section2.2.
Spring 2015 Mathematics in Management Science Critical Path Scheduling Critical Paths & Times Backflow Algorithm Critical Times PL Critical Path Algorithm.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 2 The Mathematics of Power 2.1An Introduction to Weighted Voting.
Copyright © 2015, 2008, 2011 Pearson Education, Inc. Section 3.1, Slide 1 Chapter 3 Systems of Linear Equations.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 7 The Mathematics of Networks 7.1Trees 7.2Spanning Trees 7.3 Kruskal’s.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 16 Mathematics of Normal Distributions 16.1Approximately Normal.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 3 The Mathematics of Sharing 3.1Fair-Division Games 3.2Two Players:
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall 5.5 Trapezoidal Rule.
5 INTEGRALS.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 13 Collecting Statistical Data 13.1The Population 13.2Sampling.
Section 1.5 Linear Equations, Functions, Zeros, and Applications Copyright ©2013, 2009, 2006, 2001 Pearson Education, Inc.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 16 Mathematics of Normal Distributions 16.1Approximately Normal.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Section 6.4 Logarithmic Functions.
n Taking Notes and Keeping a Journal n Listening Skills n Working Together n Managing Your Time.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 6 The Mathematics of Touring 6.1Hamilton Paths and Hamilton Circuits.
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.
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.
8 The Mathematics of Scheduling
8 The Mathematics of Scheduling
Excursions in Modern Mathematics Sixth Edition
5.5 Trapezoidal Rule.
Building Exponential, Logarithmic, and Logistic Models from Data
Mathematical Models: Building Functions
Planning and Scheduling
Planning and Scheduling
List Processing (SOL: DM.10)
Section R.2 Algebra Essentials
Section 10.5 The Dot Product
Presentation transcript:

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Scheduling with Independent Tasks Notes 9 – Section 8.7

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Essential Learnings Students will understand and be able to schedule independent tasks.

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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. Independent Tasks

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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, thus, the decreasing-time algorithm and the critical-path algorithm become one and the same. Scheduling with Independent Tasks

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 – Preparing for Lunch

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Example – Preparing for Lunch

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 – Preparing for Lunch

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 – Preparing for Lunch

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 – Preparing for Lunch: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 – Preparing for Lunch: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. An optimal schedule (found using old-fashioned trial and error) with finishing time Opt = 90 minutes is shown. Example – Preparing for Lunch: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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 ≈ = 22.22%. Example – Preparing for Lunch: Part 2

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. For a schedule with finishing time Fin, the relative error (denoted by  ) is given by RELATIVE ERROR OF A SCHEDULE

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The Graham bound for the relative error  when scheduling a set of independent tasks with N processors is GRAHAM BOUND

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. The table shows the Graham bound for the relative error  for a few small values of N. Graham’s Bound

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 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. Graham’s Bound

Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. Assignment p. 313: 51, 52, 55, 58, 61, 67, 69