Ex:
suppose
n=10,n1=1:5perm(n1)=1,3,4,2,5n2=6:10perm(n2)=6,8,7,10,9perm(n)=concatenate(n1,n2)=1,3,4,2,5,6,8,7,10,9
permuation of a given number in a range 1:n in two halves and combine
n=10,n1=1:5perm(n1)=1,3,4,2,5n2=6:10perm(n2)=6,8,7,10,9perm(n)=concatenate(n1,n2)=1,3,4,2,5,6,8,7,10,9
Best Answer