OFFSET
2,2
COMMENTS
There are two places in R. W. Floyd's modified algorithm where the keys are compared. The first is in step H4 [Find larger child.] and the second in step H9' [Does K fit?]. The sequence shows the maxima of the counts of these comparisons, determined over all n! possible orders of the records.
REFERENCES
D. E. Knuth, The Art of Computer Programming Second Edition. Vol. 3, Sorting and Searching. Chapter 5.2.3 Sorting by Selection, Pages 145, 156 and 642. Addison-Wesley, Reading, MA, 1998.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Hugo Pfoertner, Jan 05 2022
STATUS
approved