in this there are permutation cycles which are used to do transpose.can
anybody tell me

nl = (ol x R) mod (N-1)

nl- new location

ol- old location

N-total elements

if i is current element then it will be placed at new location

next = (i*r)%size;

r- no. of rows

please explain how it works logically?i did nt get this


source:-http://www.geeksforgeeks.org/inplace-m-x-n-size-matrix-transpose/

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to