[plt-scheme] Integer-length

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Wed Mar 22 16:10:14 EST 2006

Philippe Meunier wrote:
> Joe Marshall wrote:
> 
>>If you are only interested in numbers with a few bits, however, a
>>nested conditional will most likely be the fastest.
> 
> 
> For big numbers I'd go with Jacob's log-based solution.
> For small numbers I'd just precompute the answers, keep them in a
> vector, and use the input number as the vector's index.

I think I have too many small numbers :-)

-- 
Jens Axel Søgaard




Posted on the users mailing list.