Hash Tables - Data Structures and Algorithms

Поділитися
Вставка
  • Опубліковано 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
  • Наука та технологія

КОМЕНТАРІ • 91

  • @Sauce-ke
    @Sauce-ke 3 роки тому +78

    “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.

  • @pg.n5694
    @pg.n5694 3 роки тому +10

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

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

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

  • @yuhema11
    @yuhema11 2 роки тому +3

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

  • @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 Рік тому

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

  • @rugmaable
    @rugmaable 11 місяців тому +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

  • @eleanorcarrano6316
    @eleanorcarrano6316 7 днів тому

    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!

  • @parantikaghosh4396
    @parantikaghosh4396 2 роки тому +2

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

  • @RaGa_BABA
    @RaGa_BABA 3 роки тому +4

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

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

  • @atnodc
    @atnodc 3 роки тому +1

    Really Great Series, really good work. well done.

  • @saharchegeni6154
    @saharchegeni6154 7 місяців тому

    Finally understood what hash table is, thanks Caleb

  • @husseinhassan2389
    @husseinhassan2389 4 роки тому +1

    Really good explanation Keep it up!

  • @frankdong8582
    @frankdong8582 Рік тому

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

  • @baaqarnaqi4801
    @baaqarnaqi4801 Рік тому

    Thanks for the explanation!

  • @javlontursunov6527
    @javlontursunov6527 2 роки тому

    Man thank you, great lecture.

  • @CamFocusApp
    @CamFocusApp Рік тому

    I love you man, thanks for this

  • @simaoalicechen2448
    @simaoalicechen2448 3 роки тому

    Very funny and good video. Good job!

  • @deb5976
    @deb5976 Рік тому

    Great video!

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

  • @GnarlyGooch
    @GnarlyGooch 2 роки тому

    Cheers mate!

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

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

  • @wissalelamoury473
    @wissalelamoury473 7 місяців тому

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

  • @look9963
    @look9963 6 місяців тому

    Perfect thank you ❤

  • @zeamanualfeleke8716
    @zeamanualfeleke8716 2 роки тому

    You're the best teacher

  • @gregf9160
    @gregf9160 3 роки тому +2

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

  • @user-py8bq2pk1h
    @user-py8bq2pk1h Рік тому

    you are really the best

  • @heyjulyabas1681
    @heyjulyabas1681 3 роки тому

    THANK YOU..

  • @rychubagaznik9246
    @rychubagaznik9246 3 місяці тому

    thank you!

  • @programmonky2505
    @programmonky2505 Рік тому

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

  • @daresdares9181
    @daresdares9181 2 роки тому

    great video

  • @ddimwhite4638
    @ddimwhite4638 3 роки тому

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

  • @luckylep09
    @luckylep09 3 роки тому

    Thanks chef Curry

  • @Layarion
    @Layarion 2 роки тому

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

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

  • @stickmanbattle997
    @stickmanbattle997 2 роки тому

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

  • @vikramjitsingh109
    @vikramjitsingh109 Рік тому

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

  • @goodknight3072
    @goodknight3072 2 роки тому +1

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

  • @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 Місяць тому

    caleb curry is the goat

  • @LawrenceAaronLuther
    @LawrenceAaronLuther 2 місяці тому

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

  • @muhammadaarizmarzuq295
    @muhammadaarizmarzuq295 2 роки тому +1

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

  • @isaiassalles1180
    @isaiassalles1180 2 роки тому +1

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

  • @user-yd9xy3rb4x
    @user-yd9xy3rb4x 2 роки тому

    16: 44 HAHAHA!!!

  • @roshinsoni
    @roshinsoni 2 роки тому

    2:07 underrated joke xD

  • @fernandomendieta5463
    @fernandomendieta5463 2 роки тому

    bro you are just a semi-god

  • @dnlbellfield
    @dnlbellfield 3 роки тому

    8:23

  • @basudevadhikari22
    @basudevadhikari22 Рік тому

    2:09 I paused there for a second.

  • @giovannamunoz1120
    @giovannamunoz1120 2 роки тому

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

  • @sathishkumar2852
    @sathishkumar2852 2 роки тому

    👏👏👏

  • @ayubaalim2201
    @ayubaalim2201 3 роки тому +1

    my DREAMS from Somalia

  • @asfarjamil8289
    @asfarjamil8289 Рік тому

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

  • @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 8 місяців тому

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

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

  • @webrevolution.
    @webrevolution. 2 роки тому

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

    • @BrianKabonyo
      @BrianKabonyo 8 місяців тому

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

    • @webrevolution.
      @webrevolution. 8 місяців тому

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

  • @anthonygonsalvis121
    @anthonygonsalvis121 3 роки тому +1

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

  • @ShishirHank21
    @ShishirHank21 4 роки тому +1

    FIRST VIEW!

  • @zainabfahim8714
    @zainabfahim8714 2 роки тому +1

    Or you'll get some linear probing 😂

  • @zahram2018
    @zahram2018 Рік тому

    I subscribed because of the John Cena joke

  • @zainabfahim8714
    @zainabfahim8714 2 роки тому

    O of N that's gross

  • @tibettenballs4962
    @tibettenballs4962 3 роки тому

    Did you go through speech therapy for stuttering?

  • @zainabfahim8714
    @zainabfahim8714 2 роки тому

    "fAcE yOuR ConSeQuEnCeS"

  • @zainabfahim8714
    @zainabfahim8714 2 роки тому

    I don't like probe

  • @sunstrike8943
    @sunstrike8943 4 роки тому

    second view

  • @jeremymoore5080
    @jeremymoore5080 3 роки тому

    John smells weird

  • @Yash42189
    @Yash42189 9 місяців тому

    lol ure so sassy

  • @baaqarnaqi4801
    @baaqarnaqi4801 Рік тому

    Thanks for the explanation!