I know that the number of transpositions would determine the parity of a permutation like:
A = (1,2,3,4,5) = (1,5),(1,4),(1,3),(1,2) = even
But how would that apply to a matrix?
Example:
1 2 3 4 5 6 7 8
4 2 1 6 5 8 7 3
How would I then transpose these?
Make comparison with each column.
1.Starting from the first column, you have $1\rightarrow4$.
2.Then seek which column top has $4$, which is the fourth column and you have $4\rightarrow6$, etc...
3.Eventually you have $(14683)$ for the first cycle.
4.Then check if any other element left in this cycle. Take one if you have and repeat the previous progress.