-- Mar 13 In-Class Exercise Thread
1. Each step uses 2 map reduce rounds, so 40 map reduce rounds are required to simulate a 20 step PRAM computation.
2. For each accumulator, pass (i,acc,n,v) where i is the processor, acc is tells if this is an accumulator tuple, n is the accumulator number, and v is the value.
3. LoadProcid k. Replace v with i in the accumulator tuple. (i,acc,k,v) -> (i,acc,k,i)
4. No, in a given timestep PRAM processors could all be doing different instructions.
1. Each step uses 2 map reduce rounds, so 40 map reduce rounds are required to simulate a 20 step PRAM computation.
2. For each accumulator, pass (i,acc,n,v) where i is the processor, acc is tells if this is an accumulator tuple, n is the accumulator number, and v is the value.
3. LoadProcid k. Replace v with i in the accumulator tuple. (i,acc,k,v) -> (i,acc,k,i)
4. No, in a given timestep PRAM processors could all be doing different instructions.