[10x15] How to use a Dictionary in Julia

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

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

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

    Didn't know about the pop! function until now. Learned something new 👍

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

    The visualization at the end is very useful 👍 looking forward to see where struct fits in on those axes.

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

      Glad you liked it! I don't have a visual for a struct, but in my opinion, a struct is somewhere between a NamedTuple and an Array.

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

    you should make an intermediate tutorial series.

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

    Hmm. Is it really the case that julia arrays are slower on larger data? Arrays in general are constant time and hash tables are generally implemented as arrays (using a hash function) and some way to avoid hash collisions. The constant time part (if there are no collisions) of value retrieval in a hash table generally comes from it being implemented as an array.

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

      Yes, if you know where the item is located it is constant time in the case of an array and for a dictionary. Note that the constant time is different for an array and a dictionary where the dictionary is slower.
      If you do not know where the item is stored you need to find it. This is linear time in the case of an array and still the same hash function for a dictionary.
      Also a dictionary is easier to interpret for humans since it tells you (with good variable naming) whar you are looking for instead of you knowing that the first index is important for x....

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

    teach us geospatial data analysis in julia, please! :) come on you know it would be fun

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

      I shall put it on my "to do" list!