Hash Tables - Data Structures and Algorithms

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

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

  • @Sauce-ke
    @Sauce-ke 4 года назад +86

    “Theres also John Cena but you cant see him” HAHAHAHAHA I lost it right there lol.

  • @SSMLivingPictures
    @SSMLivingPictures 4 года назад +10

    Simply the most clear, concise and amiable programming instructor in my experience. I'm working through his Java and C# courses and he makes it fun and I'm learning at an unprecedented rate. Many digi-high fives to you Caleb.

  • @rugmaable
    @rugmaable Год назад +3

    you just explain with a sense of humor. I couldn't hold myself when he said" if you haven't been following on the linked list, face the consquenses." hahahahah. Job well done Caleb. You always have a way of explaining complex concepts

  • @antonlinden5216
    @antonlinden5216 4 года назад +9

    Great video! Caleb, perfect for my algorithms course at uni.
    The method you resolved the collision is called hash chaining if anyone is wondering.
    As you said, there is a whole lot of different methods to solve a has collision.

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

    You're the man, Caleb. Thank you for sharing your knowledge with us. You're a great teacher.

  • @eleanorcarrano6316
    @eleanorcarrano6316 6 месяцев назад

    Thank you, this really helped, as my main question about this was how a hash table differs from a normal array. I kept asking why we needed to come up with another way of looking things up if we already knew the index number, but I guess we don't always know that! So finding a way to basically use the data to index itself is useful!

  • @pg.n5694
    @pg.n5694 3 года назад +11

    i pressed like immediately after hearing - “There's also John Cena but you cant see him” . LOVED IT

  • @yuhema11
    @yuhema11 3 года назад +3

    Thank you so much sir! I watched a bunch of videos about hash tables on RUclips and yours is the most comprehensive one! Super clear and easy to follow! Good job!

  • @keelnu
    @keelnu 4 года назад +2

    Caleb - I love your videos. Your explanation of what hash tables are and how they work (and not just how to use them) helped me a ton. Keep up the great work!

  • @RaGa_BABA
    @RaGa_BABA 4 года назад +4

    I dont understand why your videos have less views...you deserve far better

  • @parantikaghosh4396
    @parantikaghosh4396 2 года назад +2

    You're the best teacher I ever got for Python, I can't thank you enough for all the videos!!!

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

    i like how i can learn and have fun at the same time

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

    Finally understood what hash table is, thanks Caleb

  • @aaronroyan4021
    @aaronroyan4021 3 года назад +6

    Hey Caleb could you do a small video on the difference between HashTable, HashMap and HashSet
    It would be much appreciated
    Cheers mate

  • @theteacher010
    @theteacher010 4 года назад +3

    19:00
    How does the algorithm know after being passed through the Hash Function that it really doesn't want John, and that it wants the next person down the linked list?
    How would it know if John was the right one?

    • @nishantkamboj5973
      @nishantkamboj5973 3 года назад +3

      Hey, it has the key name. Key is always unique in hashtable so it matches the key name in the linked list untill it finds the match. Let me know if you have any confusion. Happy Coding.

  • @g.ryanpeterson9686
    @g.ryanpeterson9686 2 года назад

    Love your teaching style, Caleb! You make it very clear.

  • @frankdong8582
    @frankdong8582 2 года назад

    after so many classes I've watchd, yours is the best! :)

  • @atnodc
    @atnodc 3 года назад +1

    Really Great Series, really good work. well done.

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

    Thanks for the explanation!

  • @gregf9160
    @gregf9160 4 года назад +2

    "We don't want John. John smells weird" -- oh, honey, tell me about it! This fella is pure gold.

  • @husseinhassan2389
    @husseinhassan2389 4 года назад +1

    Really good explanation Keep it up!

  • @CamFocusApp
    @CamFocusApp 2 года назад

    I love you man, thanks for this

  • @muhammadaarizmarzuq295
    @muhammadaarizmarzuq295 2 года назад +1

    "There's also John Cena, we can't see him", perfection

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

    i laughed so hard at the part when you said do we explode, peak acting ;))) anywhos, thank you so much for this clear explanation on has tables :)

  • @javlontursunov6527
    @javlontursunov6527 2 года назад

    Man thank you, great lecture.

  • @zeamanualfeleke8716
    @zeamanualfeleke8716 2 года назад

    You're the best teacher

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

    Hi, thanks so much for a great video! I see that Dictionaries in Python are used for both Hash Tables and Hash maps. Can you please explain what's the difference theoretically (in CS) between HashTables and Hash Maps and also specifically in Python how dictionary DS can be used for both of them? Thank you so much in advance! greatly appreciate it!

  • @programmonky2505
    @programmonky2505 2 года назад

    nice....Feels like you are learning how to write with left hand

  • @波吉-n1y
    @波吉-n1y 2 года назад

    you are really the best

  • @deb5976
    @deb5976 2 года назад

    Great video!

  • @indiai078
    @indiai078 2 года назад

    16:38 is was nyc expression

  • @jackmadsen95
    @jackmadsen95 7 месяцев назад

    caleb curry is the goat

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

    Perfect thank you ❤

  • @GnarlyGooch
    @GnarlyGooch 2 года назад

    Cheers mate!

  • @simaoalicechen2448
    @simaoalicechen2448 4 года назад

    Very funny and good video. Good job!

  • @rychubagaznik9246
    @rychubagaznik9246 9 месяцев назад

    thank you!

  • @stickmanbattle997
    @stickmanbattle997 3 года назад

    I loved how caleb act when he want to insert ellen 😂

  • @heyjulyabas1681
    @heyjulyabas1681 3 года назад

    THANK YOU..

  • @vikramjitsingh109
    @vikramjitsingh109 2 года назад

    I liked your video as soon as possible after hearing the Cena joke.

  • @isaiassalles1180
    @isaiassalles1180 2 года назад +1

    16:35 that is a hell of an actor ladies and gentlemen

  • @ChadTower
    @ChadTower 2 года назад +1

    You can typically see John Cena if you pass by reference, I think. You don't have to see him straight on.

    • @ChadTower
      @ChadTower 2 года назад

      OH NO I WAS WRONG John ended up in index 4 with a key of 664.

  • @Layarion
    @Layarion 2 года назад

    Please explain, c# is my language, how a hash table differs from a Dictionary class?

  • @reccarefe
    @reccarefe 3 года назад

    What is the worst-case running time for inserting n key-value pairs into an initially empty map that is
    implemented with a list?

  • @goodknight3072
    @goodknight3072 3 года назад +1

    14:06 6 goes into 660 eleven times. I know what you did there, but still funny.

  • @luckylep09
    @luckylep09 3 года назад

    Thanks chef Curry

  • @clo-1588
    @clo-1588 2 года назад

    you're very good, I like your videos a lot. They are well explained but they also make me laugh :)

  • @daresdares9181
    @daresdares9181 3 года назад

    great video

  • @LawrenceAaronLuther
    @LawrenceAaronLuther 8 месяцев назад

    ah, fellow lefty, the legible but pitifully average handwriting hits close to home. however the explanation was exceptional, many thanks

  • @roshinsoni
    @roshinsoni 2 года назад

    2:07 underrated joke xD

  • @valkiriaaquatica
    @valkiriaaquatica 3 года назад

    bro you are just a semi-god

  • @ddimwhite4638
    @ddimwhite4638 4 года назад

    Хороший видос. Как, впрочем, и остальные его видео.

  • @basudevadhikari22
    @basudevadhikari22 2 года назад

    2:09 I paused there for a second.

  • @anthonygonsalvis121
    @anthonygonsalvis121 3 года назад +1

    "That's why all that linked list garbage is now useful..." such a humble dork ;-)

  • @webrevolution.
    @webrevolution. 2 года назад

    14:10
    6 goes into 660 eleven times? How?

    • @Kpop-eye-f7t
      @Kpop-eye-f7t Год назад

      110 times. He made a mistake but the remainder is still 4 so doesn't affect anything.

    • @webrevolution.
      @webrevolution. Год назад

      @@Kpop-eye-f7t I was pointing out the mistake. Having the result casually be correct is just fortunate.
      Like taking an multiple choice exam and giving the correct answer by chance, not cause you got there by yourself.

  • @dnlbellfield
    @dnlbellfield 3 года назад

    8:23

  • @Денис-ж3ф5р
    @Денис-ж3ф5р 3 года назад

    16: 44 HAHAHA!!!

  • @giovannamunoz1120
    @giovannamunoz1120 2 года назад

    I hope I don't explode during my tech interview tomorrow :ooo

  • @ayubaalim2201
    @ayubaalim2201 3 года назад +1

    my DREAMS from Somalia

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

    you get a like for the john cena joke

  • @jmerrick298
    @jmerrick298 2 года назад

    Great way of teaching, its all clear. Say hi to John Cena

  • @onnbasiran9534
    @onnbasiran9534 3 года назад

    i really can't get.. how "664 % 6 (664 modulus 6) you can get 4. I need more explanation. Tqvm indeed

    • @SuperOnlyP
      @SuperOnlyP 3 года назад

      it is like:
      664 | 6
      660 | 110
      - 6 divide by 6 = 1
      - 6 divide by 6 = 1
      - 4 divide by 6 = 0
      => 664 - 660 = 4 is the remainder

    • @Kpop-eye-f7t
      @Kpop-eye-f7t Год назад

      Modulus is just the remainder...ignore everything else.

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

    I subscribed because of the John Cena joke

  • @sathishkumar2852
    @sathishkumar2852 2 года назад

    👏👏👏

  • @asfarjamil8289
    @asfarjamil8289 2 года назад

    Great vid! I'll let you probe me any day Caleb.

  • @zainabfahim8714
    @zainabfahim8714 3 года назад +1

    Or you'll get some linear probing 😂

  • @zainabfahim8714
    @zainabfahim8714 3 года назад

    O of N that's gross

  • @shehtabmasud9612
    @shehtabmasud9612 2 года назад

    FACE THE CONSEQUENCES😂

  • @ShishirHank21
    @ShishirHank21 4 года назад +1

    FIRST VIEW!

  • @zainabfahim8714
    @zainabfahim8714 3 года назад

    "fAcE yOuR ConSeQuEnCeS"

  • @zainabfahim8714
    @zainabfahim8714 3 года назад

    I don't like probe

  • @jeremymoore5080
    @jeremymoore5080 3 года назад

    John smells weird

  • @sunstrike8943
    @sunstrike8943 4 года назад

    second view

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

    lol ure so sassy

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

    Thanks for the explanation!