This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: About sorting algorithm in glibc


>>>>> Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> writes:

 > GNU libc uses merge sort if it can get the needed space, otherwise resorts
 > to quicksort.  I don't know what Bentley and Tukey is about, but GNU
 > libc's quicksort contains some optimisations from Sedgewick.

Why not use introsort?

  http://www.cs.rpi.edu/~musser/gp/index_1.html

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]