Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heapsort and cache

According to wikipedia, heapsort runs more quickly on computers with small or slow data caches. How could having a slow data cache improve performance ?

like image 617
PhDP Avatar asked Jun 04 '26 18:06

PhDP


1 Answers

It is compared to merge sort.

In the same paragraph merge sort is mentioned as a competitor, in that context it means that heap sort gets faster compared to merge sort with small cache sizes.

like image 122
Albin Sunnanbo Avatar answered Jun 08 '26 01:06

Albin Sunnanbo