Is there any algorithm to pass from a circular permutation to another by minimizing number of adjacent swaps?

后端 未结 0 1814
既然无缘
既然无缘 2021-02-12 16:18

I\'m looking for an algorithm which, given two circular permutations (the first and the last element are considered as adjacent), minimizes the number of adjacent swaps to pass

相关标签:
回答
  • 消灭零回复
提交回复
热议问题