pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/ynd24/String-Pattern-Matching-Linear-Time

GitHub - ynd24/String-Pattern-Matching-Linear-Time: Using Python, created an algorithm inspired by Rabin-Karp Algorithm for string pattern matching in linear time
Skip to content

Using Python, created an algorithm inspired by Rabin-Karp Algorithm for string pattern matching in linear time

License

Notifications You must be signed in to change notification settings

ynd24/String-Pattern-Matching-Linear-Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

String-Pattern-Matching-Linear-Time

Using Python, created an algorithm inspired by Rabin-Karp Algorithm for string pattern matching in linear time. It works in linear time as the singular for loop runs O(n-m+1) simplified to O(len(str)). Since I create a set of all possible substrings of length of possible pattern and According to Python wiki: Time complexity, a set is implemented as a hash table. So you can expect to lookup/insert/delete in O(1) average.

About

Using Python, created an algorithm inspired by Rabin-Karp Algorithm for string pattern matching in linear time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy