https://1library.org/document/zpnrxe30-problema-dos-intervalos-disjuntos.html