the multiarray abstract data type to accommodate multi-dimensional arrays of two or more dimensionswe define the multiarray adt and as with the earlier array abstract data typeswe limit the operations to those commonly provided by arrays in most programming languages that provide the array structure define multiarray adt multi-dimensional array consists of collection of elements organized into multiple dimensions individual elements are referenced by specifying an -tuple or subscript of multiple components( in )one for each dimension of the array all indices of the -tuple start at zero multiarrayd dn )creates multi-dimensional array of elements organized into -dimensions with each element initially set to none the number of dimensionswhich is specified by the number of argumentsmust be greater than the individual argumentsall of which must be greater than zeroindicate the lengths of the corresponding array dimensions the dimensions are specified from highest to lowestwhere is the highest possible dimension and dn is the lowest dims()returns the number of dimensions in the multi-dimensional array lengthdim )returns the length of the given array dimension the individual dimensions are numbered starting from where represents the firstor highestdimension possible in the array thusin an array with three dimensions indicates the number of tables in the box is the number of rowsand is the number of columns clearvalue )clears the array by setting each element to the given value getitem in )returns the value stored in the array at the element position indicated by the -tuple ( in all of the specified indices must be given and they must be within the valid range of the corresponding array dimensions accessed using the element operatory setitem in value )modifies the contents of the specified array element to contain the given value the element is specified by the -tuple ( in all of the subscript components must be given and they must be within the valid range of the corresponding array dimensions accessed using the element operatorx data organization most computer architectures provide mechanism at the hardware level for creating and using one-dimensional arrays programming languages need only provide