Update 1: Fixed bug pointed out by Syam. Alan. J. Perlis says: "In programming, everything we do is a special case of something more general - and often we know it too quickly." So I wrote the most general saddle point finder - Can handle matrices of any order.
Saddle points of a matrix are those elements, if any, that are the smallest in their row & largest in their column. This is my solution for finding the saddle points in a matrix in C.
No comments:
Post a Comment