Article View: news.software.nntp
Article #56937Re: [yEnc] some newbie questions
From: Curt Welch
Date: Wed, 27 Feb 2002 00:01
Date: Wed, 27 Feb 2002 00:01
53 lines
3890 bytes
3890 bytes
Liyang Hu <newsgroups@nerv.cx> wrote: > Curt Welch <curt@kcwc.com> wrote: > > > [snip stupid reference to O notation -- brain wasn't switched on] > > > And that's not true base 251 encoding. It's just a close fit to > > allow the algorithm to remain O(N). If you wanted true base 251 > > encoding you would have to treat the entire input file as one huge > > binary numbers and the problem would become O(N^2). > > No, you don't need to do that. Google for `Arithmetic Coding', and > ignore any references to statistical modelling. Ok, I've read a few links and understand it now. (Always good to learn something new) For this application, we would have to actually do it backwards. To encode the binary file, we would have to to Aritimetic de-coding. And for decoding the article, we would have to use Arithmetic coding. Dealing with the last byte or so when doing the encoding would have to be special cased. And yes, even though it's a heavy bit-shifting type of encoding, it would probably be very workable speed-wise. > Hence why I was saying it had not been implemented correctly! I think it's questionable whether that would have been the right way to do it anyway. Yes, Arithmetic Coding is optimal, but it makes the algorithm too complex to expect most newsreader authors to re-implement it correctly from a spec. So you have to give them the code - which is fine of course - but then you are going to have performance and porting issues to face. And the complexity of having to use a magic "block box" of code is going to turn some people off to the idea. And, if you want to give the encoder the option of adding extra characters to the exclusion set, you have to add more complex paramaters to the meta data so the encoder can pass that information along to the decoder. > > Maybe there is a way to do that quicker, but I don't know what it > > is. Feel free to code it and let us do a few timing tests on it > > and see how significant it is or it isn't. > > Working on it. No need unless you want to do just to find the answer as too how fast it will be. I wouldn't mind know the answer to that. I'm guessing it will be within an order of magnatude of the yEnc speed and that would be fast enough. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020226190106.351$w9@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!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!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> <3C74D21B.F49E2F9F@proxad.net> <210220021418431479%planb@newsreaders.com> <a540dn$7i4$7@pegasus.csx.cam.ac.uk> <210220022120391303%planb@newsreaders.com> <a57u73$86r$2@pegasus.csx.cam.ac.uk> <20020223135211.154$cg@newsreader.com> <a59hgh$pk0$2@pegasus.csx.cam.ac.uk>Show Full Headers
Complete Article Headers
Message-ID: <20020226190106.351$w9@newsreader.com>
Subject: Re: [yEnc] some newbie questions
Date: Wed, 27 Feb 2002 00:01:06 +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> <3C74D21B.F49E2F9F@proxad.net> <210220021418431479%planb@newsreaders.com> <a540dn$7i4$7@pegasus.csx.cam.ac.uk> <210220022120391303%planb@newsreaders.com> <a57u73$86r$2@pegasus.csx.cam.ac.uk> <20020223135211.154$cg@newsreader.com> <a59hgh$pk0$2@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!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com MY6vSV@,K2Y9wvPZqX3h8sS5Ci/1xgGxW-K5DCFl+o7amXJ
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: 52