A round adds one edge
transcript
A route may use at most k transfers. Your code returns a cost. But it used too many transfers. The fix is one copy.
A round tries every edge once. It lowers a cost when it can. After round k, k edges are covered.
A chain of three transfers. Write in place, and one round walks it all. Read a copy, and one round adds one edge. Three rounds reach hub three.
In place reads its own writes. A copy reads the last round. Only the copy counts edges.
Copy the costs at the top of the round. Read the copy, write the real list. Stop after k rounds.
Count a chain of three transfers. In place, one round reports cost three. A copy reports unreached. Only the copy is honest.
A round adds one edge. Read a copy of the last round. Stop after k rounds. Full breakdown in the lecture.