## 27 thoughts on “BscCSSemester3 Data structures l4”

### Leave a Reply

You must be logged in to post a comment.

Skip to content
# BscCSSemester3 Data structures l4

##
27 thoughts on “BscCSSemester3 Data structures l4”

### Leave a Reply

You must be logged in to post a comment.

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

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

Row major order

A[1][2]=12

Column Major order

A[2][2]=18

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

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

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

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

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

Row major order

A[1][2]=10+[(1-1)*4+(2-1)]*2

=12

Column major order

A[2][2]=10+[(2-1)*3+(2-1)]*2

=18

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

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

Raw major order

A[1][2]=10+[(1-1)*4+(2-1)]*2

=12

Column major order

A[2][2]=10+[(2-1)*3+(2-1)]*2

=18

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

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

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)*n+(i-1)]*w

=10+[(2-1)*3+(2-1)]*2

=18

Row major order

A[1][2]=10+[(1-1)*4+(2-1)]*2

=12

Column major order

A[2][2]=10+[(2-1)*3+(2-1)]*2

=18

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

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

👍

Nice Class

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

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

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

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

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

Row major = 12

Column major = 18

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