|
Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.stsci.edu/~sontag/spicedocs/cspice/shelli_c.html
Дата изменения: Sat Dec 17 06:09:41 2005 Дата индексирования: Mon Apr 11 00:08:57 2016 Кодировка: Поисковые слова: http www.badastronomy.com bad tv foxapollo.html |
Sort an integer array using the Shell Sort algorithm.
None.
VARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- ndim I Dimension of the array. array I/O The array.
ndim is the number of elements in the array to be sorted. array on input, is the array to be sorted.
array on output, contains the same elements, sorted
in increasing order. The actual sorting is done
in place in array.
None.
The Shell Sort Algorithm is well known.
Let array contain the following elements:
99
33
55
44
-77
66
Then after a call to shelli_c, the array would be ordered as
follows:
-77
33
44
55
66
99
None.
Error free. 1) If ndim < 2, this routine does not modify the array.
None.
N.J. Bachman (JPL) I.M. Underwood (JPL)
None.
-CSPICE Version 1.0.0, 08-JUL-2002 (NJB) (IMU)
shell sort an integer array