Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

String Hashing Doubt

Правка en1, от 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 !!!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский nandapavan26 2023-08-18 13:36:51 494 Initial revision (published)