do the mincut prgramming set.