Sorting Sequences of Strings: Difference between revisions

From Algowiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ Category:Checkup Category:Algorithmic Problem Category:Sorting ==Input== An ordered sequence <math>S<...")
 
Line 16: Line 16:


==Known algorithms==
==Known algorithms==
[[Bucketsort]]
# [[Bucketsort]]
# [[Bubblesort]]
# [[Mergesort]]
# [[Quicksort]]
# [[Selection sort]]

Revision as of 14:29, 14 May 2015

Input

An ordered sequence [math]\displaystyle{ S }[/math] of length [math]\displaystyle{ n \in \mathbb{N}_{0} }[/math] and component type string over some alphabet [math]\displaystyle{ \Sigma }[/math].

Output

A permutation of [math]\displaystyle{ S }[/math] such that, for [math]\displaystyle{ i \in \{1,...,n-1\} }[/math], [math]\displaystyle{ S[i] }[/math] is not lexicographically larger than [math]\displaystyle{ S[i+1] }[/math].

Objective

N/A

Complexity

Linear in the total sum of all string lengths.

Known algorithms

  1. Bucketsort
  2. Bubblesort
  3. Mergesort
  4. Quicksort
  5. Selection sort