1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
nlocal 3
n 6
npes 2
- p1 receives 10, 1, 2,
- p1 sorts, making 1, 2, 10, p1 sends 1, 2, 10,
- there are 2 total processes
- p0 generates 6 numbers: 7 6 3 10 1 2
- p0 sends 10,1,2, to p1
- p0 sorts its own elements, giving 3, 6, 7,
processor 0 element: 7
processor 0 element: 11772296
processor 0 element: 158130056
- p0 receives 1 , from p1
- p0 receives 2 , from p1
- p0 receives 10 , from p1