2D array algorithms

The one-dimensional algorithms work on a 2D array along one row, one column or the whole grid, by fixing one index and looping the other, or by nesting the two loops.

From AP Computer Science A.