Critical Paths and Scheduling Tasks Circuits, Paths, and Schedules.

Slides:



Advertisements
Similar presentations
SEQUENCING PROBLEMS.
Advertisements

Math for Liberal Studies. There is a list of numbers called weights These numbers represent objects that need to be packed into bins with a particular.
Algorithm Design Methods Spring 2007 CSE, POSTECH.
Bin Packing First fit decreasing algorithm
CALTECH CS137 Fall DeHon 1 CS137: Electronic Design Automation Day 19: November 21, 2005 Scheduling Introduction.
Scheduling Criteria CPU utilization – keep the CPU as busy as possible (from 0% to 100%) Throughput – # of processes that complete their execution per.
Chapter 3: Planning and Scheduling Lesson Plan
The Greedy Method1. 2 Outline and Reading The Greedy Method Technique (§5.1) Fractional Knapsack Problem (§5.1.1) Task Scheduling (§5.1.2) Minimum Spanning.
CS223 Advanced Data Structures and Algorithms 1 Greedy Algorithms Neil Tang 4/8/2010.
Chapter 5 Fundamental Algorithm Design Techniques.
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.
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.
Chapter 3: CPU Scheduling
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.
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.
CPU-Scheduling Whenever the CPU becomes idle, the operating system must select one of the processes in the ready queue to be executed. The short term scheduler.
Chapter 6: CPU Scheduling
Computer Architecture and Operating Systems CS 3230: Operating System Section Lecture OS-3 CPU Scheduling Department of Computer Science and Software Engineering.
Chapter 6 CPU SCHEDULING.
Critical Path Analysis
Spring 2015 Mathematics in Management Science Bin Packing The Problem The Algorithms.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
6.1 Hamilton Circuits and Paths: Hamilton Circuits and Paths: Hamilton Path: Travels to each vertex once and only once… Hamilton Path: Travels to each.
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.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
Spring 2015 Mathematics in Management Science Independent Tasks Scheduling Idpt Tasks Optimal Schedules Reducing FinTime.
3.1 : Resource Management Part2 :Processor Management.
Spring 2015 Mathematics in Management Science Critical Path Scheduling Critical Paths & Times Backflow Algorithm Critical Times PL Critical Path Algorithm.
Lecture 7: Scheduling preemptive/non-preemptive scheduler CPU bursts
The Greedy Method. The Greedy Method Technique The greedy method is a general algorithm design paradigm, built on the following elements: configurations:
Outline Introduction Minimizing the makespan Minimizing total flowtime
Parallel Machine Scheduling
Algorithm Design Methods 황승원 Fall 2011 CSE, POSTECH.
Greedy Algorithms Interval Scheduling and Fractional Knapsack These slides are based on the Lecture Notes by David Mount for the course CMSC 451 at the.
Excursions in Modern Mathematics, 7e: Copyright © 2010 Pearson Education, Inc. 8 The Mathematics of Scheduling 8.1The Basic Elements of Scheduling.
1 CPU Scheduling Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling.
I can describe the differences between Hamilton and Euler circuits and find efficient Hamilton circuits in graphs. Hamilton Circuits I can compare and.
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.
Unit 3 Scheduling and Planning. Literacy Practice Please read PG Stop at ASSUMPTIONS AND GOALS on page 68.
Critical Path Scheduling (Txt: 8.5 & SOL: DM.10) CLASSWORK (DAY 30) EXAMPLE IN CLASS HOMEWORK (DAY 30): WORKSHEET DAY 30 QUIZ NEXT BLOCK.
Chapter 14 Section 3 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Unit 2 Hamiltonian Circuits. Hamiltonian Circuit: A tour that starts at a vertex of a graph and visits each vertex once and only once, returning to where.
Introduction to Operating System Created by : Zahid Javed CPU Scheduling Fifth Lecture.
Chapter 3: Planning and Scheduling. Planning and Scheduling - Topics Resolving Conflict via Coloring Bin Packing Scheduling Tasks Critical-Path Schedules.
8 The Mathematics of Scheduling
Bin Packing First fit decreasing algorithm
Bin Packing First fit algorithm
Problem solving sequence
Excursions in Modern Mathematics Sixth Edition
Scheduling (Priority Based)
Chapter 6: CPU Scheduling
Operating System Concepts
Scheduling Theory By Sarah Walker 12/4/2018.
Bin Packing First fit decreasing algorithm
Bin packing – First fit algorithm
Outline Scheduling algorithms Multi-processor scheduling
Bin Packing First fit decreasing algorithm
Planning and Scheduling
Bin Packing First fit decreasing algorithm
Planning and Scheduling
Critical Path Scheduling (Txt: 8.5 & SOL: DM.10)
List Processing (SOL: DM.10)
Shortest-Job-First (SJR) Scheduling
CPU SCHEDULING CPU SCHEDULING.
Bin Packing First fit algorithm
Chapter 3: Planning and Scheduling Lesson Plan
Special Graphs: Modeling and Algorithms
Presentation transcript:

Critical Paths and Scheduling Tasks Circuits, Paths, and Schedules

Critical Path Analysis Sometimes we cannot simply choose our route as we have to do things in a certain order. A path is a logical progression from one task to the next. A task is an action that takes a certain amount of time. The total time to complete any task will depend completely on the critical path.

The critical path is the path with the longest time completion as this is the shortest time in which EVERYTHING can get completed.

Scheduling Tasks Processors may be machines or they may be humans. Either way, they are assigned a task. Once that task is completed, they move on to the next available task. Our goal is to schedule processors in such a way that they have as little idle (unproductive) time as possible.

The Rules 1. Once a processor begins a task it will continue that task without interruptions until the task is completed. 2. A processor cannot opt to skip a task that is available and remain idle. 3. We must abide by the order-requirement digraph. (A diagram-graph that has order restrictions built in.) 4. We will have a priority list.

List-Processing Algorithm A viable algorithm, even if not the optimal solution. We must know the number of processors, have a priority list, and have an order-requirement digraph. Assign the first ready task on the priority list that has not already been assigned to the lowest-numbered processor that is not currently working on a task.

Circuits, Paths, and Schedules Independent Tasks

Some tasks have no order required and therefore no order requirement-digraph. These are called independent tasks. Decreasing-time-list algorithm – List all completion times in decreasing order (biggest to smallest) and then assign tasks to processors in order.

Bin Packing Next-fit-decreasing Use the decreasing time list and place first item on first shelf. Continue as long as an item fits, otherwise move on to the next shelf. You can never return to a previous shelf. First-fit-decreasing Use the decreasing time list and place first item on first shelf. Continue as long as an item fits, otherwise move on to the next shelf. You CAN return to previous shelves. Worst-fit-decreasing Use the decreasing time list and place items in shelves with most space available first.