Data Exchange and Permutation Length (Q3136719)
From MaRDI portal
!
This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use the normal view instead:
scientific article; zbMATH DE number 425758
| Language | Label | Description | Also known as |
|---|---|---|---|
| default for all languages | No label defined |
||
| English | Data Exchange and Permutation Length |
scientific article; zbMATH DE number 425758 |
Statements
21 October 1993
0 references
sorting
0 references
exchange-sort
0 references
average case complexity
0 references
permutations
0 references
runtime
0 references
Data Exchange and Permutation Length (English)
0 references
0.7399792671203613
0 references
0.6876475811004639
0 references
0.6785666942596436
0 references
The well-known exchange-sort algorithm sorts an input list of \(n\) distinct real numbers in increasing order. The algorithm consists of at most \(n-1\). On each pass the sort algorithm starting from the beginning of the list, compares all adjacent numbers one by one, and exchanges them if the first number of a pair occurred to be greater than the second one. It was shown by D. Knuth that the average runtime of exchange-sort may be expressed in terms of combinatorial properties of permutations. Namely, the average runtime of the algorithm on a random input list of length \(n\) is equal to the average number of inversions in the list, and is \(n(n- 1)/4\). The paper analysis the average number of exchanges occurred during the first pass of the algorithm. It is proven that this number equals the average transpositional length of a permutation. Transpositional length of a permutation is the minimal number \(m\), such that the permutation can be decomposed as a product of \(m\) transpositions. The common average value for an input of length \(n\) is \(n- (1+ 1/2+\cdots+ 1/n)\).
0 references