The Decreasing-Time Algorithm

Similar documents
The Critical-Path Algorithm

Minimal Spanning Trees

Scheduling and Digraphs

Sampling Distribution Examples Sections 15.4, 15.5

Recursive Sequences. Lecture 24 Section 5.6. Robb T. Koether. Hampden-Sydney College. Wed, Feb 27, 2013

Rotations and Translations

Recursive Sequences. Lecture 24 Section 5.6. Robb T. Koether. Hampden-Sydney College. Wed, Feb 26, 2014

while Loops Lecture 13 Sections Robb T. Koether Wed, Sep 26, 2018 Hampden-Sydney College

The Traveling Salesman Problem Nearest-Neighbor Algorithm

Stack Applications. Lecture 27 Sections Robb T. Koether. Hampden-Sydney College. Wed, Mar 29, 2017

The CYK Parsing Algorithm

The Pairwise-Comparison Method

Boolean Expressions. Lecture 31 Sections 6.6, 6.7. Robb T. Koether. Hampden-Sydney College. Wed, Apr 8, 2015

XPath Lecture 34. Robb T. Koether. Hampden-Sydney College. Wed, Apr 11, 2012

The Traveling Salesman Problem Brute Force Method

Scope and Parameter Passing

Solving Recursive Sequences by Iteration

The Coefficient of Determination

Recursive Descent Parsers

Density Curves Sections

Scope and Parameter Passing

Boxplots. Lecture 17 Section Robb T. Koether. Hampden-Sydney College. Wed, Feb 10, 2010

XML Attributes. Lecture 33. Robb T. Koether. Hampden-Sydney College. Wed, Apr 25, 2018

XPath. Lecture 36. Robb T. Koether. Wed, Apr 16, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) XPath Wed, Apr 16, / 28

Implementing Linked Lists

Street-Routing Problems

Total Orders. Lecture 41 Section 8.5. Robb T. Koether. Hampden-Sydney College. Mon, Apr 8, 2013

LR Parsing - Conflicts

Function Definition Syntax Tree

Displaying Distributions - Quantitative Variables

The Graphics Pipeline

Binary Tree Applications

XQuery FLOWR Expressions Lecture 35

The Plurality-with-Elimination Method

The string Class. Lecture 21 Sections 2.9, 3.9, Robb T. Koether. Wed, Oct 17, Hampden-Sydney College

The Class Construct Part 1

Webpage Navigation. Lecture 27. Robb T. Koether. Hampden-Sydney College. Mon, Apr 2, 2018

Linked Lists. Lecture 16 Sections Robb T. Koether. Hampden-Sydney College. Wed, Feb 22, 2017

Magnification and Minification

Building the Abstract Syntax Trees

The Normal Distribution

Regular Expressions. Lecture 10 Sections Robb T. Koether. Hampden-Sydney College. Wed, Sep 14, 2016

Pointers. Lecture 1 Sections Robb T. Koether. Hampden-Sydney College. Wed, Jan 14, 2015

Recursion. Lecture 2 Sections Robb T. Koether. Hampden-Sydney College. Wed, Jan 17, 2018

Nondeterministic Programming in C++

List Iterators. Lecture 27 Section Robb T. Koether. Hampden-Sydney College. Wed, Apr 8, 2015

Aggregation. Lecture 7 Section Robb T. Koether. Hampden-Sydney College. Wed, Jan 29, 2014

jquery Lecture 34 Robb T. Koether Wed, Apr 10, 2013 Hampden-Sydney College Robb T. Koether (Hampden-Sydney College) jquery Wed, Apr 10, / 29

List Iterator Implementation

Recursion. Lecture 26 Sections , Robb T. Koether. Hampden-Sydney College. Mon, Apr 6, 2015

Operators. Lecture 12 Section Robb T. Koether. Hampden-Sydney College. Fri, Feb 9, 2018

PHP Queries and HTML Forms Lecture 23

The Graphics Pipeline

Basic CSS Lecture 17

Recognition of Tokens

List Iterators. Lecture 34 Section Robb T. Koether. Hampden-Sydney College. Wed, Apr 24, 2013

Abstract Data Types. Lecture 23 Section 7.1. Robb T. Koether. Hampden-Sydney College. Wed, Oct 24, 2012

Friends and Unary Operators

The Traveling Salesman Problem Cheapest-Link Algorithm

Introduction to Compiler Design

Programming Languages

Pointer Arithmetic. Lecture 4 Chapter 10. Robb T. Koether. Hampden-Sydney College. Wed, Jan 25, 2017

Form Validation. Lecture 25. Robb T. Koether. Hampden-Sydney College. Wed, Mar 23, 2018

DTDs and XML Attributes

Mipmaps. Lecture 35. Robb T. Koether. Hampden-Sydney College. Wed, Nov 18, 2015

Stack Applications. Lecture 25 Sections Robb T. Koether. Hampden-Sydney College. Mon, Mar 30, 2015

Introduction to Databases

The Projection Matrix

Recursive Linked Lists

Specular Reflection. Lecture 19. Robb T. Koether. Hampden-Sydney College. Wed, Oct 4, 2017

Inheritance: The Fundamental Functions

Triggers. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 14, 2018

Integer Overflow. Lecture 8 Section 2.5. Robb T. Koether. Hampden-Sydney College. Mon, Jan 27, 2014

The Constructors. Lecture 7 Sections Robb T. Koether. Hampden-Sydney College. Wed, Feb 1, 2017

Relational Databases

Ambient and Diffuse Light

Programming Languages

XML and AJAX Lecture 28

Function Usage. Lecture 15 Sections 6.3, 6.4. Robb T. Koether. Hampden-Sydney College. Mon, Oct 1, 2018

The Model Stack. Lecture 8. Robb T. Koether. Hampden-Sydney College. Wed, Sep 6, 2017

Pointers. Lecture 2 Sections Robb T. Koether. Hampden-Sydney College. Fri, Jan 18, 2013

The x86 Instruction Set

Insertions, Deletions, and Updates

The Mesh Class. Lecture 26. Robb T. Koether. Wed, Oct 28, Hampden-Sydney College

Pointers. Lecture 2 Sections Robb T. Koether. Hampden-Sydney College. Mon, Jan 20, 2014

Relational Databases Lecture 2

Stacks and their Applications

Dynamic Allocation of Memory

Shading Triangles. Lecture 37. Robb T. Koether. Hampden-Sydney College. Mon, Nov 30, 2015

Array Lists. Lecture 15. Robb T. Koether. Hampden-Sydney College. Fri, Feb 16, 2018

Dynamic Allocation of Memory

Inheritance: The Fundamental Functions

The Class Construct Part 2

LR Parsing - The Items

Binary Tree Implementation

Array Lists. Lecture 15. Robb T. Koether. Hampden-Sydney College. Mon, Feb 22, 2016

Binary Tree Implementation

Basic PHP Lecture 17

Fundamental Data Types

Functional Dependencies and Normal Forms

Transcription:

The Decreasing-Time Algorithm Lecture 36 Sections 8.4 Robb T. Koether Hampden-Sydney College Wed, Apr 18, 2018 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 1 / 10

1 The Decreasing-Time Algorithm 2 Assignment Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 2 / 10

Outline 1 The Decreasing-Time Algorithm 2 Assignment Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 3 / 10

The Decreasing-Time Algorithm Definition (The Decreasing-Time Algorithm) The decreasing-time algorithm creates a priority list in which the tasks arranged in order of decreasing time. It then proceeds as before. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 4 / 10

Example (The Decreasing-Time Algorithm) Apply the decreasing-time algorithm with 2 processors. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 5 / 10

Example (The Decreasing-Time Algorithm) Apply the decreasing-time algorithm with 2 processors. Apply it with 3 processors. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 5 / 10

Example (The Decreasing-Time Algorithm) Apply the decreasing-time algorithm with 2 processors. Apply it with 3 processors. Would it help to have 4 processors? Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 5 / 10

Example Example (Priority-List Scheduling) A B C D E F G H P2 P1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) E H F G A B D P2 P1 C 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) B E H F G D P2 A P1 C 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) E H F G D P2 A B P1 C 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) P2 P1 E H F G A C D B 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) E H G P2 A B P1 C D F 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) H G P2 A B E P1 C D F 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) G P2 A B E P1 C D F H 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example Example (Priority-List Scheduling) P2 A B E G P1 C D F H 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 6 / 10

Example (The Decreasing-Time Algorithm) A(3) B(4) C(1) D(3) E(1) F(2) H(1) G(1) I(1) Apply the decreasing-time algorithm with 2 processors. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 7 / 10

Example (The Decreasing-Time Algorithm) A(3) B(4) C(1) D(3) E(1) F(2) H(1) G(1) I(1) Apply the decreasing-time algorithm with 2 processors. Apply it with 3 processors. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 7 / 10

Example (The Decreasing-Time Algorithm) A(3) B(4) C(1) D(3) E(1) F(2) H(1) G(1) I(1) Apply the decreasing-time algorithm with 2 processors. Apply it with 3 processors. Would it help to have 4 processors? Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 7 / 10

Task Label Prec. Tasks Set up tables and chairs TC(1.5) Set tablecloths and napkins TN(0.5) TC Make flower arrangements FA(2.2) Unpack crystal, china, etc. CC(1.2) Put place settings on table PS(1.8) TN, CC Arrange table decorations TD(0.7) FA, PS Set up the sound system SS(1.4) Set up the bar SB(0.8) TC Schedule the project using 2 processors and the decreasing-time algorithm. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 8 / 10

Outline 1 The Decreasing-Time Algorithm 2 Assignment Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 9 / 10

Assignment Assignment Chapter 8: Exercises 43, 44, 45, 46, 49. Robb T. Koether (Hampden-Sydney College) The Decreasing-Time Algorithm Wed, Apr 18, 2018 10 / 10