This is the most instructive, satisfying, relaxing programming videos on KZitem. The black background coupled with thr neon pens and even the professor cloths and voice makes this unparalleled to anything else. Best of all is how knowledgeable and comprehensive he is, he doesnt cut coners and does the gritty work, allowing us to process the godlike information while giving his side explanations. I have seen these videos i a more stressful time. I never understood how enjoyable these are when you just watch them for fun. I mean, i planned to watch the first hash video, and here i am binge watching the whole playlist, at 3 am in the morning, with a smile on my face. Thank you once again professor! You're the greatest programing teacher!
@TheSkulldraw
5 жыл бұрын
So basically Rehashing means reinserting everything with the new hash function ?
@moazeldefrawy4379
4 жыл бұрын
yes
@joaquinvigna6438
4 жыл бұрын
The hash function never change. What change is the the value of modular function applied to the result of that hash function. Probably the new place will be in a different position. ie hashFn(el) = 34, if the array is size 10 then the position will be 4 (34%10), but if you duplicate the size then the position will be 14 (34%20).
@assylkhanyeszhanov2356
4 жыл бұрын
When he talks about hashes based on opening addressing he says that we can double array and just copy all items from previous array. But, will it work properly when we try get value from hash table? Taking into consideration the new size of table, don’t we have to recalculate the hash codes again?( like we did with chaining approach)
@aahanaganjewar9951
2 жыл бұрын
yes we do have to recalculate hash codes again taking the new size of array .
@NarutoSSj6
2 жыл бұрын
The hashes are based on the mod of the tablesize. If you change the size the old hashes wont be found if you try to reach them with the updated key.
@rajeshn8067
5 жыл бұрын
Thanks for your effort. and cleaning board multiple time to make us understand. big thanks from india
@ajmal2168
2 жыл бұрын
03:36 He got a stand 🌝 Jojo Fans Assemble
@harshanagasamudram2923
3 жыл бұрын
awesome explanation sir... thanks a lot
@mahmad48
Жыл бұрын
what if i kept my history of sizes and checked it to search an item
@KundanKumar-ml1pj
5 жыл бұрын
using the selfie camera to record video in front of glass frame
@shubhamendraprasadchongder8408
6 жыл бұрын
How is the hashcode value hv made positive? What did he actually write? Can somebody help me?
@sisa989
6 жыл бұрын
He made it positive with the next code "hashCode & 0x7fffffff" BTW he has a whole video dedicated to that topic, "Hashes 6 Make an integer positive".
@guleye
5 жыл бұрын
hash = hash & 07FFFFFFF if after taking mod the val is neg then this instruction make it positive
@davidgeismar6531
5 жыл бұрын
@@guleye I didnt get how that makes it positive
@fatiharslan7849
4 жыл бұрын
you need to watch video number 30(Hashes make an integer positive) of this playlist. It's really interesting. My brain used hashing to find that videos location. I have some keyvalues such as positive, integer. The position was somewhere in last 15 videos of the current size. I looked for the keys and found Hashes make an integer positive. Than I gave you the entire video content, the huge value.
@jvamsi1945
4 жыл бұрын
He basically resets the sign bit.
@AirKiter
7 жыл бұрын
Thanks this really helped me in my algorithm and data structure class. It is the more complete and clear tutorial that i have seen.
@thebizzareboy
4 ай бұрын
i understood rehashing but i wanna know how does the glass board work? is he writing inverted(that couldn't be right?) or is this some editing magic or any concept of physics i dont know???? please if someone knows tell me!!
@KundanRoy
3 жыл бұрын
Nice explanation .. the way you are writing on the board is more interesting ...:)
Пікірлер: 24