Comparison sort

Comparison sort

Frederic P. Miller, Agnes F. Vandome, John McBrewster

     

бумажная книга



Издательство: Книга по требованию
Дата выхода: июль 2011
ISBN: 978-6-1307-6779-2
Объём: 112 страниц
Масса: 190 г
Размеры(В x Ш x Т), см: 23 x 16 x 1

A comparison sort is a type of sorting algorithm that only reads the list elements through a single abstract comparison operation (often a "less than or equal to" operator) that determines which of two elements should occur first in the final sorted list. The only requirement is that the operator obey two of the properties of a total order: if a ? b and b ? c then a ? c (transitivity), for all a and b, either a ? b or b ? a (totalness or trichotomy). It is possible that both a ? b and b ? a; in this case either may come first in the sorted list. In a stable sort, the input order determines the sorted order in this case. A metaphor for thinking about comparison sorts is that you have a set of unlabelled weights and a balance scale. The goal is to line up the weights in order by their weight without any information except that obtained by placing two weights on the scale and seeing which one is heavier (or if they weigh the same).

Данное издание не является оригинальным. Книга печатается по технологии принт-он-деманд после получения заказа.

Каталог