It seems that a major aspect of this question is figuring out whether or not I can search the matrix and compare values.
If $A$ is a matrix, Min[A] gives the smallest entry.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago