I have n variables and a corresponding nxn matrix. I want to pair them into n/2 groups (assume n even) according to largest number in the matrix. What is the best way to do this?
Thus, the largest number in the matrix will determine the first pairing. You can imagine removign the first pairing, and now you have n-2 variables, and a (n-2) x (n-2) matrix. do the same.