8 2 Principle of Locality

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ต.ค. 2024
  • We share alot of courses in several fields in order to help other people learn what they are interested in.

ความคิดเห็น • 23

  • @Pimpinpark777
    @Pimpinpark777 6 ปีที่แล้ว +5

    Thank you so much sir. You do a much better job than Professor Mark at Michigan State University.

  • @MuhammadBilal-tu4ld
    @MuhammadBilal-tu4ld 5 ปีที่แล้ว +2

    Nice explanation and out of the slides material, nice.

  • @sampower7280
    @sampower7280 7 ปีที่แล้ว +4

    Very straight forward and easy to understand explanation, thank you.

  • @oscar-vf6vi
    @oscar-vf6vi 2 ปีที่แล้ว

    Maybe I heard wrong, but I heard the professor say sum += a[j] [i] [k] -- to increase spatial locality. I would change it to sum += a[i] [j] [k]

  • @paldensherpa7612
    @paldensherpa7612 6 ปีที่แล้ว

    coool ... its a clean and easy explanation... thanks a lot brother..

  • @riachevli8406
    @riachevli8406 3 ปีที่แล้ว +1

    so how to fix? fixed= a[i][j][k]; correct?

    • @emilhaldan3198
      @emilhaldan3198 3 ปีที่แล้ว +2

      Someone correct me if i'm wrong:
      i would say a[i][j][k] is correct. if you think about how data is stored in a 3D array, you essentially have an array, of arrays, of arrays.
      For spatial locality, we wish to access the same array when iterating.
      a[i] : will give us a 2D array
      a[i][j] will give us a 1D array
      a[i][j][k] will give us the k'th item of the a[i][j] array.
      This will mean that for each i and j, the array a[i][j] is stored and cache, and all elements of the array may be accessed sequentially, while utilizing spatial locality.
      Don't get fooled by the fancy wordsabove, i refreshed this 30 mins ago, and still doubt my self as i have an exam with it in a few hours :)
      I think? 👀

  • @akshanshthakur9235
    @akshanshthakur9235 2 ปีที่แล้ว

    Thank you for the video! Amazing

  • @levyax1964
    @levyax1964 ปีที่แล้ว

    Thank you, sir!

  • @anupamarao3783
    @anupamarao3783 5 ปีที่แล้ว +1

    can someone please explain how the 3 dimensional array program is fixed ?

  • @陳翰儒-d5m
    @陳翰儒-d5m 2 ปีที่แล้ว

    You save me, thank you very much.

  • @natb007
    @natb007 3 ปีที่แล้ว

    Thank you so much! This is of such great help!

  • @alexwilson8269
    @alexwilson8269 5 ปีที่แล้ว

    You are a genius

  • @MissOrka14
    @MissOrka14 2 ปีที่แล้ว

    Thank you so much!

  • @zamindar1360
    @zamindar1360 6 ปีที่แล้ว +1

    THANK U SIR........

  • @thefatalty
    @thefatalty 10 ปีที่แล้ว +4

    many thanks. :D

  • @taylorhao8868
    @taylorhao8868 6 ปีที่แล้ว

    life saver!

  • @NR_Tutorials
    @NR_Tutorials 5 ปีที่แล้ว +1

    Bolo To mast Samjhaya bidu

  • @yusufharuna8412
    @yusufharuna8412 6 ปีที่แล้ว

    Thanks

  • @fatmazehracift898
    @fatmazehracift898 2 ปีที่แล้ว

    n?