Problem
1. What is the index function for a two-dimensional rectangular table whose rows are indexed from 0 to m - 1 and whose columns are indexed from 0 ot n - 1, inclusive, under column-major ordering?
2. Give the index function, with row-major ordering, for a two-dimensional table with arbitrary bounds r to s , inclusive, for the row indices, and t to u, inclusive, for the column indices.
3. Find the index function, with the generalization of row-major ordering, for a table with d dimensions and arbitrary bounds for each dimension.