[10x15] How to use a Dictionary in Julia

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

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

  • @Remmy1995
    @Remmy1995 11 месяцев назад +1

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

  • @SundaraRamanR
    @SundaraRamanR 11 месяцев назад +1

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

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

      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 10 месяцев назад

    you should make an intermediate tutorial series.

  • @erikp6614
    @erikp6614 11 месяцев назад +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 11 месяцев назад

      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 11 месяцев назад +2

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

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

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