Skip to content

Commit 04d059d

Browse files
authored
Made some cosmetic changes
1 parent 8dcde65 commit 04d059d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Pattern Searching/src/Rabin Karp.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//#Rapin karp pattern searching algorithm
2-
//#Best and average time complexity - O(n+m)
3-
//#Worst case time complexity [O(nm)] when all characters of pattern and text are same
1+
// Rapin karp pattern searching algorithm
2+
// Best and average time complexity - O(n+m)
3+
// Worst case time complexity [O(nm)] when all characters of pattern and text are same
44
// as the hash values of all the substrings of txt[] match with hash value of pat[]
55

66
#include<bits/stdc++.h>
@@ -72,8 +72,8 @@ int main()
7272
return 0;
7373
}
7474

75-
//#Description
76-
//Rabin karp is one of the efficient algorithm for pattern searching.
77-
//It uses the concept that calculate the hashvalue for pattern
78-
//Also calculate for substring of m characters and equate it with that of pattern one
79-
//If it matches means 1 pattern found
75+
// Description
76+
// Rabin karp is one of the efficient algorithm for pattern searching.
77+
// It uses the concept that calculate the hashvalue for pattern
78+
// Also calculate for substring of m characters and equate it with that of pattern one
79+
// If it matches means 1 pattern found

0 commit comments

Comments
 (0)