Array algorithms

The standard array algorithms, a sum or average, a smallest or largest, a count, a check that some or all elements pass, neighbouring pairs, shifting and reversing, are each one traversal with the right variables set up before it.

From AP Computer Science A.