TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jasen Betts
from: Neil Heller
date: 2004-05-22 10:33:00
subject: A question

JB>then join the 255 lists together again into one list and

JB>repeat using the next least significant byte,
JB>repeat unitl all bytes of the key value have been used,

JB>the list is now sorted.

Ahhh... Radix sort now comes back to me.

JB>AFAIK there's nothing more efficient than O(n) sorting.
JB>but remember you do need memory for the linked list

JB>it's possible with a few tweaks do radix sort on IEEE floating point
JB>numbers too, but it'll never work for strings etc...

It seems to me that if Radix sort works correctly with multi-byte 
integers and floats, it should work with strings.

Why won't it?

þ CMPQwk 1.42 999

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.