Hashing - Quadratic Probing for Collision Resolution

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024
  • This video lecture is produced by S. Saurabh. He is B.Tech from IIT and MS from USA.
    Hashing - Quadratic Probing for Collision Resolution
    To study interview questions on Linked List watch • Programming Interviews...
    To prepare for programming Interview Questions on Binary Trees
    • Programming Interviews...
    To study programming Interview questions on Stack, Queues, Arrays visit
    • Programming Interviews...
    To watch all Programming Interview Questions visit
    • Programming Interviews...
    To learn about Pointers in C visit
    • Pointers in C (All you...
    To learn C programming from IITian S.Saurabh visit
    • C Programming Tutorial

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

  • @GRONTChomper
    @GRONTChomper 8 лет назад +11

    A very simple video to follow, feels great to understand the basics behind linear and quadratic probing. So I just wanted to say thank you and that what you are doing here is awesome, and incredibly helpful to people interested in such things.

  • @chenosebu
    @chenosebu 9 лет назад +49

    I enjoyed your tutorial at 2X speed ;-)

    • @Your.Majest.y
      @Your.Majest.y 8 лет назад

      +cheno sebu lol i just tried it it's better :D

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

      cheno sebu yaaas

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

      I know Im pretty randomly asking but does anyone know a good site to watch newly released movies online ?

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

      @Raul Jasiah I watch on FlixZone. Just search on google for it =)

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

      @Ivan Issac Definitely, been watching on flixzone for since april myself :)

  • @junior14fariasxD
    @junior14fariasxD 8 лет назад +10

    4:28 voice cracked haha, great tutorial

  • @jogofwar99
    @jogofwar99 8 лет назад +22

    skip to 5:45

    • @Jctankk
      @Jctankk 8 лет назад

      +Slick Persian Thanks

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

    My teacher showed us a different function for quadratic probing. h(k,i) = (h'(k)+(c_1)i+(c_2)i^2) mod TABLESIZE. Yours makes way more sense

  • @nvijain
    @nvijain 7 лет назад

    we are not using closed hashing in quadratic probing but open addressing and linked list method is direct chaining

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

    dude thanks, this helped me understand this so much easier than the textbook

  • @Herlin92
    @Herlin92 9 лет назад +1

    Thanks!
    Just one question, when you wan't to find a value inside the hash table, do you follow the same function used and add on i if it's not found?
    // Alex

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

    Excellent Playlist for hashing really understood Thanks Sir!

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

    How would you find out at which index your value has been inserted?

  • @krcn00b
    @krcn00b 8 лет назад +1

    nice video.. so in stead of trying just the next you try 1,2 ,4, 9 etc

  • @fazaanhassan
    @fazaanhassan 7 лет назад

    for your open hashing is it not 33, 13, 3 since the keys get added to the head of the linked list?

  • @sureshdharavath1191
    @sureshdharavath1191 9 лет назад

    Hello,
    You explained everything really nice but what if the hash table gets filled in both Linear probing and Quadratic probing ? whether to restructure the whole hash table ?

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

    what if there is already something at index 9 and and you want to put something there?

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

    there is one problem with this quadratic method, if we have 11 numbers to fit in 10 slots, what will happen then?

  • @tommywuhaojie
    @tommywuhaojie 9 лет назад

    thanks for the video, it helps a lot for my exam

  • @fisslewine1222
    @fisslewine1222 8 лет назад

    Loved these tutorials - really really good work!

  • @MrShishKBob
    @MrShishKBob 10 лет назад

    Thank-you very much. Clear and very useful. Although you didn't mention that f(i) = i squared, but I understood it anyway. :)

    • @chenosebu
      @chenosebu 9 лет назад

      What were u listening??? He clearly mentioned :D

  • @jayzhang8739
    @jayzhang8739 8 лет назад

    Thank you for sharing. I am an student and it's very helpful to me.

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

      I predict that now you are doing a job,hhaha

  • @sksoumik8749
    @sksoumik8749 8 лет назад

    Thank you so much. it was enough easy to get the points.

  • @abwns
    @abwns 8 лет назад

    Thank you very much. Now it makes more sense!

  • @bhavneetsingh6893
    @bhavneetsingh6893 7 лет назад

    But sir ,in quadratic there is no guarantee that array will be full
    please correct if i m wrong

  • @MargusSalk2
    @MargusSalk2 10 лет назад

    Great one! Really useful.

  • @DIANANAT
    @DIANANAT 9 лет назад

    Great job, I really understood !!

  • @manarodeh8474
    @manarodeh8474 7 лет назад

    awesome explain
    thanks a lot

  • @blessyfi
    @blessyfi 8 лет назад

    Doubt: Why are you taking i=1 and no other number?

  • @navymcz
    @navymcz 9 лет назад

    Thanks, your video helped a lot!

  • @fotisefstratiadis2920
    @fotisefstratiadis2920 9 лет назад

    thank you very much it was really helpful!!

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

    Good fucking shit, I was making the mistake of counting the squared values on top of the module value + previous added squared

  • @afyonlukiz03
    @afyonlukiz03 8 лет назад

    very good

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

    Thank you so much 😀

  • @shawnradke
    @shawnradke 8 лет назад

    thanks dude

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

    why so fast ? this video is not help me all

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

    thanks i have paper in two hours

  • @alihasan6872
    @alihasan6872 8 лет назад

    in 54 case we don't have 13 so what should we do

    • @jeffreytrenton
      @jeffreytrenton 8 лет назад +4

      +ali hasan If we do the original hash function on 54 we get 4 but position 4 is already occupied so we begin quadratic probing... (4 + 1^2) % 10 = 5 but position 5 is already occupied... (4 + 2^2) % 10 = 8 but position 8 is already occupied... (4 + 3^2) % 10 = 3 but position 3 is already occupied... (4 + 4^2) % 10 = 0. We are in luck! 0 is not occupied so we place the value 54 at position 0.

  • @AkhilKumar
    @AkhilKumar 9 лет назад

    thanks!

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

    sir also code it

  • @sheldoncreado1997
    @sheldoncreado1997 7 лет назад

    thanks

  • @shaurabhbhatt3768
    @shaurabhbhatt3768 9 лет назад

    tankhssss sir

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

    Gracias!:D

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

    bhai thoda taiz boola kar na, 2X par bhi normal lag raha tha

  • @v.mohanrao2226
    @v.mohanrao2226 9 лет назад

    hey u jus left out 54
    but tutorial was awesome

  • @bouncinggyro
    @bouncinggyro 7 лет назад

    please stop saying ok