Question: is there a method to group by pattern or recognize combination of patterns automatically?

if there a series of matrix,

current matrix and previous matrix has same value , then defined as pattern

and

then define x and y are the position of pattern , if Matrix([[777,x,x],[77,7,7],[2,y,y]]

then code auto exchange x and y become Matrix([[777,y,y],[77,7,7],[2,x,x]]

but this recognization need to observe manually, 

can this be automated for any kind of pattern , such as exchange or other operations of pattern?

 

can neural network or deep learning in maple code recognize the operations such as exchange part of row or flip or symmetric about axis or other need imaginable operations ?

Please Wait...