1.

Give the formula to calculate the memory address of an element using row-major ordering and column-major ordering methods.

Answer»

Row major order method formula
LOC(rowidx, colidx) = BaseAddress + W ( colsize * rowidx + colidx)
Column major order method formula
LOC(rowidx, colidx) = BaseAddress + W (rowidx + rowsize * colidx)



Discussion

No Comment Found