81
правка
Изменения
→Общий алгоритм
topSort(jobs)
modify(jobs)
'''Blocks[]''' b = blocks(jobs)
'''int''' ans = <tex> -\infty </tex>
'''for''' b[j] <tex>\in</tex> b
ans = max(ans, decompose(b[j])).first
'''return''' (ans, schedule)