{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# lec3 - MIT OpenCourseWare http/ocw.mit.edu 6.006...

This preview shows pages 1–3. Sign up to view the full content.

MIT OpenCourseWare http://ocw.mit.edu 6.006 Introduction to Algorithms Spring 2008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms .

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Lecture 3 Ver 2.0 Scheduling and Binary Search Trees 6.006 Spring 2008 Lecture 3: Scheduling and Binary Search Trees Lecture Overview Runway reservation system Definition How to solve with lists Binary Search Trees Operations Readings CLRS Chapter 10, 12. 1-3 Runway Reservation System Airport with single (very busy) runway (Boston 6 1) “Reservations” for future landings When plane lands, it is removed from set of pending events Reserve req specify “requested landing time” t Add t to the set of no other landings are scheduled within < 3 minutes either way. else error, don’t schedule Example 37 41 46 49 56 time (mins) now x x x x Figure 1: Runway Reservation System Example Let R denote the reserved landing times: R = (41 , 46 , 49 , 56) Request for time: 44 not allowed (46 �R ) 53 OK 20 not allowed (already past) | R | = n
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern