The swap is performed using XOR, which is typically written as a plus within a circle (⊕); for example:
a := 5b := 7a := a xor b (2)b := a xor b (5)a := b xor a (7)
The swap is performed using XOR, which is typically written as a plus within a circle (⊕); for example:
a := 5b := 7a := a xor b (2)b := a xor b (5)a := b xor a (7)