Is there a good radixsort-implementation for floats in C#

Posted by CommuSoft on Stack Overflow See other posts from Stack Overflow or by CommuSoft
Published on 2010-04-21T17:13:39Z Indexed on 2010/04/21 17:33 UTC
Read the original article Hit count: 254

Filed under:
|
|
|
|

I have a datastructure with a field of the float-type. A collection of these structures needs to be sorted by the value of the float. Is there a radix-sort implementation for this.

If there isn't, is there a fast way to access the exponent, the sign and the mantissa. Because if you sort the floats first on mantissa, exponent, and on exponent the last time. You sort floats in O(n).

© Stack Overflow or respective owner

Related posts about radixsort

Related posts about float