Exercise Lover

July 11, 2007

Exercises 16.1-4

Filed under: 16.1 — yuhanlyu @ 8:27 am

Exercises 16.1-3

Filed under: 16.1 — yuhanlyu @ 8:24 am

Sorting the lectures’ starting time and finish time. When time t is one lecture’s starting time if there are free hall then assign to it, otherwise the current halls are all occupied, then we need to create a new hall. If time t is one lecture’s finish time, then release the hall. This algorithm is optimal and is easy to prove.

Exercises 16.1-2

Filed under: 16.1 — yuhanlyu @ 8:22 am

Yes, because we can exchange the start and end time and get a equal problem.

Exercises 16.1-1

Filed under: 16.1 — yuhanlyu @ 8:19 am

Blog at WordPress.com.