Code: Select all
1
adsdsf
EDIT: bug found
Moderator: Board moderators
I won't say anything new, but it much helps when you think about reduction to minimum cost path cover of DAG. In CLR there is solution to minimum path cover of DAG and when someone understand it right, this task should be fairly easy.tobby wrote:Ah, so you mean using T as the nodes, and from S we get the edges? Then we need a mincost maxflow algorithm?