sets and maps since the subscripts start from zerothe ith subscript not only represents specific row but also indicates the number of complete rows skipped to reach the ith row knowing the position of the first element of each rowthe position for any element within - array can be determined given an element (ijof - arraythe storage location of that element in the - array is computed as index (iji ( the column indexjis not only the offset within the given row but also the number of elements that must be skipped in the ith row to reach the jth column to see this formula in actionagain consider the - array from figure and assume we want to access element ( finding the target element within the - array requires skipping over the first complete rows of elementsn and the first elements within row plugging the indices into the equation from above results in an index position of which corresponds to the position of element ( within the - array used to physically store the - array similar equations can be derived for arrays of higher dimensions given - array of size the - array offset of element ( stored using row-major order will be index ( ( ( for each component (iin the subscriptthe equation computes the number of elements that must be skipped within the corresponding dimension for examplethe factor ( indicates the number of elements in single table of the cube when it' multiplied by we get the number of complete tables to skip and in turn the number of elements to skip in order to arrive at the first element of table