algorithms race before exams