I need to find two identical submatices in a larger matrix. I am not getting how to approach as first I need to have a submatrice and then to find if its identical is present or not.
e.g. (N X M) 4X5 matrix
xy*yyx*
yx*xyy*
x*yyx*y
x*xyy*x
Identicals are
yyx
xyy
present at bold letters made points.. N,M <=10
not sure where to start with..