daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest May 16th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. distributor :-
  2. int split = 8;
  3. for (y < IMHT)
  4.   for (x < IMWD)
  5.       c_in :> val;
  6.       if (y < split-1)
  7.          if (x < split-1) send to worker 1
  8.          else if (x < split+1) send to worker 1 and 2
  9.          else send to worker 2
  10.       else if (y < split + 1)
  11.          if (x < split-1) send to worker 1 and 3
  12.          else if (x < split+1) send to worker 1, 2, 3 and 4
  13.          else send to worker 2 and 4
  14.      else
  15.          if (x < split-1) send to worker 3
  16.          else if (x < split+1) send to worker 3 and 4
  17.          else send to worker 4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top