Hash Tables - Data Structures and Algorithms

Поделиться
HTML-код
  • Опубликовано: 12 июл 2020
  • Start your software dev career - calcur.tech/dev-fundamentals 💯 FREE Courses (100+ hours) - calcur.tech/all-in-ones
    🐍 Python Course - calcur.tech/python-courses
    ✅ Data Structures & Algorithms - calcur.tech/dsa-youtube
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    ✉️ Newsletter - calcur.tech/newsletter
    📸 Instagram - / calebcurry
    🐦 Twitter - / calebcurry
    🔗 LinkedIn - / calebcurry
    ▶️ Subscribe - calcur.tech/subscribe
    👨🏻‍🎓 Courses - www.codebreakthrough.com
    ~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
    ↪ My Amazon Store - www.amazon.com/shop/calebcurry
    🅿 Patreon - calcur.tech/patreon-calebcurry
    🅖 GitHub Sponsors - github.com/sponsors/CalebCurry
    Ⓟ Paypal - paypal.me/calcur
    🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
    🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
    📈 Buy Bitcoin - calcur.tech/crypto
    Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/crypto
  • НаукаНаука

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

  • @Sauce-ke
    @Sauce-ke 3 года назад +80

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

  • @keelnu
    @keelnu 3 года назад +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!

  • @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.

  • @yuhema11
    @yuhema11 2 года назад +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!

  • @antonlinden5216
    @antonlinden5216 3 года назад +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.

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

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

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

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

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

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

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

    Really Great Series, really good work. well done.

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

    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

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

    Thanks for the explanation!

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

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

  • @eleanorcarrano6316
    @eleanorcarrano6316 Месяц назад

    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!

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

    Really good explanation Keep it up!

  • @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

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

    I love you man, thanks for this

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

    Finally understood what hash table is, thanks Caleb

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

    Man thank you, great lecture.

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

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

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

    Great video!

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

    Very funny and good video. Good job!

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

    Perfect thank you ❤

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

    thank you!

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

    Cheers mate!

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

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

  • @user-py8bq2pk1h
    @user-py8bq2pk1h Год назад

    you are really the best

  • @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!

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

    THANK YOU..

  • @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 :)

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

    You're the best teacher

  • @theteacher010
    @theteacher010 3 года назад +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.

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

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

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

    Thanks chef Curry

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

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

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

    great video

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

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

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

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

  • @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?

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

    caleb curry is the goat

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

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

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

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

  • @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.

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x 2 года назад

    16: 44 HAHAHA!!!

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

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

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

    2:07 underrated joke xD

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

    16:38 is was nyc expression

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

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

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

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

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

    👏👏👏

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

    bro you are just a semi-god

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

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

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

    8:23

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

    2:09 I paused there for a second.

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

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

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

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

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

    you get a like for the john cena joke

  • @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 2 года назад

      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

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

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

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

    my DREAMS from Somalia

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

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

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

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

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

      @@BrianKabonyo 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.

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

    FACE THE CONSEQUENCES😂

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

    FIRST VIEW!

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

    Or you'll get some linear probing 😂

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

    "fAcE yOuR ConSeQuEnCeS"

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

    I subscribed because of the John Cena joke

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

    second view

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

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

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

    Did you go through speech therapy for stuttering?

  • @Yash42189
    @Yash42189 10 месяцев назад

    lol ure so sassy

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

    O of N that's gross

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

    I don't like probe

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

    John smells weird

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

    Thanks for the explanation!