Bob Lee@crazybob·Jan 9, 2013Java Quicksort uses insertion sort when n < 47. "@ghoseb: 'Fancy algorithms are slow when n is small, and n is usually small.' -- Rob Pike"66825
Peter Geoghegan@petervgeogheganReplying to @crazybob@crazybob @ghoseb That's a very common optimisation. Most (all?) practical C stdlib quicksorts do much the same thing.11:44 AM · Jan 17, 2013·Twitter Web Client
Bob Lee@crazybob·Jan 17, 2013Replying to @petervgeoghegan@sternocera @ghoseb Yep, Sedgewick recommended insertion sort in '78: http://dl.acm.org/citation.cfm?doid=359619.359631…