graou13

superpermutation proof testing

Nov 6th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.53 KB | None | 0 0
  1. for a cycle transition of character cost 'k' for a string of length 'n'
  2. [k chars to change][n - k chars kept] => [n - k chars kept][reversed k part]
  3.  
  4. e.g:
  5. k = 2
  6. ab cde => cde ba
  7.  
  8. we have n k=1 cycles for each k=2 cycle; n-1 k=2 cycles for each k=3 cycle; n-2 k=3 cycles for each k=4 cycle; etc. until k=5 since that loop back to the beginning (we always end up with the fully reversed starting string,
  9. fully reversing that would bring us back at the beginning)
  10.  
  11. e.g:
  12. for n=5
  13. we got 1 k=5 cycle containing 2 k=4 cycles each containing 3 k=3 cycles each containing 4 k=2 cycles each containing 5 k=1 cycles
  14. so that makes 1 * 2 * 3 * 4 * 5 different combinations, all of them.
  15.  
  16. note: each cycles end up a transition away from looping back at the beginning of the corresponding cycle
  17.  
  18. n = 1
  19.  
  20. 1
  21. \\\
  22. 1
  23.  
  24. n = 2
  25.  
  26. 12
  27. 21
  28. \\\\\
  29. 121
  30.  
  31. n = 3
  32.  
  33. 123
  34. 231
  35. 312
  36.  
  37. 213
  38. 132
  39. 321
  40. \\\\\\\\\\\\
  41. 123121321
  42.  
  43. n = 4
  44.  
  45. 1234
  46. 2341
  47. 3412
  48. 4123
  49.  
  50. 2314
  51. 3142
  52. 1423
  53. 4231
  54.  
  55. 3124
  56. 1243
  57. 2431
  58. 4312
  59.  
  60. ---------------------
  61.  
  62. 2134
  63. 1342
  64. 3421
  65. 4213
  66.  
  67. 1324
  68. 3241
  69. 2413
  70. 4132
  71.  
  72. 3214
  73. 2143
  74. 1432
  75. 4321
  76. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  77. 123412314231243121342132413214321
  78.  
  79. n = 5
  80.  
  81. 12345
  82. 23451
  83. 34512
  84. 45123
  85. 51234
  86.  
  87. 23415
  88. 34152
  89. 41523
  90. 15234
  91. 52341
  92.  
  93. 34125
  94. 41253
  95. 12534
  96. 25341
  97. 53412
  98.  
  99. 41235
  100. 12354
  101. 23541
  102. 35412
  103. 54123
  104.  
  105. ------------------------------
  106.  
  107. 23145
  108. 31452
  109. 14523
  110. 45231
  111. 52314
  112.  
  113. 31425
  114. 14253
  115. 42531
  116. 25314
  117. 53142
  118.  
  119. 14235
  120. 42351
  121. 23514
  122. 35142
  123. 51423
  124.  
  125. 42315
  126. 23154
  127. 31542
  128. 15423
  129. 54231
  130.  
  131. ----------------------------------------------------
  132.  
  133. 31245
  134. 12453
  135. 24531
  136. 45312
  137. 53124
  138.  
  139. 12435
  140. 24351
  141. 43512
  142. 35124
  143. 51243
  144.  
  145. 24315
  146. 43152
  147. 31524
  148. 15243
  149. 52431
  150.  
  151. 43125
  152. 31254
  153. 12543
  154. 25431
  155. 54312
  156.  
  157. ==============================================================================
  158.  
  159. 21345
  160. 13452
  161. 34521
  162. 45213
  163. 52134
  164.  
  165. 13425
  166. 34251
  167. 42513
  168. 25134
  169. 51342
  170.  
  171. 34215
  172. 42153
  173. 21534
  174. 15342
  175. 53421
  176.  
  177. 42135
  178. 21354
  179. 13542
  180. 35421
  181. 54213
  182.  
  183. ----------------------------------------------------------------------------------------------------------
  184.  
  185. 13245
  186. 32451
  187. 24513
  188. 45132
  189. 51324
  190.  
  191. 32415
  192. 24153
  193. 41532
  194. 15324
  195. 53241
  196.  
  197. 24135
  198. 41352
  199. 13524
  200. 35241
  201. 52413
  202.  
  203. 41325
  204. 13254
  205. 32541
  206. 25413
  207. 54132
  208.  
  209. ---------------------------------------------------------------------------------------------------------------------------------
  210.  
  211. 32145
  212. 21453
  213. 14532
  214. 45321
  215. 53214
  216.  
  217. 21435
  218. 14352
  219. 43521
  220. 35214
  221. 52143
  222.  
  223. 14325
  224. 43251
  225. 32514
  226. 25143
  227. 51432
  228.  
  229. 43215
  230. 32154
  231. 21543
  232. 15432
  233. 54321
  234. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  235. 123451234152341253412354123145231425314235142315423124531243512431524312543121345213425134215342135421324513241532413524132541321453214352143251432154321
Advertisement
Add Comment
Please, Sign In to add comment