This channel is a godsend for all who are taking the course Data Structures and Algorithms (and similar) and suffer, like so many others, from lecturers who can't teach. Myself included. I would fail and drop out if videos like these didn't exist.
@POwens3 жыл бұрын
This saved me from failing out of my intro to data structures course (during COVID). Life saver.
@BhargavPuri-ki7hm Жыл бұрын
Why madam takes 7 there
@Ahmet-dr1rq8 ай бұрын
@@BhargavPuri-ki7hm I think question gives us
@TheVk303 жыл бұрын
literally the most underrated hashing legend thank you for saving me
@abhinavsingh5954 жыл бұрын
Short and crisp explanation with example. Saved my lots of time. Thanks a lot
@ohhCrazzy2 жыл бұрын
Thank the gods this video exist!
@رند-س5ح Жыл бұрын
Thank you so much this saved me from today's discussion of data structures
@shanks97583 жыл бұрын
Your voice is amazing ,it made fall to sleep . thank u ,u saved my life ,keep the good work
@abdullahabod61004 жыл бұрын
18mod7 =4 k= 4 , hash2 7-4=3 and so on for other numbers
@christianoliver52443 жыл бұрын
Pro trick : watch movies at Flixzone. Been using them for watching a lot of movies during the lockdown.
@roycericky89913 жыл бұрын
@Christian Oliver definitely, I've been using flixzone} for years myself =)
@Mammajiprincess2 ай бұрын
How to calculate mod..18%7 is 1.26 naa ❓
@Mammajiprincess2 ай бұрын
Reply plz
@saharshamagar5059Ай бұрын
@@Mammajiprincess 18/7 --> remainder = 4 so 18%7=4.
@subarux4054 Жыл бұрын
I love the way you break down the concepts!! Thank you so much for sharing !
@faheemahmadofficial77012 жыл бұрын
18's key hash 2 is 4 not 3???
@anshgoel66612 ай бұрын
second hash function is k(mod)7 so putting the values in (7-k(mod)7) it comes out to be 3
@olympiasol85973 жыл бұрын
Τhank you sooooooo much ... I was looking for this for 6 hours and it was a five min solution... hate my life -_- BUT YOU ARE GREAT:)
@KalathilAjayMenon3 жыл бұрын
A simple example was taken. Hope you expand to a bigger example with multiple collisions.
@aswinbaiju56284 жыл бұрын
And what happens if we get a larger value than our index limit?
@qb4156 ай бұрын
Normally you would do (hash1 + i + hash2) modulo array.length. This way the value can't exceed the index limit.
@FreddyJettyJohnson5 жыл бұрын
Thank you so much, you're doing a great job ❤️
@DuyNguyen-wx5oj4 жыл бұрын
great explanation and neat handwriting!
@heyyoga75154 жыл бұрын
You are an excellent teacher! Did great on my quiz because of this video ❤️
@cannedshoes3 жыл бұрын
You are a fantastic explainer. Much love from Texas :) and pray I pass this exam!
@rahulthapa7880 Жыл бұрын
Very nice Clearly understand Your voice is awesome ❤️❤️
@nqnqnq Жыл бұрын
there's an issue with this, you can get out of bounds. let's try to hash key 12, supposing index 12 is already occupied. hash1(12) = 12, hash2(12) = 2 you'd need to add key 12 at position 14, which doesn't exist. fix: position should be given by (hash1(key) + j * hash2(key)) mod size.
@kevinkingsly Жыл бұрын
This is the correct method
@МартаДяків-т2л3 жыл бұрын
Thank you so much for your videos! You are just the best!
@sovonmaji29293 жыл бұрын
Maam , when addition --- h1(k)+ j*h2(k) ,,,, greater than 13 , then what to do?
@DidierWycheАй бұрын
Thanks for the forecast! I need some advice: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How can I transfer them to Binance?
@valeriosilvestro70675 жыл бұрын
why 7?? is it an upper bound of 13/2?
@VivianGameCollections2 жыл бұрын
WHAT A LIFESAVER, THANKS AND LOVE YOU SO MUCH, HOPE YOU HAVE A NICE DAY
@eeni144 жыл бұрын
Thank you so much! The explanation is really clear
@navyashalini29512 жыл бұрын
y u have taking in hash2 (K)=7- kmod7??
@miguelnuno9283 жыл бұрын
Beautifully explained
@tahofu26184 жыл бұрын
what do you mean ... 5 + 0 in to 3, then 2 + 0 in to 1? I thought it was supposed to be hash1 + hash2 ??
@mahimanshah78514 жыл бұрын
Yessss
@mahimanshah78514 жыл бұрын
Even I dint get that part
@hakimmustafa33493 жыл бұрын
in to = multiply = "j" state in the formula
@gautamgandotra9965 Жыл бұрын
this is life saver. thank you
@hasan_shans9 ай бұрын
Very nice courses! Thank you madam!
@mma4605 Жыл бұрын
Great job explaining!
@Guru-UPSC5 жыл бұрын
Why u chose hash2 a particular function. Plz, elaborate the reason for choosing that function. Thanks
@randomname87502 ай бұрын
she used an arbitrary function
@yousafraza77474 жыл бұрын
Saved my day
@Albatross-vn7lq11 ай бұрын
that was too simple..Thank u mam
@terryrodgers95602 жыл бұрын
amazing explanation, thank you
@gandreyhohlov10303 жыл бұрын
Thanks! But how do SEARCH (not insertion) works? For example, how to find 44, if 18(at index 5) was removed an is EMPTY?
@briannguyen11344 жыл бұрын
for this example if 44 hash 1 was 5 and hash 2 was 6. Would we go in position 6? or would we do location of 5+(6*2)mod 13?
@divyaaskihal21945 жыл бұрын
why did u take 7 while calculating v alue of h2?
@ashishthanga135 жыл бұрын
r-k mod r is the formula and r should be a prime number less than the size of hash table
@abhinavsingh5954 жыл бұрын
Its given in question and changes according to question.
@木林海风2 жыл бұрын
Beautiful handwriting and cute voice ♥
@makeitmakesense-e3xАй бұрын
It would have been nice if you showed how you got the hash 2 values
@edoardogribaldo2870 Жыл бұрын
Great explanation, thank you very much!
@VersatileAnthem4 жыл бұрын
mam why don't you upload new videos .your videos are far more better then university professors !
@oduyhung2152 жыл бұрын
thank you very much for your videos. I have a question , what will we do if the collision occur at the final key when using linear probing and quadratic probing ?
@pvedits79772 жыл бұрын
Nice explaination
@sherrywu1614 жыл бұрын
Really helpful!! very clear
@Anonymousgirl620Ай бұрын
Thank you sister helped a lot
@madhusudandas84112 ай бұрын
maam, are you doing MS in AI ?
@oliganguly20515 жыл бұрын
thank u friend.. just for this video i can clear my concept
@1muharremyilmaz2 жыл бұрын
Thanks, From TURKEY
@theapex609710 ай бұрын
what would happen if sum of two hashes is more than the table size?
@robertsterenchak84313 жыл бұрын
Short and concise :) please make more videos like this 👍
@justtil67493 жыл бұрын
Amazing explanation, thank you so much
@wallotube63594 жыл бұрын
Very nice.continue like this
@gayallaksara52565 жыл бұрын
Why didn't you modularized the double hashing function by the table size
@niazahmad78235 жыл бұрын
Yeah she made that mistake she has to take modulus of the whole h1 plus h2
@jahehs2 жыл бұрын
Where did you get the 7?
@hieutrongoan46564 жыл бұрын
love your hand writing :D
@gauravojha1748 Жыл бұрын
Ye hash 1 nd hash 2 kha se aaya
@jakobjensen82282 жыл бұрын
Anyone here know what m in this statement could be? H2(k) = 1 + (k mod (m - 1) I get that it's the hash2 taking the key as input, but what would m represent here? A value incrementing if the spot it taken perhaps?
@J2KJonas2 жыл бұрын
The m represents the size of the array so if you have got an array of [1, 2, 3, 4, 5, 6] then the m is 6. AAU gang here to save you (skal selv op i ALG)
@jakobjensen82282 жыл бұрын
@@J2KJonas King, gir en øl i gaden.
@nandinigorla4 жыл бұрын
How can u take that mod 13. If they given we taken.... right...and for hash 2 also how can u randomly take 7 and for the mod also take 7
@fisayoojo93313 жыл бұрын
I don't know how you manufactured the 7 in the first four lines and you didn't explain that. Had to use other resources to figure that out.
@AdvayBasavaraju2 жыл бұрын
Wowee great vid, helped a lot thx so muhc tee hee
@Iam_Smk3 жыл бұрын
Short and sweet
@dipanshunautiyal42345 жыл бұрын
Vo 11-kmode11 ku nhi hua?
@rolandor96783 жыл бұрын
wow, me encanta que excelente explicación, muchas gracias.
@tafveezahmad96923 жыл бұрын
ERROR IS THERE (hash1(k) +j*hash2(k))modN will be there you have missed modN
@bedtimestoriesforkids97554 жыл бұрын
Are you from CMU?
@vamsikrishnach92785 жыл бұрын
Excellent job madam 🤩🤩🤩🤩🤩
@BhargavPuri-ki7hm Жыл бұрын
Why madam takes 7 there
@rakshithgrajcse3302 жыл бұрын
very much helpful thank you
@zenekquerky72552 жыл бұрын
It can happen that hash1(k) + j * hash2(k) > 13 I think its possible, despite that 7 and 13 are prime. In your example you had "Lucky numbers" :D Otherwise you end up with index out of bounds.
@chainsawman-stoic2 жыл бұрын
doesn't matter if index is out of bounds
@RustyBagel1272 жыл бұрын
@@chainsawman-stoic so if it becomes out of bounds then what happens?
@nqnqnq Жыл бұрын
@@chainsawman-stoic it does
@Dwika343 жыл бұрын
I think the first thing you should say is that double hashing only works for a prime length array. The second thing you should fix is: I think the formula should not d be hash(k) + jhash2(k), the reason being that I tried it using a while loop in java and it enters an infinite loop . By your approach if the j is zero then the code would keep on repeating itself(do keep in mind that the second function cannot have the value of 0 in double hashing). So it should always start with hash(k) + hash2(k). So it should look like this hash(k)=hash(k)+hash2(k). This way we would always reach the intended way purpose of double hashing which is to increment hash(k) with the value of hash2(k). Like many beginners, I think those 2 points would make it easier for us to grasp and comprehend the material. Thank you, otherwise great content and delivery
@richardpaul54272 жыл бұрын
I think that starting with j = 0 is fine, there doesn't seem to be any reason why you'd need to start with j = 1. Also, double hashing can work on non-prime length tables, if the hash2(k) always outputs a number that is not a factor of the size of the table.
@mohammedafzal57205 жыл бұрын
How did you calculate H1 and H2?
@AshutoshSingh-qj1gm5 жыл бұрын
taking mod values, like we do for other hashing functions
@fisayoojo93313 жыл бұрын
@@AshutoshSingh-qj1gm not exactly there's sth about prime numbers for H2.
@elkleelekee2 жыл бұрын
@@fisayoojo9331 it has to be of q - (k mod q) where q is smaller or equal the size of the array
@berndlauber63284 жыл бұрын
perfect teacher :o))
@bellenature1433 жыл бұрын
How to get hash1 and hash2 values
@jayprakashjaiswaldeptofcom1250 Жыл бұрын
really ,u dont think its important to tell hwo to take second hash function ?
@ilhemwalker91454 жыл бұрын
Thank you sooo much ❤
@ΠαναγιώτηςΧατζηδαυιτίδης3 жыл бұрын
thank you kind woman
@zum43423 жыл бұрын
THank you very much
@bouboudubinks69597 ай бұрын
amazing
@mohammadgh5768 Жыл бұрын
Thanks tomorrow I'll have a ds exam
@nguyenquanghuy9634 жыл бұрын
thanks you so much
@ort.school7 ай бұрын
cool, thanks
@mdkanokhossain14454 жыл бұрын
Thank You
@kumarnigam80785 жыл бұрын
dought free lecture :)
@nhat12862 ай бұрын
nice!!!!
@kantipudiavinash5743Ай бұрын
Nice voice❤
@faheemahmadofficial7701 Жыл бұрын
11 mod 7 is 4
@fkhan24165 ай бұрын
The hash 2 value of key 44 is 1 not 5.
@SirSimon-zg2rm5 жыл бұрын
Thanks!!!!
@karthikeyan43755 жыл бұрын
I want extendable hashing
@przemysawcwiek83063 жыл бұрын
HELLO im from poland, im young programmer, im have algoritmos kolokwium, thx for help.