3. Moving Operations Outside Loop
Goal: Use a priori knowledge of the algorithm to avoid repeated operations
Identify calculations that produce constant results over the duration of the loop
Move redundant work outside the loop
Previous slide
Next slide
Back to first slide
View graphic version