Recitation 13 \\ the exercise at the end of the recitation

Hey,

Regarding to the instruction: “A<–B, B<–A”
can somebody clarify whether the goal is to swap A and B simultaneously or one after the other?

In other words, does B get the initial value of A, or its own value (that was just copied to A)?

Thanks,
Liav

A gets the initial value of B and B gets the initial value of A. This can be done in two cycles.

the meaning is swap. it can be implemented in two cycles.