Message Passing Optimization
Nearest Neighbor Example
Example 1 works better only when
- There are a small number of particles
- You have an super efficient broadcast
Example 2 works better more often because
- Computation is pipelined. Note that slave processor 0 is already busy before processor 1 even gets its input data.