Article View: news.software.nntp
Article #56777Re: [yEnc] some newbie questions
From: Curt Welch
Date: Fri, 22 Feb 2002 04:40
Date: Fri, 22 Feb 2002 04:40
24 lines
2336 bytes
2336 bytes
Liyang Hu <newsgroups@nerv.cx> wrote: > > Base 251 encodng would turn 256 characters into 256 * 256 / 251 or > > 261.09 characters giving you a 256 to 261.09 expansion. > > No, you're not doing your maths correctly: > > Each Base-251 digit[1] gives you (log to base 2[0]) > log_2(251) == 7.972 bits. > 256 bytes comes out as 256.91 digits. Ah quite right. log_251(256^256) is the correct math for what I was trying to do with my bogus math above, which is log_2(2^(8*256))/log_2(251) which is 8*256/7.97154 which as you say, is 256.91 digits! Which makes a lot more sense. I first assumed that base-251 would produce much better encoding than the escape character encoding used by yEnc and had written a reply about that but then threw it away when I did the "math" and found out I was wrong. :) Glad to see my first assumption was right after all. :) -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020221234016.431$Gi@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <yleljh722r.fsf@windlord.stanford.edu> <04477.k22202@archiver.winews.net> <a500oj$736$1@pegasus.csx.cam.ac.uk> <Xns91BC3666AD674JanC@213.119.4.20> <20020221164013.542$dP@newsreader.com> <a5415o$7i4$8@pegasus.csx.cam.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <20020221234016.431$Gi@newsreader.com>
Subject: Re: [yEnc] some newbie questions
Date: Fri, 22 Feb 2002 04:40:16 +0000
From: curt@kcwc.com (Curt Welch)
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <yleljh722r.fsf@windlord.stanford.edu> <04477.k22202@archiver.winews.net> <a500oj$736$1@pegasus.csx.cam.ac.uk> <Xns91BC3666AD674JanC@213.119.4.20> <20020221164013.542$dP@newsreader.com> <a5415o$7i4$8@pegasus.csx.cam.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com /4j81__JiD9Mqy7HumqvQNopOhVkPqejJ1LF@syeGCRsOeRueF
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 23