title: Is there a good algorithm to detect 2 matrix are similar
body: <p>I have two matrix like below (A) and (B) ↓</p>
  
  <p>I want to know ,</p>
  
  <p>1) Is the number (7,6) in (B) is also in (A) </p>
  
  <p>2) Is B is 66%up like A .....</p>
  
  <p>And ,how can I do that with CSharp?</p>
  
  <p>Thanks for your advices..... </p>
  
  <pre><code>    (A)
      000000000000000000000000000000000000000
      000011111111100000010000000001000000000
      000000000001000000010000000001000000000
      000000000100000000010000000001000000000
      000000001000000000010000000001000000000
      000000010000000000010000000001111111110
      000000100000000000010000000001000000010
      000001000000000000010000000001000000010
      000010000000000000010000000001111111110
      000000000000000000000000000000000000000
  
  
  
  
      (B)
      000000000000000000000000000000000000000
      000011111111100000000000000001000000000
      000000000001000000000000000001000000000
      000000000100000000000000000001000000000
      000000001000000000000000000001000000000
      000000010000000000000000000001111111110
      000000100000000000000000000001000000010
      000001000000000000000000000001000000010
      000010000000000000000000000001111111110
      000000000000000000000000000000000000000
  </code></pre>