guliash / kmp-matcher

Knuth Morris Pratt algroithm in js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

kmp-matcher

Knuth Morris Pratt algorithm's realisation in js

Example

var kmp = require('kmp-matcher');
kmp.kmp('aabbaaccdsbbaab', 'a'); // returns an array of positions of all occurrences [0, 1, 4, 5, 12, 13]

About

Knuth Morris Pratt algroithm in js

License:MIT License


Languages

Language:JavaScript 100.0%