Thanks to visit codestin.com
Credit goes to github.com

Skip to content

glkz/rabinkarp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rabin-Karp multiple pattern search

A golang implementation of Rabin-Karp algorithm.

Provides searching multiple patterns with an average O(n+m) time complexity (where n is the length of text and m is the combined length of pattern strings).

Installation

$ go get github.com/glkz/rabinkarp

Usage

import "github.com/glkz/rabinkarp"

func main() {
  rabinkarp.Search("the text you want to search in", []string{"the", "keywords"})
  // returns []string{"the"}
}

See GoDoc

About

Rabin-Karp multiple pattern string search

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages