String comparison — where it appears
Named by 2 essays across 2 fields — each of them below, with the objects they name alongside it.
The comparison that is not one comparison
Sorting 512 keys costs 3,955 comparisons whatever the keys are, and between 7,849 and 134,409 character examinations depending only on how much those keys have in common. The first number is the one every bound so far is stated in. The second is the one the machine pays, it grows without limit, and nothing here has ever counted it.
The exchange rate nobody wrote down
Three earlier essays have said in passing that the ranking would change if the elements were large records. None of them computed it. Computed, selection sort goes from second-worst of seven at four bytes a record to best of seven at five hundred and twelve — and the crossover against each rival is a division that takes one line.
Named alongside it
The objects these essays reach for when they reach for this one.
Cost modelUnit of costCharacter comparisonComparison countComparison sortCrossoverData movementDistinguishing prefixMeasured countMerge sortOperation countRadix sort