Individual exchange
Begin
For (Each bacterium)
If (Given probability > random)
  Share the information with two bacteria next to it
else
  Choose two random bacteria
  Share the information with two random bacteria
End if
End For
End
Pseudocode 1: Pseudocode for individual exchange.