Article View: news.software.nntp
Article #56948Re: [yEnc] some newbie questions
From: Curt Welch
Date: Wed, 27 Feb 2002 19:07
Date: Wed, 27 Feb 2002 19:07
40 lines
2970 bytes
2970 bytes
Nuutti Kotivuori <naked@iki.fi> wrote: > Curt Welch wrote: > > Liyang Hu <newsgroups@nerv.cx> wrote: > >> After arithmetic coding, the number of \000, \012 and \016 bytes > >> will add up to zero. > > > > But if the skew before encoding meant it had none of those bytes to > > begin with, then there will be no expansion using escape characters, > > but with arithmetic coding, there will always be a fixed expansion. > > > > So the question becomes, instead of using artihmetic coding to > > flaten the skew (at the cost of expansion) might it be better to use > > some of the skew already in the data? > > Actually, you assume that we do the arithmetic coding with a flat > 1/251 table of probabilities. Then what you say will be true. Yes. > But if we, for example, use adaptive coding, the table will shape > itself to respect the actual distribution of bytes in the input > data. No. At least I don't see how to do that. Maybe you can teach me something else new? Remeber, to use arithmetic encoding to solve the binary to base251 translation problem, we have to use the arithmetic DEcoding algorithm to do our ENcoding work. I don't see how you can use the skew in the binary data to any advantage when going in that direction. The only option I see is to simply make one pass over the data with any compression algorithm (of which adaptive coding would be a poor choice), and then use arithmetic coding to convert from binary to baseX. Do you see what I'm saying? -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020227140753.831$xF@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!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <1rr8nmjix6.fsf@fjorir.ifi.uio.no> <a4knl3$3ol$1@pegasus.csx.cam.ac.uk> <3c7a60b7.469568@news> <a5gp0f$621$1@pegasus.csx.cam.ac.uk> <20020226152108.753$EN@newsreader.com> <87it8j2vuq.fsf@iki.fi>Show Full Headers
Complete Article Headers
Message-ID: <20020227140753.831$xF@newsreader.com>
Subject: Re: [yEnc] some newbie questions
Date: Wed, 27 Feb 2002 19:07:53 +0000
From: curt@kcwc.com (Curt Welch)
References: <3c6e6798.9093644@news> <a4kc41$ou1$2@pegasus.csx.cam.ac.uk> <1rr8nmjix6.fsf@fjorir.ifi.uio.no> <a4knl3$3ol$1@pegasus.csx.cam.ac.uk> <3c7a60b7.469568@news> <a5gp0f$621$1@pegasus.csx.cam.ac.uk> <20020226152108.753$EN@newsreader.com> <87it8j2vuq.fsf@iki.fi>
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!jfk3-feed1.news.digex.net!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com KE8MMwwrRdvpdeVwHBJmS3_/CApc1RjmVk0Y9Z9fMMZ3nUGh+
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: 39