kmps:与JS Array和TypedArray一起使用的Knuth–Morris–Pratt算法

时间:2021-05-09 08:25:55
【文件属性】:
文件名称:kmps:与JS Array和TypedArray一起使用的Knuth–Morris–Pratt算法
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-09 08:25:55
javascript-library string-search knuth-morris-pratt JavaScript Knuth–Morris–Pratt搜索 的幼稚实现,可与和 安装 npm install git+https://github.com/Chocobo1/kmps.git 用法示例 const Kmp = require ( 'kmps' ) ; // import this module // working with TypedArray { const pattern = Uint32Array . from ( [ 0xFFFF , 0x3000 ] ) ; const corpus = Uint32Array . from ( [ 0xFFFF , 0xFFFF , 0x3000 , 0x1000 ] ) ; // setup `kmp` for later reuse const kmp = Kmp . KnuthMorrisPratt (
【文件预览】:
kmps-master
----package.json(542B)
----test()
--------test.js(6KB)
----LICENSE(1KB)
----package-lock.json(30KB)
----src()
--------index.js(1KB)
----.gitignore(15B)
----README.md(2KB)

网友评论