Greedy Algorithms for Interval Scheduling: Minimizing Lateness - Prof. Chandra S. Chekuri, Study notes of Algorithms and Programming

An overview of greedy algorithms for interval scheduling with a focus on minimizing lateness. The algorithm's correctness, running time, and extensions. Topics include interval scheduling, interval partitioning, and greedy template. Several algorithms are discussed, such as earliest start time, optimal greedy algorithm, and greedy template for minimizing lateness.

Typology: Study notes

Pre 2010

Uploaded on 03/16/2009

koofers-user-7ov
koofers-user-7ov 🇺🇸

10 documents

1 / 119

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 473: Algorithms
Chandra Chekuri
3228 Siebel Center
University of Illinois, Urbana-Champaign
Fall 2008
Chekuri CS473ug
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Greedy Algorithms for Interval Scheduling: Minimizing Lateness - Prof. Chandra S. Chekuri and more Study notes Algorithms and Programming in PDF only on Docsity!

CS 473: Algorithms

Chandra Chekuri [email protected] 3228 Siebel Center

University of Illinois, Urbana-Champaign

Fall 2008

Problem Types

Part I

Problems and Terminology

Problem Types

Terminology

A problem Π consists of an infinite collection of inputs {I 1 , I 2 ,... , }. Each input is referred to as an instance. The size of an instance I is the number of bits in its representation. For an instance I , sol(I ) is a set of feasible solutions to I. Typical implicit assumption: given instance I and y ∈ Σ∗, there is an way to check if y ∈ sol(I ). In other words, problem is in NP. For optimization problems each solution s ∈ sol(I ) has an associated value. Typical implicit assumption: given s, can compute value efficiently.

Problem Types

Problem Types

Decision Problem: Given I output whether sol(I ) = ∅ or not. Search Problem: Given I , find a solution s ∈ sol(I ) if sol(I ) 6 = ∅. Optimization Problem: Given I , Minimization problem. Find a solution s ∈ sol(I ) of minimum value Maximization problem. Find a solution s ∈ sol(I ) of maximum value Notation: opt(I ): interchangeably (when there is no confusion) used to denote the value of an optimum solution or some fixed optimum solution.

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

What is a Greedy Algorithm?

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

What is a Greedy Algorithm?

No real consensus on a universal definition.

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

Pros and Cons of Greedy Algorithms

Pros: Usually (too) easy to design greedy algorithms Easy to implement and often run fast since they are simple Several important cases where they are effective/optimal Lead to a first-cut heuristic when problem not well understood

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

Pros and Cons of Greedy Algorithms

Pros: Usually (too) easy to design greedy algorithms Easy to implement and often run fast since they are simple Several important cases where they are effective/optimal Lead to a first-cut heuristic when problem not well understood Cons: Very often greedy algorithms don’t work. Easy to lull oneself into believing they work Many greedy algorithms possible for a problem and no structured way to find effective ones

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

Greedy Algorithm Types

Crude classification: Non-adaptive: fix some ordering of decisions apriori and stick with the order Adaptive: make decisions adaptively but greedily/locally at each step

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

Greedy Algorithm Types

Crude classification: Non-adaptive: fix some ordering of decisions apriori and stick with the order Adaptive: make decisions adaptively but greedily/locally at each step

Plan: See several examples Pick up some proof techniques

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

The AlgorithmCorrectness Running TimeExtensions and Comments

Interval Scheduling

Input A set of jobs with start and finish times to be scheduled on a resource (example: classes and class rooms) Goal Schedule as many jobs as possible Two jobs with overlapping intervals cannot both be scheduled!

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

The AlgorithmCorrectness Running TimeExtensions and Comments

Interval Scheduling

Input A set of jobs with start and finish times to be scheduled on a resource (example: classes and class rooms) Goal Schedule as many jobs as possible Two jobs with overlapping intervals cannot both be scheduled!

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

The AlgorithmCorrectness Running TimeExtensions and Comments

Greedy Template

Initially R is the set of all requests A is empty (* A will store all the jobs that will be scheduled *) while R is not empty choose i ∈ R add i to A remove from R all requests that overlap with i return the set A

Main task: Decide the order in which to process requests in R ES SP FC EF

Interval Scheduling Scheduling to Minimize LatenessInterval Partitioning

The AlgorithmCorrectness Running TimeExtensions and Comments

Earliest Start Time

Process jobs in the order of their starting times, beginning with those that start earliest.

Back Counter