PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
Owner confidence rating: Medium Entry average rating: No information on entry rating
sorting problem (Algorithm)

Let $\leq$ be a total ordering on the set $S$ Given a sequence of $n$ elements, $x_1, x_2, \dots, x_n \in S$ find a sequence of distinct indices $1 \leq i_1, i_2, \dots, i_n \leq n$ such that $x_{i_1} \leq x_{i_2} \leq \dots \leq x_{i_n}$

The sorting problem is a heavily studied area of computer science, and many sorting algorithms exist to solve it. The most general algorithms depend only upon the relation $\leq$ and are called comparison-based sorts. It can be proved that the lower bound for sorting by any comparison-based sorting algorithm is $\Omega(n\log{n})$

A few other specialized sort algorithms rely on particular properties of the values of elements in $S$ (such as their structure) in order to achieve lower time complexity for sorting certain sets of elements. Examples of such a sorting algorithm are the bucket sort and the radix sort.




"sorting problem" is owned by Logan.
(view preamble | get metadata)

View style:

See Also: total order, partial order, relation, heapsort, bubblesort, binary search, in-place sorting algorithm, insertion sort, Landau notation, quicksort, selection sort

Keywords:  sort, algorithm, comparison

Attachments:
lower bound for sorting (Proof) by stevecheng
Log in to rate this entry.
(view current ratings)

Cross-references: time complexity, order, structure, properties, lower bound for sorting, sorts, relation, algorithms, computer, area, indices, sequence, total ordering
There are 5 references to this entry.

This is version 2 of sorting problem, born on 2001-10-06, modified 2002-05-27.
Object id is 127, canonical name is SortingProblem.
Accessed 8216 times total.

Classification:
AMS MSC68P10 (Computer science :: Theory of data :: Searching and sorting)

Pending Errata and Addenda
None.
Discussion
Style: Expand: Order:
forum policy

No messages.

Interact
post | correct | update request | add example | add (any)