(Latest Revision:
Feb 08, 2021)
Problem on Interval Scheduling and Interval Partitioning
An Example Problem
We begin with a list of intervals:
(13, 15)
(17, 22)
(12, 17)
( 9, 10)
(12, 15)
( 9, 11)
(11, 14)
(10, 15)
(16, 19)
(12, 14)
(18, 23)
( 8, 11)
Here is the same list of intervals (stably) sorted by increasing finish time:
( 9, 10)
( 9, 11)
( 8, 11)
(11, 14)
(12, 14)
(13, 15)
(12, 15)
(10, 15)
(12, 17)
(16, 19)
(17, 22)
(18, 23)
Here is the list sorted by finish time, with letters next to the intervals chosen by the "Scheduling Intervals" algorithm:
( 9, 10) A
( 9, 11)
( 8, 11)
(11, 14) B
(12, 14)
(13, 15)
(12, 15)
(10, 15)
(12, 17)
(16, 19) C
(17, 22)
(18, 23)
Here is what you get when you take the original list of intervals and sort it (stably) by increasing start time:
( 8, 11)
( 9, 10)
( 9, 11)
(10, 15)
(11, 14)
(12, 17)
(12, 15)
(12, 14)
(13, 15)
(16, 19)
(17, 22)
(18, 23)
Here is the solution chosen by the Interval Partitioning Algorithm (the version that uses a priority queue):
Classroom A: (8, 11) (11, 14) (16, 19)
Classroom B: (9, 10) (10, 15) (18, 23)
Classroom C: (9, 11) (12, 17)
Classroom D: (12, 15)
Classroom E: (12, 14) (17, 22)
Classroom F: (13, 15)
The Assignment
Using the input below, work the same kind of problem as the example above illustrates.
(08, 13)
(16, 23)
(20, 26)
(07, 14)
(24, 27)
(21, 25)
(15, 19)
(03, 10)
(11, 17)
(00, 05)
(12, 18)
(06, 22)
(01, 04)
(02, 09)
Directions For Submitting Solution:
Prepare your solution to the problem.
COPY AND PASTE the text of your solution into an e-mail.
DO NOT ATTACH A FILE.
COPY AND PASTE the text into the message window of the e-mail.
Make this exact text the subject line of your e-mail:
CS 4440 Interval Scheduling Problem
Copy the exact text above and & paste it in as the subject line
to make sure it is correct.
Get it right, or get no credit.
Send the E-mail to
tester2@cs.csustan.edu