Cyclic Permutations: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 24: Line 24:
|}
|}


== Time Complexity graph ==  
== Time Complexity Graph ==  


[[File:Generating Random Permutations - Cyclic Permutations - Time.png|1000px]]
[[File:Generating Random Permutations - Cyclic Permutations - Time.png|1000px]]


== Space Complexity graph ==  
== Space Complexity Graph ==  


[[File:Generating Random Permutations - Cyclic Permutations - Space.png|1000px]]
[[File:Generating Random Permutations - Cyclic Permutations - Space.png|1000px]]


== Pareto Decades graph ==  
== Pareto Frontier Improvements Graph ==  


[[File:Generating Random Permutations - Cyclic Permutations - Pareto Frontier.png|1000px]]
[[File:Generating Random Permutations - Cyclic Permutations - Pareto Frontier.png|1000px]]

Revision as of 13:04, 15 February 2023

Description

Given an input string/array, generate a single random cyclic permutation of the characters/elements of the string/array.

Related Problems

Related: General Permutations

Parameters

n: number of elements

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
Sattolo's algorithm 1986 $O(n)$ $O({1})$ Exact Randomized Time

Time Complexity Graph

Generating Random Permutations - Cyclic Permutations - Time.png

Space Complexity Graph

Generating Random Permutations - Cyclic Permutations - Space.png

Pareto Frontier Improvements Graph

Generating Random Permutations - Cyclic Permutations - Pareto Frontier.png