Hash Collision
Everything on SkillVeris tagged Hash Collision — collected across the glossary, study notes, blog, and cheat sheets.
3 resources across 1 library
Interview Questions(3)
What is a Hash Collision?
A hash collision occurs when two different keys are mapped by a hash function to the same bucket or index in a hash table, which is mathematically inevitable o…
Knuth-Morris-Pratt vs Rabin-Karp: What is the Difference?
KMP guarantees O(n + m) worst-case time by precomputing a failure function that avoids re-scanning matched characters after a mismatch, while Rabin-Karp uses r…
What is String Hashing and How Is It Used?
String hashing converts a string into a fixed-size numeric fingerprint using a polynomial rolling hash, typically computed modulo a large prime, so that two eq…