> -----Original Message-----
> From: Christoph Rippel [mailto:crippel / primenet.com]
> Sent: Tuesday, January 02, 2001 11:10 PM
> To: ruby-talk / netlab.co.jp
> Subject: [ruby-talk:8539] Re: speedup of anagram finder
> 
> 
> > This allows us to come up with a hashing function using floating
> > point numbers.  The only issue is what point we will get into
> > pain from round-off errors.
> Actually round-off errors are a major issue (in theory and practice) -
> floating point arithmetic is not associative - this idea 
> breaks down  if
> words.lenght > 2.
> 
That's why my "slide rule" version was based on logs * ( some large power of
10 ),
then truncated to integers. Floating point arithmetic is also relatively
slow in Ruby,
anyway.