Answer from cs61c-ew (Joo-Rak Son 16103505) for Question 2 This depends on how your memory stores x. If cache loads a block of memory by column (j), then the code below is better. If cache loads a block of memory by row (i), then the code above is better. It comes down to the access speed of memory versus that of the cache.