开发者

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

开发者 https://www.devze.com 2023-03-18 04:42 出处:网络
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 i

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

精彩评论

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