Quadratic Probing Hash Table Example

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

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

  • @sameersingh5078
    @sameersingh5078 6 лет назад +46

    Best explaination I found after wasting hours on RUclips! Thanks man.

  • @JR-mk6ow
    @JR-mk6ow 4 года назад +23

    This is relatively easy. But my professor made this seem like a extremely complex stuff.
    Thanks for the clean explanation.

    • @thekevinwang
      @thekevinwang 4 года назад +6

      This is what academia does - take your money and make you feel dumb 🤣

    • @JR-mk6ow
      @JR-mk6ow 4 года назад +2

      @@thekevinwang it's a public school. One of the best in Europe for CS / software dev

    • @Th-gb8ct
      @Th-gb8ct 3 года назад

      bruh, that was chad moment

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

      Same, the PDF file we are given as learning material doesn't explain very well about three methods to find the next empty table slots, for this algorithm it doesn't even have details about the hash function: hash(k) = k + j^2 mod table_size.
      I feel like university just overcomplicate things lol. I learn more by watching RUclips and understand all the concept much faster too.

  • @ellegy
    @ellegy 5 лет назад +15

    This was one of the best explanations of a CS concept I have found. Simple, straightforward. Thank you very much!

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

    Really most of the world's students benefited from your explanation, thank you very much

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

      Thank you for the kind comment! I truly appreciate it!

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

    This is such a good explanation, a lot of the larger channels aren't this good! Thank you!!

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

    Finally -- someone that does the math.
    Thank you so much!!
    My professor kept circling around this and didn't give us this clear of an explanation -- You're a hero of epic proportions, sir!

  • @AspergirlJahda
    @AspergirlJahda 4 года назад +6

    So helpful! We're doing pseudocode in my class (I'm IT, not CS) so the way you have it written out also is really helpful

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

    I'd been struggling with this for DAYZZZZZ!!! Watching this video helped me to get it sorted in my brain and on paper so that I could complete my school assignment in under an hour. GREAT VIDEO TUTORIAL!!! 😘

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

    I wish the book could have explained this concept the way you did so simple and straight forward thanks dude

  • @xCaleb
    @xCaleb 5 лет назад +3

    Thank you for your great service to students everywhere.

  • @chuaselo
    @chuaselo 7 лет назад +13

    This is the best explanation i have ever seen Thank You brother!

  • @patrickstar561
    @patrickstar561 5 лет назад +28

    Thanks for the explanation, my right ear loved it

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

    awsome bro ... I dnt know why people have to make things complex .. this is the BEST !!

  • @jessicapeng6270
    @jessicapeng6270 5 лет назад +2

    This saved me reading the textbook for an hour. Thank you!

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

    Quite possible the best video on explaining a concept that i've seen. Thank you!

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

    thank you, you made me remember how easy and simple solving this, internet made it too complex

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

    Finally a topic from class with somebody I can understand. Good video man!

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

    Another great refresher. Perfectly explained. Just earned a subscriber.

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

    Thanks so much man. This will really help with my finals.

  • @shabanamehr3368
    @shabanamehr3368 5 лет назад +4

    The best lecture on probing.

  • @Codeflix2024
    @Codeflix2024 5 лет назад +1

    I have an exam on this tomorrow so thank you from Ireland for explaining this! :)

    • @randerson112358
      @randerson112358  5 лет назад

      I'm glad my videos are helping others internationally. Thanks for the comment TheDARA7!

  • @paiqu3933
    @paiqu3933 5 лет назад +3

    Thank you for your video! Your explanation helps me a lot. So lucky that I find your channel. Already subscribed!

  • @NOLAMarathon2010
    @NOLAMarathon2010 6 лет назад +1

    Nice job. The only criticism I have would be this: Maps consist of keys and values. In your case, the keys are the indices of the map. The values would be the numbers that you are inserting.

  • @shreyanshukumarjena7402
    @shreyanshukumarjena7402 6 лет назад +3

    Brother you nailed it!!.
    Very well explained!!

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

    Super simple to understand, just subscribed 👍🏿

  • @o.k.8531
    @o.k.8531 2 года назад

    Didn't enjoy it watching right before the exam. But did like it :D Ty

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

    thank you from the US Virgin Islands

  • @SasukeUchiha0330
    @SasukeUchiha0330 5 лет назад +2

    Thank you man, very clear explanation

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

    Excellent video, as usual, but if you are a student then please make sure that this is the correct hashing method that your class is teaching. My course content was confusing so I came here looking for help, and it helped a lot, but unfortunately I didn't realize that this is a very different hashing method and I got all those problems wrong (even though I did them right based on this video). So just be certain that the hash function you use actually matches what you are learning. This one uses the key value instead of the index. My school wanted the index instead of the key. Live and learn I guess.

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

    thank you, sir, you explained it very well

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

    Simply Clear and Brilliant

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

    Man these videos are amazing.

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

    This may just be a lost comment on this old video, but it was super helpful! One question though. If you run into a collision, do the quadratic probing method, and get stuck in an infinite loop of collisions, is there a specific way to handle that such as just forgetting it and moving on? or should it just stop right there? Thank you again for the amazing video!

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

    Nice explanation mister. Thank you

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

    Wow you made that sound so easy, excellent video thanks so much.

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

    Best video which I found till date.. thank you sir :)

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

    I enjoyed it man, coz it's hell clear. Subscribed already.

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

    Best explanation ever!

  • @radravzo
    @radravzo 6 лет назад +2

    You ARE the BEST ! THANK YOU SO MUCH BROTHER

    • @randerson112358
      @randerson112358  6 лет назад +2

      Hey man, no problem thanks for watching and the very positive comment. Comments like these that let me know my videos are helping others keep me going, so thank you brother.

  • @bijaybhujel1836
    @bijaybhujel1836 5 лет назад +1

    Well explained. Thanks man

  • @azhar.difa_
    @azhar.difa_ 5 лет назад +1

    thank you very much sir! greetings from indonesia

  • @Dra60oN
    @Dra60oN 7 лет назад +2

    Nice explanation brother.

  • @AbdulhamidHayredin-zk2ox
    @AbdulhamidHayredin-zk2ox Год назад

    Thank you, great explanation

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

    Helped me a lot, thank you!

  • @YoungUnited
    @YoungUnited 6 лет назад

    Thanks a lot mate! Very good explanation. Just to double check, the total numbe rof collisions in that example would be 5 right?

  • @Srry4RollingRocking
    @Srry4RollingRocking 6 лет назад +1

    Fantastic explanation. Thanks man!

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

    Sehr gutes Video! Explained very well and simple! Thank you sir! :)

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

    super helpful!! thank you!

  • @blackflame_
    @blackflame_ 6 лет назад

    Thanks bruh
    You helped me code it without problems!

  • @MILZMUSIC
    @MILZMUSIC 5 лет назад +1

    Good job mate

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

    Got it.. Nice explanation

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

    Great video!

  • @amitnigam1069
    @amitnigam1069 6 лет назад +1

    awesome explanation...Thanks

  • @54M4R7H
    @54M4R7H 4 года назад +1

    Thanks man!

  • @Firefly-do6dd
    @Firefly-do6dd 5 лет назад +1

    you helped me a lot, thank you very very much :)

  • @Mr13421772
    @Mr13421772 6 лет назад +1

    Good video, very helpful!

  • @Brekadab
    @Brekadab 6 лет назад +2

    I love you for dis

  • @Nora-lh3zs
    @Nora-lh3zs 6 лет назад +1

    THANK YOU THANK YOU THANK YOUUUUUU!!!!!!

  • @thefaned
    @thefaned 7 лет назад +11

    well done ! just like the ways i like my Steaks :)

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

    ily. thank you for the videos lol

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

    why may it not be possible to enter a new
    key into the hash table even though it is not yet full. Could you explain?

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

    Thanks!!

  • @JamesOfKS
    @JamesOfKS 7 лет назад +1

    all fine and good but still haven't found anyone explain how to retrieve them. do you just start back at counter 0 and increment up j until you hit your index?

    • @JamesOfKS
      @JamesOfKS 7 лет назад +1

      oh and what do you do if you delete an item at j=0? do you shift everything down j-1?

    • @sanchousf
      @sanchousf 6 лет назад

      You just mark a deleted cell. stackoverflow.com/questions/27215704/double-hashing-remove-and-rehash-function

  • @vickey_1910
    @vickey_1910 6 лет назад +1

    i really love you...you re the best...

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

    thank you so much

  • @strombolijones4255
    @strombolijones4255 5 лет назад +1

    THANK YOU

  • @big_cheese2162
    @big_cheese2162 5 лет назад +1

    thanks!

  • @yaganarun236
    @yaganarun236 6 лет назад

    ThankYou so much .!! so well explained !! :-)

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

    what if the size is not given? should we take any size of the array?

  •  6 лет назад +1

    Obrigada! (Brasil)

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

    Bro... thank you

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

    maybe im missing something but why is 76 6? did you times divide? how did you insert into 6

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

    Subscribed you channel

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

    So how do we deal with infinite looping

  • @SchwadoGaming
    @SchwadoGaming 6 лет назад

    Nice tutorial! But why is 5 mod 7 = 6? would have worked out for presentation purpose with 6 as fourth number!
    I got the idea tho. Thanks buddy

    • @honebunni
      @honebunni 6 лет назад +1

      5 mod 7 = 5 in the video, but (5 + 1^2) mod 7 = 6, maybe you misread?

  • @busorenkin55
    @busorenkin55 5 лет назад

    so do you reset the counter j for every key you're inserting?

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

    I'm just gonna apply to McDonalds

  • @schrodingerscat3912
    @schrodingerscat3912 6 лет назад +1

    cool

  • @cagankuyucu9964
    @cagankuyucu9964 5 лет назад

    At first I tought you were just another Indian and I was afraid that 99% of the video I wouldn't understand.

  • @djjambo2821
    @djjambo2821 6 лет назад +1

    20 mod 7 was not 6!!!! Your "Math" was in fact wrong!!! It is actually 2.

    • @randerson112358
      @randerson112358  6 лет назад +5

      Please recheck your math, 20 mod 7 is 6. My "math" was in fact correct.

    • @djjambo2821
      @djjambo2821 6 лет назад +1

      can you tell me how you calculated it i think you are using the old conservative forumla which was discontinued in 2016 december 21 as of the new government Math Act.

    • @vondrook4
      @vondrook4 6 лет назад +8

      I don't think you understand modulo. It's not just how many times does 7 go into 20 evenly, it's the remainder after it's gone into it as many times as possible: 7*2 is 14 and then the remainder is 6 which gets you to 20

    • @djjambo2821
      @djjambo2821 6 лет назад

      Devin Johns nice . Thanks for the info!!!!!!!

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

    THANK YOU