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

后端 未结 0 1333
梦谈多话
梦谈多话 2021-02-12 16:33

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

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