A350569
a(n)/n! is the average number of key comparisons required to sort n records with distinct keys using a modified heapsort (Algorithm H in Don Knuth's TAOCP Vol. 3, answer to exercise 18).
Original entry on oeis.org
2, 18, 154, 1257, 10152, 91557, 922368, 10286658, 119281680, 1517655690, 20619929376, 303487939485, 4662169420608
Offset: 2
- 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.
A350428
2*a(n)/n! is the average number of key comparisons required to sort n records with distinct keys using heapsort (Algorithm H in Don Knuth's TAOCP Vol. 3).
Original entry on oeis.org
1, 9, 78, 657, 5448, 49869, 520416, 5901138, 70092000, 902850273, 12416814432, 183763314090, 2854581512832
Offset: 2
- D. E. Knuth, The Art of Computer Programming Second Edition. Vol. 3, Sorting and Searching. Chapter 5.2.3 Sorting by Selection, Page 145. Addison-Wesley, Reading, MA, 1998.
A350569 contains a table with the maximum and average number of comparisons for the original algorithm and for its modified version.
A350427
a(n) is the maximum number of key comparisons required to sort n records with distinct keys using a modified heapsort (Algorithm H in Don Knuth's TAOCP Vol. 3, answer to exercise 18).
Original entry on oeis.org
1, 3, 7, 12, 16, 20, 27, 34, 39, 44, 51, 57, 63
Offset: 2
- 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.
A350569 contains a table with the maximum and average number of comparisons for the original algorithm and for its modified version.
Showing 1-3 of 3 results.
Comments