Data Structures in Golang - Hash Tables

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

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

  • @barnabassolomon1629
    @barnabassolomon1629 หลายเดือนก่อน +1

    dont know why you stopped making these tutorials
    it's the best one i've ever seen and love the extra effort you give to explain it with animations/drawings
    i hope you continue these series because its very very very very very very fantastic
    thank you for your content

  • @ricardomora7527
    @ricardomora7527 5 หลายเดือนก่อน +5

    Keep going Jamie!! You are doing a great job

  • @SaiyanJin85
    @SaiyanJin85 4 หลายเดือนก่อน +1

    I'm glad I found this channel!! So far the best explanations for me!

  • @KyleHarrington
    @KyleHarrington 2 หลายเดือนก่อน

    i will forever visualize South Park characters when i think of hash tables, and i'm so happy about that lol

  • @seong-yeonyang-og6zs
    @seong-yeonyang-og6zs หลายเดือนก่อน

    지식이 늘었따...

  • @anujdatar
    @anujdatar 4 หลายเดือนก่อน +2

    Great video. What do you use to make those animations? I teach manufacturing engineering at university, and would love to use something like this instead of clunky PowerPoint animations.

  • @a6b59ghj51d
    @a6b59ghj51d 4 หลายเดือนก่อน +2

    +1 for southpark reference

  • @CloudLine-Yazn
    @CloudLine-Yazn 5 หลายเดือนก่อน

    Very professional explanation , keep going !

  • @maxhoustonramirezmartel5991
    @maxhoustonramirezmartel5991 6 หลายเดือนก่อน +1

    You're amazing!!!!

  • @mo938
    @mo938 5 หลายเดือนก่อน +1

    Great video! Thanks for creating this!! I'm just confused about one thing....doesn't a hash map hold key:value pairs? Meaning, each key should have an associated value? This seems more like a "set" data structure, but allows non-distinct entries..?
    Am I missing something?

    • @a6b59ghj51d
      @a6b59ghj51d 4 หลายเดือนก่อน +2

      The set-like nature of hash tables comes into play in order to handle collisions. If her hash map was larger than 7, there would be less collisions and most of the buckets would only contain 1 entry which is ideal to retain constant time for search/insert/delete operations. The other thing that can be changed to reduce collision probability is the hashing algorithm but the size of the hash table is more significant.

    • @mo938
      @mo938 4 หลายเดือนก่อน +1

      @@a6b59ghj51d right but that still doesn't change the fact that this implementation doesn't hold key value pairs, like a hashmap or hashset is supposed to.

    • @a6b59ghj51d
      @a6b59ghj51d 4 หลายเดือนก่อน +1

      Hash tables are not required to implement key/value pairs but hashmaps which do this are a common application of Hash Tables. With that being said, technically this is storing key/value pairs in the sense that the value matches the key and the code can be trivially modified to store a value passed as an additional argument to the insert parameter.

    • @KyleHarrington
      @KyleHarrington 2 หลายเดือนก่อน +1

      Just add a `val` field to the BucketNode struct if you need it, it doesn't change much :P

  • @stagslash386
    @stagslash386 6 หลายเดือนก่อน +1

    What happend to your old channel??