Let d = number of classroom that the algorithm allocates
classroom d is opened because we needed to schedule a lecture, say j, that is incompatible with all d-1 other classroom
these d lectures each end after Sj
since we sorted by start time, all these incompatibilities are caused by lectures that start no later then Sj
thus, we have d lectures overlapping at time Sj + E