Re: shorten "compress" long integer to short ascii.

2015-11-20 Thread Grant Edwards
On 2015-11-20, Vincent Davis wrote: > On Thu, Nov 19, 2015 at 9:27 PM, Paul Rubin wrote: > >> You can't improve much. A decimal digit carries log(10,2)=3.32 bits >> of information. A reasonable character set for Twitter-style links >> might have 80 or so characters (upper/lower alphabetic, digi

Re: shorten "compress" long integer to short ascii.

2015-11-20 Thread Vincent Davis
On Thu, Nov 19, 2015 at 9:27 PM, Paul Rubin wrote: > You can't improve much. A decimal digit carries log(10,2)=3.32 bits > of information. A reasonable character set for Twitter-style links > might have 80 or so characters (upper/lower alphabetic, digits, and > a dozen or so punctuation charact

Re: shorten "compress" long integer to short ascii.

2015-11-19 Thread Paul Rubin
Vincent Davis writes: > My goal is to shorten a long integer into a shorter set of characters. > Below is what I have which gets me about a 45-50% reduction. Any suggestion > on how to improve upon this? You can't improve much. A decimal digit carries log(10,2)=3.32 bits of information. A reaso

shorten "compress" long integer to short ascii.

2015-11-19 Thread Vincent Davis
My goal is to shorten a long integer into a shorter set of characters. Below is what I have which gets me about a 45-50% reduction. Any suggestion on how to improve upon this? I not limited to ascii but I didn't see how going to utf8 would help. The resulting string needs to be something I could ty