[math-fun] Optimal advance tournament scheduling