Address calculation in 1D and 2D arrays| Practice Problems | Data Structure
Вставка
- Опубліковано 7 вер 2024
- In this video, we will learn how to calculate address of an element in 1 dimensional and 2 dimensional arrays with practice problems. Solution of practice problems will be provided in next tutorial.
Our DS teacher took 3 hours to explain this to the whole class. Thank for explaining this easily and very quickly.
😊
Aap ds m pdhti ho
Our teacher took whole semester to teach this but was still unable
great explaination
:)
Mam you are best teacher..you explain this very well ...thku for help us 😊
:)
Thanks mam its very helpful for me
😊
7:55
Second problem
245 A[215]
323 A[241]
First problem
190 A[15]
A[15] will have 180
since index can't be negative so lowest will be 0th index.
@@kkn2k19 Really bro?
Answers for 1D are: (i) :- 245
(ii) :- 323
You may check your answers from this video. ua-cam.com/video/w-mImfPgCbI/v-deo.html
This video contains all the solution of the given practice problems
chutiye gaklat hai 1st ka ans the right ans is 190
This is very very helpful video thankssss mam 🙏🙏🙏🙏
😊
maam whats the point of providing upper boind in 1D array questions
Helpful explanation
Glad you think so!
Thank You maam.
😊
One of the best
😊
Thank you Ma'am
:)
Thanks mam
Mere DS Ke teacher ne toh mujhe dara diya tha
Mere kuch samjh nahi aa rhaa tha
Par ab aa rah ah
😊👍
2-d array
1)608
2)155 for column (m)
can you explane my answer is 680
Great job mam. Please share the video of multi dimensional array.
😊
1d array answer
190
245
323
2d array answers
590
608
2285
1660
126
128
704
👍
arrayindex cannot be negative so how to perform it or what to take the lower bound
Lower bound will be given in que... otherwise you may take 0
Thank you ma'am.
😊
❤️❤️best
😊
Row major m A[i][j]= [1][2] hone chiye na kuki 1st row thi or second column tha ?
thank u ma'am
😊
thanku mam
:)
Thankyou so much
:)
But when to use row major or column major because ans is one only na
You may use anyone and basic techniques is same... By default when it is not mentioned in question, we take row major
@@computershastra thanks
:)
Answe for 1d array 245 and 323
1d array 190 and 323
Thankyoooooo mam😘
:)
Thanks mam 😘
:)
👍
Ma'am 3d array ki topic cover nhi ki aapne aur aktu exam me 3d array se questions aate hn... 😢
I am sorry dear.. will try to cover that topic soon... you may find standard formula and use that for the time being
@@computershastra Okay ma'am... Thank you ✍️
😊
Maam why don't u make more video's
I am busy with few things
Mam in exam we can do any one method in 2d array??
Yes
Generally, we use row-wise notation
Is k index no.
"in array integer require 4 bytes to store data "
Is this a question or a statement?
@@computershastra Question probably ,becuase it takes 4 bytes and not 2 as you described in vid
Can you pinpoint question or timeline... in general, integer may take two or four bytes depending upon the compiler
Mam int ka size toh 4 hota h fir 2 kyu use kiya
Datatype ka size compiler pe depend krta h.. kuch compiler 2 bytes lete h kuch 4
@@computershastra okay and thanks for reply...
Your video is very helpful 😊😊😊😊
:)
qki wo compiler p deoend krta hai wo kitna byte lega
Ma'am practice problems ke solution kha hai
ua-cam.com/video/w-mImfPgCbI/v-deo.html
Ma'am solution video?
ua-cam.com/video/w-mImfPgCbI/v-deo.html
mai aapki bolne ki speed bahut low hai jab tak dekhunga tab tak exam completed ho jayega 😢
Can watch on 1.5x speed