-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Implement ruling hash to appropriate complexity of Rabin Karp #1066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mahbubcseju
commented
Jul 24, 2019
- Previous solution is based on the hash function of python.
- Implemented ruling hash to get the appropriate complexity of rabin karp.
* Implemented the way of finding nth fibonacci. * Complexity is about O(log(n)*8)
- Removed some extra spaces - Added the complexity of bruteforce algorithm - Removed unused function called zerro() - Added some docktest based on request
- Removed some extra spaces - Added the complexity of bruteforce algorithm - Removed unused function called zerro() - Added some docktest based on request
- Previous solution is based on the hash function of python. - Implemented ruling hash to get the appropriate complexity of rabin karp.
Could you please add a test containing Unicode patterns? |
- Previous solution is based on the hash function of python. - Implemented ruling hash to get the appropriate complexity of rabin karp.
Actually I dont know about Unicode pattern testing. Trying to learn about it |
Pytest did not find our automated tests. :-( Can you please add a docetest by changing the code to read: def test_rabin_karp():
"""
>>> test_rabin_karp()
Success.
"""
[ then the body of the function as it is and then at the end of the function... ]
print("Success.") |
You should be able to test this doctest locally with: |
Added unit pattern testing
Yes , Done ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. That works... https://travis-ci.org/TheAlgorithms/Python/builds/562971505#L670
Are we ready to merge? Or did you want to add the Unicode test(s) first?
Yes, please merge. |
…orithms#1066) * Added matrix exponentiation approach for finding fibonacci number. * Implemented the way of finding nth fibonacci. * Complexity is about O(log(n)*8) * Updated the matrix exponentiation approach of finding nth fibonacci. - Removed some extra spaces - Added the complexity of bruteforce algorithm - Removed unused function called zerro() - Added some docktest based on request * Updated the matrix exponentiation approach of finding nth fibonacci. - Removed some extra spaces - Added the complexity of bruteforce algorithm - Removed unused function called zerro() - Added some docktest based on request * Updated Rabin Karp algorithm. - Previous solution is based on the hash function of python. - Implemented ruling hash to get the appropriate complexity of rabin karp. * Updated Rabin Karp algorithm. - Previous solution is based on the hash function of python. - Implemented ruling hash to get the appropriate complexity of rabin karp. * Implemented ruling hash to appropriate complexity of Rabin Karp Added unit pattern testing