Pivot partioning
Revision as of 12:54, 30 April 2015 by Weihe (talk | contribs) (Created page with "==Input== # An ordered sequence <math>S</math> of length <math>n</math>. # A definition of Genericity#Comparison|comparis...")
Input
- An ordered sequence [math]\displaystyle{ S }[/math] of length [math]\displaystyle{ n }[/math].
- A definition of comparison on the component type of [math]\displaystyle{ S }[/math].
- A pivot valiue of the component type of [math]\displaystyle{ S }[/math].
Output
A permutation of [math]\displaystyle{ S }[/math] such that [math]\displaystyle{ S[i] \le S[i+1] }[/math] for all [math]\displaystyle{ i\in \{1,...,n-1\} }[/math].
Objective
N/A
Complexity
Polynomial.