BscCSSemester3 Data structures l4

27 thoughts on “BscCSSemester3 Data structures l4”

  1. Row major order
    A[1][2]=Lo+[(i-1)*n+(j-1)]*w
    =10+[(1-1)*4+(2-1)]*2
    =12
    Column major order
    A[2][2]=Lo+[(j-1)*m+(i-1)]*w
    =10+[(2-1)*3+(2-1)]*2
    =18

  2. Row major order
    A[1][2]=Lo+[(i-1)*n+(j-1)]*w
    = 10+[(1-1)*4+(2-1)]*2
    = 12
    Column major order
    A[2][2]=Lo+[(j-1)*m+(i-1)]*w
    =10+[(2-1)*3+(2-1)]*2
    =18

  3. Row major order
    A[1][2]=Lo+[(i-1)*n+(j-1)]*w
    = 10+[(1-1)*4+(2-1)]*2
    = 12
    Column major order
    A[2][2]=Lo+[(j-1)*m+(i-1)]*w
    =10+[(2-1)*3+(2-1)]*2
    =18

  4. Row major order
    A[1][2]=Lo+[(i-1)*n+(j-1)]*w
    = 10+[(1-1)*4+(2-1)]*2
    = 12
    Column major order
    A[2][2]=Lo+[(j-1)*m+(i-1)]*w
    =10+[(2-1)*3+(2-1)]*2
    =18

  5. Row major order
    A[1][2]=Lo+[(i-1)*n+(j-1)]*w
    =10+[(1-1)*4+(2-1)]*2
    =12
    Coloumn major order
    A[2][2]=Lo+[(j-1)*m+(I-1)]*w
    =10+[(2-1)*3+(2-1)*2
    =18

Leave a Reply