Horje

CYCLE sort basic information - Cycle Sort - Algorithm
Learn
Algorithm - Cycle Sort - Cycle sort basic information
Cycle Sort Basic Information

Cycle Sort (opens new window) is sorting algorithm which uses comparison sort (opens new window) that is theoretically optimal in terms of the total number of writes to original array, unlike any other in-place sorting algorithm. Cycle sort is unstable sorting algorithm. It is based on idea of permutation in which permutations are factored into cycles, which individually rotate and return a sorted output.

Example of Cycle Sort:

Cycle Sort (opens new window)

Auxiliary Space: O(1)
Time Complexity: O(n^2)

Read Article
https://develop.horje.com/learn/1434/reference