Answer from cs61c-ev (Roland Carlos 16583196) for Question 2 In the after code, the values are more localized, so spatial locality is taken advantage of better. Instead of the values going all the way up to 200, 20 times in Before, they only go up to 20, 200 times. In dealing with memory accesses, the addresses are closer to each other in after, so memory access is a bit faster. (The range would be 0-20 in after, as opposed to 0-200 in before).