Rank Transform of a Matrix
Process equal values together; a union-find over rows and columns groups cells that must share a rank, which is one more than the largest rank already in their rows and columns.
Process equal values together; a union-find over rows and columns groups cells that must share a rank, which is one more than the largest rank already in their rows and columns.