-
-
-
- [x] Li-Chao Tree
- [ ] TopTree or Link-Cut Tree
- ~~[ ] Online Offline DP~~
- [ ] Stern–Brocot tree
- [ ] 永続ではない平衡二分木(unsafe)
- [ ] Wavelet Matrix(書きかけなので書こう)
- [x] Binary Trie
- [ ] Trie
- …
qitoy updated
1 month ago
-
Aho-corasickはやらないかもしれない
-
https://pypi.python.org/pypi/pyahocorasick/1.0.0
-
虫食い文字列の長さをT, パターン文字列の長さをS, パターン文字列の数をNとすると,
bm法だと合計 O((T/S) * N)の時間がかかる. Sの長さの分布的に
aho-corasickをつくれば, これがO(T)くらいで探索できるのでいい感じになりそう
問題はワイルドカードxを考慮してもいい感じに動作するかどうかかな
c++による実装例を見つけたのでこれをゴニョゴニョしていきた…
-
http://www.abuasifkhan.me/aho-corasick.html
The link isn't working :( ... http://www.abuasifkhan.me doesn't seem to work either :(
Was it moved to some other website?
-
This is not a bug but a suggestion. I implemented an alternative expression tokenizer using an Aho-Corasick automaton. This allows to lex against a list of known symbols and resolve expressions that w…
-
The push-oriented implementation of Aho-Corasick returns an iterator over the matches it finds. The public regex API instead reports matches via callbacks. I'd like to see the public API also return a…
-
我使用aho_corasick.h进行测试
```
AhoCorasick ac_demo;
ac_demo.add("abc");
ac_demo.add("bc");
ac_demo.add("b");
ac_demo.make();
vector ret;
ac_demo.search("abcx", ret);
```
只能匹配出abc和bc, 中间的b没有匹配出来
…
TVect updated
6 years ago