Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. 7, 5, 6, 3, 8, 4, 2, 1
  2.  
  3. 5, 3, 4, 1, 7, 6, 8, 2
  4.  
  5. 0 1 2 3 4 5 6 7 8 9 10 11 (the original array)
  6. 0 1 2 3 4 5 6 7 8 9 # 10 11 (split to sub-arrays)
  7. 0 2 4 3 8 1 6 5 7 9 # 10 11 (first cycle leader iteration, starting with 1)
  8. 0 2 4 6 8 1 3 5 7 9 # 10 11 (second cycle leader iteration, starting with 3)
  9. 0 2 4 6 8 9 7 5 3 1 # 10 11(2nd half of 1st part& 1st half of 2nd part reversed)
  10. 0 2 4 6 8 10 1 3 5 7 9 11 (both halves reversed together)
  11.  
  12. 0 1 2 3 4 5 6 7 (the original array)
  13. [0 2] [1 3] [4 6] [5 7] (first transposition)
  14. [0 2] [4 6] [1 3] [5 7] (second transposition)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement