Please read the new rule regarding the restriction on the use of AI tools. ×

String Hashing Doubt

Revision en1, by nandapavan26, 2023-08-18 13:36:51

Question: In some string problems l have used hashing for checking a substring is present in a given string in o(1) [i.e for matching a substring] but i had a doubt that how can we say that hashing doesn't undergo collision while checking for matching substrings?

Note: the hashing logic is the same logic that used in rabin karp algorithm for patter matching. Please correct me if am wrong in any case.

Everyone are invited to solve my doubt

Thanks in Advance !!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nandapavan26 2023-08-18 13:36:51 494 Initial revision (published)