On 3/27/06 9:27 AM, Craig A. Finseth at fin at finseth dot com wrote:
> I have hundreds or thousands of integers that I would like to combine in
> such a way that I can figure out the component numbers later. I will know
> how many numbers there are in a series, and the high and low numbers, and I
> can record any other information about the series that would let me
> backtrack. Ideally, the result would fit in an Int64, but I can go higher
> than that if need be.
>
> Does anyone have a suggestion?
>
> You have some number N of integers, all of them in the range L to H.
> You want to combine them into a single "thing" of a small size. Right?
>
> This means the result is not an array or anything like that, but more
> like a MemoryBlock.
That's exactly it.
> The minimum size (in bits) that you'll need to store the object is:
Got it. But what is the formula for storing the numbers?
__________________________________________________________________________
Kem Tekinay (212) 201-1465
MacTechnologies Consulting Fax (914) 242-7294
545 Eighth Avenue, Suite 401 Pager (917) 491-5546
New York, New York 10018 http://www.mactechnologies.com
To join the MacTechnologies Consulting mailing list, send an e-mail to:
mactechnologies_consulting-subscribe at yahoogroups dot com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|