Notes on scheduling and routing