开发者

Efficient way to search a 2d matrix for another matrix of smaller size

I know KMP (Knuth–Morris–Pratt) is used for one dimensional search. Can it be applied on 2 dimensional array of data? Or is there a more开发者_如何学Python advanced one?


Maybe you can find something in this question. You should be able to use KMP with some adaption if you flatten the matrices you are looking for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜