8.3 Double Hashing | Collision Resolution Technique | Data Structures and algorithms

Поділитися
Вставка
  • Опубліковано 29 жов 2024

КОМЕНТАРІ • 250

  • @Understanding_the_world_withme
    @Understanding_the_world_withme 3 роки тому +65

    Respected ma'am the work you are doing for us is really priceless. You are one of my favorite teacher. I have lots of love and respect towards you. Thank you ma'am for teaching me and guiding me. 😊❤️

  • @deepakborah8335
    @deepakborah8335 5 років тому +26

    You have explained double hashing technique in depth.One of the best effort.

  • @songoeregoba3009
    @songoeregoba3009 14 днів тому

    Your video helped me learn double hashing. Thank you. I should add that I was quite amused when you started to solve for keys 13 and 7, ran out of probes, and could not find a position for it given the limitations of m-1. Thanks, Jenny.

  • @shreechatane9215
    @shreechatane9215 3 роки тому +77

    improving your thumbnails may spread your videos even more !

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

    Ma'am, taken a great example, which shows different ways for failed insertions hats off ma'am!!!

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

      It is a good example of how to choose better and more random has functions.

  • @geetanjalijangid876
    @geetanjalijangid876 4 роки тому +5

    U r genius mam
    Hopefully I wish and want u teach me in my front or real life ...
    That's a awesome time for me

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

    Nailed it....was founding everywhere till i stopped here.
    Awesome explanation👏👏

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

    Mam...aap ki vajah se main apni online classes k vakhth ache se so parahihu...aur free time me apke videos se topics cover karleti hu ....shukriya .nd god bless u

  • @vipulkesari4529
    @vipulkesari4529 5 років тому +11

    your lectures are awesome keep making these kind of lectures Ma'am.

  • @Financewithashar
    @Financewithashar 4 роки тому +9

    25:38 We can tell the total number of probes as i value ranges from 0 to 9 hence each non inserted element will have probe value 10

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

    I want become a teacher like u mam.. tat much inspiring.. u r my role model.. thank you.. and also i am ur fan..

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

    excellent mam...aaapka videos dekke bahut confusion dooor ho jata...thnk u. sooo much mam for ur valueable videos..

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

    Mam you are amazing . i faced two problems yesterday and you were there to solve those problems. So i wrote a program for double hashing and i was not able to store one string in that. And you made it clear to me . Thanks.🙌

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

    Amazing mam..you helped me a lot without money..you are in my one of the favourite teacher in my life..love you mam..clever

  • @HariHaran-yq1hr
    @HariHaran-yq1hr 5 років тому +3

    Such A nyz..... Clear and Focused Lecture Lady!
    Thanks a Lot ✌🏻

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

    You are amazing 💗your videos are really very helpful.i watch your lectures on a regular basis. Take love from Bangladesh.

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

    thanks alot mam ..this is surely one of the best DSA learning Channnel ...thanks for your existence on youtube

  • @CarlaLud
    @CarlaLud 4 роки тому +8

    Very clearly explained, thank you! At 16:26 you mention that you will talk about properties of a good hash function in the next video. Was this video made and if yes can you please share a link to that video? I looked for a video called 8.4 Hashing hoping that would be it, but cannot find a video under that name

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

    Thank You so much Ma'am. I have completed DSA from here. Thanks

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

    Simply great.. very nice explanation .. One of the best teacher I hv seen so far

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

    Best teacher I have ever seen....I am from babasaheb bhimrao ambedkar university lucknow

  • @nannubedi7773
    @nannubedi7773 4 роки тому +10

    At 13:34 when ma'am was gonna say 13 x 2 = Chabbis (26), I totally felt her !

  • @heathbar8015
    @heathbar8015 4 роки тому +6

    Thank you so much for this explanation... Very clear and thorough! :)

  • @pawanbhatta8973
    @pawanbhatta8973 5 років тому +4

    very well explained, thank you didi.. lots of love

  • @MonikaJ-gl5bk
    @MonikaJ-gl5bk 4 місяці тому

    Just in one example mam had explained the depth of double hashing technique

  • @ArunKumar-zp8cp
    @ArunKumar-zp8cp 2 роки тому +1

    Mam, your teaching method is really very excellent💯

  • @monikasharma1184
    @monikasharma1184 5 років тому +10

    love you mam..😃 one of the best teacher 🙏

  • @SG-kn2jl
    @SG-kn2jl 5 років тому +12

    So what about 13 and 7...we just leave those keys or some other process is involved? 25:43

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

    Best Lecture For DS

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

    Ma'am you really are a good teacher..
    Please make the video about the best technique to use that you said to make in this video

  • @jatingupta4026
    @jatingupta4026 5 років тому +1

    you are the best mam. but please increase the quality of the video mam

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

    thnx a lot mam..The work you are doing for us is helping us a lot.Your videos are very systematically arrranged and explaind 😇😇😇😇😇😇

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

    Best channel.. Thank You ❤

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

    Ma'am I guess for 11 there should be PROBES=4
    As we are using first h1(k) and due to collision we are going for h2(k) due to which we get PROBES=3 . Are we supposed to not consider the PROBE of h1(k) ?
    Please correct me if I'm wrong.

  • @mixed6891
    @mixed6891 4 роки тому +2

    Plz upload rehashing also ...i like your voice ....know i want to learn that from u ...plz😭😭

  • @VincentDania
    @VincentDania Рік тому +1

    Thank you Jenny for this amazing lecture. Please I have two questions:
    1. How did you get 10 as the value of m?
    2. Why does 7 have a v value and 13 does not?
    Thanks, in anticipation of your response.

    • @yka2992
      @yka2992 10 місяців тому +1

      i start from 0 and end up at 9. if you count the index from 0-9 are 10=m. So m is the number of locations in the hash table.

  • @shad491
    @shad491 Рік тому +1

    would you please create a course for c#?
    i think you are the only person who i can learn it from

  • @cristinjhon8444
    @cristinjhon8444 5 років тому +1

    Great....I don't know the words to express your skills,keep moving on...

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

    Nice Example

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

    thank you !!
    Waiting for the properties of best hash function selection video.(continuation of this double hashing)

  • @sambitbasu6261
    @sambitbasu6261 3 роки тому +7

    Ma'am I've noticed in your other closed hashing videos too, if we start the value of i from 1, then we can reduce one check. the colliding value will never be inserted in that case when i=0. Is my thought process correct?

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

      yes

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

      you do have a point..but here we are going by the definition to see its implementation..also if we count the no. of steps in this case we get the no. of probes too. Yes..just to know the location its not necessary to check i=0 case..you are right about that :)

  • @TonyStark-un1mw
    @TonyStark-un1mw Рік тому +1

    Thank u Ma'am

  • @nandanasharan6339
    @nandanasharan6339 5 місяців тому

    Mam why are we using division method everywhere I mean in all the resolving technique questions?
    What if a question comes without mentioning this? will the answer be same?
    I love your videos and I have cleared many of my doubts with the help of these videos. Thank you so much Mam

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

    mashallah ki samjhaya hai apbe very nice allah khosh rakhe apko

  • @subodhkulkarni-5448
    @subodhkulkarni-5448 10 місяців тому

    Very Good Explanation 👍

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

    you're an amazing teacher , keep up ..

  • @sanyamjaincs1
    @sanyamjaincs1 5 років тому +1

    18:26 to 22:33 u r so hard working mam. must be the brightest student of your time :p

    • @aazaa7334
      @aazaa7334 5 років тому +1

      Found her on quora, she was the gold medalist.

    • @DeviL-yw6ud
      @DeviL-yw6ud 4 роки тому

      Wow

  • @Randomtiger007
    @Randomtiger007 5 років тому +1

    I appreciate your videos very much...thank you very much

  • @ajaysrailzoneofficial
    @ajaysrailzoneofficial Рік тому +1

    Mam if Hash function is not give like 2k+1 then we need to simply use ki% mod m Formula na?? To find keys location
    😀😀

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

    This lecture is very helpful for me

  • @jahangiralamlaskar9626
    @jahangiralamlaskar9626 5 років тому

    Your video was very much helpful....thanks for uploading your video

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

    Thanks a ton Ma'am🙇‍♂️🙇‍♂️🙇‍♂️

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

    Amazing video ma'am. Thank you

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

    We use hashing to reduce search and insert time compkexity.
    You explained well how to reduce insertion time complexity, but how to search elements, you didn't tell, which was the main motto of this hashing concept.
    And also, why we are using quadratic probing, and double hashing, when linear probing is performing better than the latter two

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

    Good explanation

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

    Thank you very much. You are a genius.

  • @heenayadav2406
    @heenayadav2406 5 років тому +1

    Very well explained

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

    Madam can we have about dynamic hashing.
    And also I loved your teaching skills mam.
    And I am from Andhra Pradesh.

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

    Thank you mam

  • @RamineniBargawRaamcharan-dy6mr
    @RamineniBargawRaamcharan-dy6mr 7 місяців тому +1

    your expression was cute 😍3:28

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

    ma'am, your teaching skills are FAB:-)

  • @AryanGairola-th3qc
    @AryanGairola-th3qc 4 місяці тому +1

    Best.asalways

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

    Great work!!

  • @jaisuriyar5259
    @jaisuriyar5259 5 років тому +1

    Please make a video on rehashing

  • @Lobster.Gaming
    @Lobster.Gaming 3 роки тому +1

    Thank you 😊

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

    Great explanation mam👏

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

    V.v.v clearly explain ❤️❤️❤️❤️❤️❤️😍😍😍😍😍

  • @saritakumari-oh8fs
    @saritakumari-oh8fs 3 роки тому

    Super^100 Skill.

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

    Everyone like plss... 🙏💖🥰 for this wonderful explanation

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

    thank u tooooooo much it was easy discerption

  • @khuramkhalid5396
    @khuramkhalid5396 11 місяців тому

    Thank you jenny!!!!!!!

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

    Life saver❤️❤️

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

    so helpful
    you are the best
    thanks

  • @ziyaabbas6437
    @ziyaabbas6437 5 років тому +1

    one of the best thanks

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

    You are the best mam 😘😘

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

    Thanku so much mam ji

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

    20:10 as we got repeated index value can we just stop checking ? as the sequence is going to repeat again

  • @anirudhdevpura2798
    @anirudhdevpura2798 5 років тому +2

    You're videos are great ma'am. I just want you to explain code for hashing, heap etc in the upcoming videos

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

    please make a video on the properties of the good hash functions you have mentioned at 16:25

  • @AmitKumar-xr6cy
    @AmitKumar-xr6cy 4 роки тому

    great work

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

    Thank you so much!!

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

    for key 11, I think the total number of probes is 4 because in the first attempt we check the collision, which is considered to be a single probe, and there is collision after it, and then finding the location takes 3 probes so in total it will take 4 probes... am I thinking right? correct me if I am not please.

  • @tuliprubina9956
    @tuliprubina9956 5 років тому +1

    super explaine thank u so much mam

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

    Thank you

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

    Excellecnt explaination..bt maam u skiped the topic cluster of blocks

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

    Thank you for the lesson 🙏🏽🙏🏽

  • @marksladen2901
    @marksladen2901 5 років тому +1

    If the first hash function does not work, does that count as one probe? If you use the second hash function because of a collision, does the use of the second hash function count as the second probe?

  • @VishalKumar-ux8yy
    @VishalKumar-ux8yy 3 роки тому

    How can the probe for key = 11 be 3?
    - First, we calculated u, which is 5, now we don't know whether 5 has some key or not, we will have to check it by iterating over the table. Hence, probe = 1
    - Now, we found that hash[5] = 6, thus collision, therefore, calculating v, which is 4. Now calculating location using (5+4*0) % 10 = 5, now we will again check in the hash table is hash[5] == None, but again collision. Hence, probe += 1.
    - Now, i = 1, (5 + 4*1)%10 = 9, hash[9] != None, hence collision, but probe += 1.
    - Now, i = 2, (5 + 4*2)%10 = 3, probe += 1.
    - i = 3, probe += 1
    - i =4, probe += 1, and we store the value at 3.
    Thus final probe should be 6.
    I am confused here. Please help me out.

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

    In 1st lecture of hashing you have said us , the time complexity is O(1) how this is ?

  • @arjunwagh1298
    @arjunwagh1298 5 років тому

    Very good explain

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

    Jenny you better than my teacher...

  • @gameplay-eq8sq
    @gameplay-eq8sq 3 роки тому

    Mam 7 can be inserted at the place 8 in hash table for i=2
    There is some calculation error

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

    Where is next video of hashing?
    As u told in video that we are seeing the properties of good hashing in the next video.
    Where is this?
    I didn't get it.

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

    Ma'am expecting video on clustering plzz!!??

  • @aartibhilare3508
    @aartibhilare3508 5 років тому +1

    Nice mam you are awsome 😍

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

    Can you please upload multiplication method and universal method for hashing?

  • @Rameshkumar-qt4ue
    @Rameshkumar-qt4ue 5 років тому +1

    very helpful

  • @RahulSingh-fe6wy
    @RahulSingh-fe6wy 5 років тому +1

    Very helpful!! thanks a lot mam:

  • @jay-rathod-01
    @jay-rathod-01 4 роки тому

    @13:04 maybe the probes are 4 if we count the search or u as well and not just the finction of v.

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

    very nice jenny