Lec-6: 2D Arrays | Addressing in 2D Arrays | Row Major Order

Поделиться
HTML-код
  • Опубликовано: 11 янв 2025

Комментарии • 76

  • @__shagun
    @__shagun 18 дней назад +6

    For column major the formula will be:
    A[ i ][ j ] = [ ( j × m + i ) × size ] + B.A.
    here, m : no. of rows,
    B.A. : Base Address
    ●For example:
    Supose we need to find the address of '02' :
    Step 1 - Add the elements in a column as you did in the row major.
    Step 2 - The base address is 100 and the size is 1, so mark the elements accordingly.
    Step 3 - As we need to find the address of '02', we have i as '0' and j as '2' so the formula will be as follows:
    A[ 0 ][ 2 ] = [ ( 2 x 3 + 0 ) × 1 ] + 100
    = [ 6 × 1 ] + 100
    = 6 + 100
    = 106
    And as sir said in the video, if the indexing is from 1 rather than 0, just do ( i - 1 ) and ( j - 1 ) in the formula, i.e.,
    => A[ i ][ j ] = [ { ( j - 1 ) × m + ( i - 1 ) } × size ] + B.A.

  • @AkshayDogra-vg5gx
    @AkshayDogra-vg5gx 9 месяцев назад +5

    Amazing sir apki video se muje samaj aa hi jata hae bere simple waay se samjate ho ap sir thanks apka

  • @anishjaiswal902
    @anishjaiswal902 3 месяца назад +3

    nice sir 2 din se idhar udhar se padh rha tha formula learn kr rha tha apne 2 min me samjha diya

  • @Razi.thisSide
    @Razi.thisSide 10 месяцев назад +24

    ye banda ese example deta hai ki ek baar sunlo toh koi bhool nii sakta

  • @utkarshmishra2516
    @utkarshmishra2516 Месяц назад +2

    a[i][j] = [[(i * total no. of columns)+j]*incremental no. or size] + base address

  • @LataSalunke-w6u
    @LataSalunke-w6u 19 дней назад

    thanku so much sir best explanation 😍😍😍😍😍

  • @MdNafees-yp3gw
    @MdNafees-yp3gw Год назад +4

    Sir I followed u since 2 yr , ur teaching techniques is outstanding ❤

  • @Tahzeebk__99
    @Tahzeebk__99 Месяц назад +1

    Excelent!

  • @souravbiswas56677
    @souravbiswas56677 Год назад +38

    Sir ka voice kaise change ho geya? Voice kaisa aa raha he.

  • @nehulnikude9700
    @nehulnikude9700 Год назад +2

    Excellent explanation Sir! Example bohot sahi tha

  • @aryanagrahari4445
    @aryanagrahari4445 10 месяцев назад +2

    Best explanation sir ji🙏 now clear my all doubt on this question so thankyou so much.

  • @Utkarshkushwaha-ld8xh
    @Utkarshkushwaha-ld8xh 3 месяца назад +2

    Sir 1 D array me accessing elements samajh nhi aya mam ne clear nhi bataya , sirf rough writinh me mashup kar diya sab kuch

  • @rumiNITPatna
    @rumiNITPatna 3 месяца назад +1

    amazing video

  • @Mohammed-ix5je
    @Mohammed-ix5je Год назад +9

    Your explanation is vivid! Could you kindly create a playlist for MACHINE LEARNING please? I have that subject this semester.

  • @ankuledition
    @ankuledition 2 месяца назад +2

    Sir agar hmne (23) ka adress nikalna hoga to a(2)(3) lege ummed hai reply ayega ❤

  • @karthikaunnikrishnan9866
    @karthikaunnikrishnan9866 10 месяцев назад +2

    Super explanation from kerala

    • @Nature-kg9yp
      @Nature-kg9yp 7 месяцев назад +2

      Kerla se explanation nahi ho rahi😅

  • @Ramsharma-gs2bg
    @Ramsharma-gs2bg 3 месяца назад +3

    Because sir ki sadhi ho gayi hai isi liye wo patle ho gaye hai 😂😂😂😂

  • @Liveinwinters
    @Liveinwinters Год назад +4

    Sir Puri playlist complete Karo na DS ki.
    Mereko jarurat hai DS ki.
    I love only your videos.❤

  • @YugSinha-z3l
    @YugSinha-z3l Год назад +2

    Love your explainstion sir
    Watching this video at 1:39 A.M

  • @hananasif538
    @hananasif538 9 месяцев назад +1

    Agr 3 values ajain phr means jsy 108 etc

  • @maddyplyz
    @maddyplyz 9 месяцев назад +1

    Sir 1 question tha kya hum ise adress calculation bhi bol sakte hai?

  • @islamian223
    @islamian223 7 месяцев назад +1

    Koe bata skta hai? Sir ki is wali playlist ka kia name hai?C++ related?

  • @AtharvPandey-g5n
    @AtharvPandey-g5n 9 дней назад

    Sir ji one dimensional array ka address kese find Karter bta dijiye

  • @Pukhtoon11204
    @Pukhtoon11204 2 месяца назад +1

    Hamyen array size Kesy malom Karna hoga

  • @cricketfeveroff
    @cricketfeveroff 5 месяцев назад +1

    Sir at 2006 the size was 4006

  • @ravisahai5692
    @ravisahai5692 9 месяцев назад +4

    Column major ke video link share kr de jeya sir

  • @24_santanurath56
    @24_santanurath56 2 месяца назад +2

    Har koi ake apna formula thopke chela jata he aj concept clear hua dimag kharab tha ye kya formula he yad nenhi rehta ajse formula ratna iska band

  • @prantik9632
    @prantik9632 Год назад +8

    He sounds like he took some helium and decided to make videos

  • @Cuteprinces3096
    @Cuteprinces3096 10 месяцев назад +1

    Sir agar 21 ki Jaga 9 hota koi single number hota phir kaisay pta chalay ga Kai kitnay rows cross Karnay hai??
    Please answer kardain

  • @rezashamsi113
    @rezashamsi113 Год назад +1

    Sir ji EMRS Ka liye course leka aaeya na for computer science(PGT)

  • @storytime45594
    @storytime45594 Год назад +1

    Sir How does midjourney work?

  • @AktuPathshala
    @AktuPathshala Год назад +1

    Sir Please Microprocessor Ki Playlist Complete Upload Kar Dijiye..

  • @NikhilKumar-pi3je
    @NikhilKumar-pi3je 26 дней назад

    Video banate samay sir ko 😷 hua h

  • @m1m2120
    @m1m2120 Год назад +1

    Sir hpsc 1st ppr k liye mcq book suggest kre plz 🙏

  • @Editz_Boy_Ajeet
    @Editz_Boy_Ajeet Год назад +1

    @GateSmashers Dear Sir,
    I need your help please make a video on the Roadmap of OS development
    •what things actually we need to develop a complete operating system
    Please guide me #someone

  • @ABHISHEKKumar-hh1qf
    @ABHISHEKKumar-hh1qf Год назад +1

    Sir IB junior intelligence officer vacancy ko preparation kaise kare computer science ke liye
    Please sir ek video bana digea

  • @TheStoicWay-07
    @TheStoicWay-07 Год назад +4

    sir kamzoor hogye hyn ya mjhe lag rh hyn

  • @krshnn
    @krshnn Год назад +1

    Bhaiya kl Aapki tarah dikhte h 😅

  • @8421DIPESHWAGH
    @8421DIPESHWAGH Год назад +1

    thank you sir

  • @aliatabassum2684
    @aliatabassum2684 Год назад +1

    Please complete Data Structure playlist

  • @adityaantwal45
    @adityaantwal45 Год назад +2

    what happened to your voice sir?

  • @Thesodacakes
    @Thesodacakes Год назад

    #correction 🚨 : if index is 1 then you have to change FORMAT OF FORMULA: I-1* N is wrong ( as 1st mul then add ) it should be :- (N*I-1+J-1)*bytes+Base address
    So for ease remember it as index 0: { (N*I+J)*W(Size/bytes)+B(base address) 8:08
    Correct me if I'm wrong...
    My prev sem went absolutely well.... All because of you Bhai... I know aap guru hain but somehow I feel like mera bade bhai hain aur wo samjha re h sab.. So Bhai hi bulaunga 🌝❣️

  • @abdulkhalid331
    @abdulkhalid331 Год назад +1

    Plz Dynamic programming me jo matrix chain product wala topic hai us sy related video upload kr dyn ..... mera monday ko final exam hai DAA ka plz ....

  • @AdityaRana70
    @AdityaRana70 Год назад +2

    thankuuuuuuuu

  • @kittyshorts1712
    @kittyshorts1712 Год назад

    Sir ugc net ki course start krie n

  • @palakash111
    @palakash111 Год назад +4

    sir aap itne kamzor kaise ho gaye .?

    • @diamondlover441
      @diamondlover441 3 месяца назад

      😂✊🏻💦

    • @Josuke217
      @Josuke217 2 месяца назад

      ​@@diamondlover441kya joke maara :/
      Mutthi maarne se koi kamzor nahi banta , ye myth hai

  • @Code_with_pavan
    @Code_with_pavan Год назад

    ❤❤

  • @pankajmaudekar2489
    @pankajmaudekar2489 Год назад

    Please make video on fence fill algorithm in computer graphics with example

  • @FinancialBin3
    @FinancialBin3 11 месяцев назад

    Best way of explanation,
    Maza aa gaya sir
    Thanks 🙏🏻🙏🏻
    1D array aapke hi channel p ek mam s pada tha, very poor way of teaching, i disliked the video 💯

  • @himanshuraghav5614
    @himanshuraghav5614 Год назад +1

    Sir aapki voice change ho gyi h 🤔

  • @RatneshKumar-ob6lv
    @RatneshKumar-ob6lv 10 месяцев назад +1

    sir apka voice speed bhut fast hai.....
    maa'm ke respect mein..😒😒😒😒

  • @aleshsharma3651
    @aleshsharma3651 10 месяцев назад

    But int take 2 ir 4 byte so logic is not correct

  • @SuryaSurya-jp3pv
    @SuryaSurya-jp3pv Год назад

    Can you please take in English language bro

  • @souravkumar3749
    @souravkumar3749 2 месяца назад

    channel band krle jab adhure topics kara rakhe h to

    • @fact_boii_ak
      @fact_boii_ak Месяц назад

      Bro exam se pehle bacche itna hi smjege😂

  • @saraalabdulla3319
    @saraalabdulla3319 8 месяцев назад +1

    sir speak slowly please

    • @WAKEUPLIONS
      @WAKEUPLIONS 3 месяца назад

      Ma yahan sir ko 1.75x ki speed pay sun rhi hon 😅bcz kal exam hai 1x pay boht slow bol rhay

  • @tusharsonkar07
    @tusharsonkar07 10 месяцев назад

    sir ye to column major order ka formula bta diya aapne😢

  • @ayan.bhunia
    @ayan.bhunia Год назад

    Sir can you create a video about booth's algorithm???
    Plz🥹🥹
    It is my earnings request 🙏

  • @ABHISHEKKumar-hh1qf
    @ABHISHEKKumar-hh1qf Год назад

    Sir IB junior intelligence officer vacancy ko preparation kaise kare computer science ke liye
    Please sir ek video bana digea

  • @Kishan_Gupta2.0
    @Kishan_Gupta2.0 Год назад

    Please make video of columns major order

  • @ABHISHEKKumar-hh1qf
    @ABHISHEKKumar-hh1qf Год назад

    Sir IB junior intelligence officer vacancy ko preparation kaise kare computer science ke liye
    Please sir ek video bana digea