comparison - Is there a good library for sorting a large array of numbers in C? -


If I have a large array of integers or floats, what is a good algorithm / implementation for the syringe? / P>

It is a bit late in the game to edit ... but I'm looking for right and speed .

Comparative cases will be trivial for these cases:

Pre> int cmp_int (CONST WASTE * A, CONST blank * B) {const int * Ia = a; Const int * ib = b; If (* IA & lt; * ib) Return -1; If (* IIA = * IB) returns 1; Return 0; } Int cmp_float (constant empty zeros * a, const zero * b) {const float * fa = a; Const float * FB = B; If (* FA and LT; * FB) Return -1; If (* FA & gt; * FB) returns 1; Return 0; }

(Edit: Depending on the signature overflow behavior, based on the deduction of B, this is not a good idea.)


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -