On 7 Jan, 02:49, forbisga...@gmail.com wrote: > On Sunday, January 6, 2013 9:53:53 AM UTC-8, JT wrote: > > It is not java it is JS if you can not manage copy paste the text into > > a txt document, rename extension .html, doubleclick and press the > > button to sort i am afraid you are beyond help. > > What weight would you assign to the word "irrational"? If you > assign it to the same weight as "irrationals" then how do you > differentiate between the two words? If the index is in the > range 256^11 so that each word up to 11 characters is assigned > a unique weight then your output loop is going to take some time > and will be quite uproductive for a page of text or even some > 2000 words.
I've just told you that the pointer implementation of countsort do not need to allocate memory, and that it is recursive working and run each digit length in their bransch. That should be enough to implement it.