Combinatorial Algorithms for the Active Time and Busy Time Problems