Flow decomposition algorithms for multiassembly problems