[futurebasic] Re: [FB] Re: Jay's Alphabetic Continuum

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2000 : Group Archive : Group : All Groups

From: Ruslan Zasukhin <sunshine@...>
Date: Sun, 08 Oct 2000 18:02:55 +0300
on 08/10/2000 07:03, Jay Reeve at jktr@... wrote:

>> Question: 
>> why we can use such hash algorithms for sorting of strings
>> but can not use them for sorting of numbers ?    :-)

> You can--provided you know the range and something about the expected
> frequency! After all, the ascii codes I was mapping are all numbers. The
> problem with numbers is that their range can be infinite, and most or all of
> the instances being sorted may fall into a very small segment of the range.
> Add a preliminary pass to define the range, and you can hash just fine.


We use computer types which have exact limited range -- long, short, byte,
so we can again split this range into Nth group and use this.


-- 
Best regards,
Ruslan Zasukhin

-------------------------
Paradigma.

e-mail: ruslan@...
web   : http://www.paradigmasoft.com

To subscribe to the Valentina mail list
send a letter to valentina-on@...