<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: The Data Compression Book</title>
	<atom:link href="http://marknelson.us/about/tdcb/feed/" rel="self" type="application/rss+xml" />
	<link>http://marknelson.us</link>
	<description>Programming, mostly.</description>
	<lastBuildDate>Mon, 30 Jan 2012 17:56:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-398719</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Sat, 12 Nov 2011 19:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-398719</guid>
		<description>@johny:

There were many typos in the book - back in they days when we printed long listings like this, it was tough on the proofreaders - they didn&#039;t understand C. Not only that, but the people who typeset the book had to take my code for printouts and type it in by hand - and they didn&#039;t know C either.

The disk that accompanied the book had correct code, but if you are looking at the book right now it is very unlikely that you have a copy of the diskette.

The line in question should be:

   min_2 = min_1;

Somehow that = sign was converted to a plus sign.

Thanks for reading!
- Mark</description>
		<content:encoded><![CDATA[<p>@johny:</p>
<p>There were many typos in the book &#8211; back in they days when we printed long listings like this, it was tough on the proofreaders &#8211; they didn&#8217;t understand C. Not only that, but the people who typeset the book had to take my code for printouts and type it in by hand &#8211; and they didn&#8217;t know C either.</p>
<p>The disk that accompanied the book had correct code, but if you are looking at the book right now it is very unlikely that you have a copy of the diskette.</p>
<p>The line in question should be:</p>
<p>   min_2 = min_1;</p>
<p>Somehow that = sign was converted to a plus sign.</p>
<p>Thanks for reading!<br />
- Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johny</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-398711</link>
		<dc:creator>johny</dc:creator>
		<pubDate>Sat, 12 Nov 2011 19:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-398711</guid>
		<description>[/c]
if ( nodes[ i ].count != 0) 
{ 
  if ( nodes[ i ].count &lt; nodes[ min_1 ].count) 
  { 
    min_2 + min_1; 
    min_1 = i; 
  }
  else if ( nodes[ i ].count &lt; nodes[ min_2 ].count) 
    min_2 = i; 
} 
[/c]
What is meant by min_2 + min_1,please?Shouldn´t it be min_2 = min_2 + min_1?Code is from function build_tree from The Huffman algorithm chapter...

Thank you for answer</description>
		<content:encoded><![CDATA[<p>[/c]<br />
if ( nodes[ i ].count != 0)<br />
{<br />
  if ( nodes[ i ].count &lt; nodes[ min_1 ].count)<br />
  {<br />
    min_2 + min_1;<br />
    min_1 = i;<br />
  }<br />
  else if ( nodes[ i ].count &lt; nodes[ min_2 ].count)<br />
    min_2 = i;<br />
}<br />
[/c]<br />
What is meant by min_2 + min_1,please?Shouldn´t it be min_2 = min_2 + min_1?Code is from function build_tree from The Huffman algorithm chapter&#8230;</p>
<p>Thank you for answer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: afzal</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-358614</link>
		<dc:creator>afzal</dc:creator>
		<pubDate>Sat, 21 May 2011 20:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-358614</guid>
		<description>Hi,
i need shannon fano data compression code for compressing file.
I need to write a report on it.can anybody help me ASAP.

THANKS</description>
		<content:encoded><![CDATA[<p>Hi,<br />
i need shannon fano data compression code for compressing file.<br />
I need to write a report on it.can anybody help me ASAP.</p>
<p>THANKS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-344898</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Wed, 19 Jan 2011 13:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-344898</guid>
		<description>@donnyab:

I would really love to update the book, but I don&#039;t have the time in my schedule in the near future.

- Mark</description>
		<content:encoded><![CDATA[<p>@donnyab:</p>
<p>I would really love to update the book, but I don&#8217;t have the time in my schedule in the near future.</p>
<p>- Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: donnyab</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-344865</link>
		<dc:creator>donnyab</dc:creator>
		<pubDate>Wed, 19 Jan 2011 08:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-344865</guid>
		<description>Not sure where I came across this book originally, maybe a reference to it in jpeg.org. 
It is a pretty good book but is there any chance of an updated version of it coming out any time soon ?
I am especially interested in video compression and need a more recent book urgently !</description>
		<content:encoded><![CDATA[<p>Not sure where I came across this book originally, maybe a reference to it in jpeg.org.<br />
It is a pretty good book but is there any chance of an updated version of it coming out any time soon ?<br />
I am especially interested in video compression and need a more recent book urgently !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-334944</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Mon, 25 Oct 2010 15:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-334944</guid>
		<description>@Yasr:

I&#039;ve given the best explanation I know how in the book. It&#039;s possible you might get a better explanation here, but it&#039;s mostly the same text as the book:

http://dogma.net/markn/articles/arith/part1.htm

You could try the wikipedia article also:

http://en.wikipedia.org/wiki/Arithmetic_coding

I recommend actually running the code in a debugger and stepping through it for better results.</description>
		<content:encoded><![CDATA[<p>@Yasr:</p>
<p>I&#8217;ve given the best explanation I know how in the book. It&#8217;s possible you might get a better explanation here, but it&#8217;s mostly the same text as the book:</p>
<p><a href="http://dogma.net/markn/articles/arith/part1.htm" rel="nofollow">http://dogma.net/markn/articles/arith/part1.htm</a></p>
<p>You could try the wikipedia article also:</p>
<p><a href="http://en.wikipedia.org/wiki/Arithmetic_coding" rel="nofollow">http://en.wikipedia.org/wiki/Arithmetic_coding</a></p>
<p>I recommend actually running the code in a debugger and stepping through it for better results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasr</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-334937</link>
		<dc:creator>Yasr</dc:creator>
		<pubDate>Mon, 25 Oct 2010 14:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-334937</guid>
		<description>Hello Mark

I have read your book &quot;The Data Compression&quot; and just have one question about &#039;The Arithmatic code method&#039;, I can&#039;t find an example of decoding the example message &quot;BILL GATE&quot; by shifting the MSB from low and High values. I will appreciate that if you can give me the decoding example as I understood the encoding but can&#039;t understood the decoding from the C code.

Best Wishes

Yaser Hosaney
Egypt</description>
		<content:encoded><![CDATA[<p>Hello Mark</p>
<p>I have read your book &#8220;The Data Compression&#8221; and just have one question about &#8216;The Arithmatic code method&#8217;, I can&#8217;t find an example of decoding the example message &#8220;BILL GATE&#8221; by shifting the MSB from low and High values. I will appreciate that if you can give me the decoding example as I understood the encoding but can&#8217;t understood the decoding from the C code.</p>
<p>Best Wishes</p>
<p>Yaser Hosaney<br />
Egypt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark Nelson</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-319363</link>
		<dc:creator>Mark Nelson</dc:creator>
		<pubDate>Sun, 29 Nov 2009 21:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-319363</guid>
		<description>@J:

Thanks for the corrections - the first edition was done in the dark ages of publishing - believe it or not I had to send in hardcopy, so it had more than it&#039;s share of problems, particularly in the code.

- Mark</description>
		<content:encoded><![CDATA[<p>@J:</p>
<p>Thanks for the corrections &#8211; the first edition was done in the dark ages of publishing &#8211; believe it or not I had to send in hardcopy, so it had more than it&#8217;s share of problems, particularly in the code.</p>
<p>- Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-319357</link>
		<dc:creator>J</dc:creator>
		<pubDate>Sun, 29 Nov 2009 18:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-319357</guid>
		<description>Mark-

Love the book.  It&#039;s been on my bookshelf since &#039;92.

I was referring to it this morning, and thought I&#039;d pass along some errata, in case you plan to come out with a revised edition sometime soon.

These are pertaining to the first edition.

Page 125, in your table, all 18 of your &quot;greater than&quot; signs should be &quot;less than signs&quot;.  Example, 
SPACE   1/10  0.00 &gt;= r &gt; 0.10
(no value of r can be both less than 0 and greater than 0.1)


Page 234, second last paragraph ends with:
So this token is encoded as: 14, 4, &#039; .&#039;    - which should be
So this token is encoded as: 14, 4, &#039; &#039;.
(I&#039;m sure some English-expert editor (or program) incorrectly put the period inside the quote for you.  If you want to satisfy the editor, perhaps put it inside of double quotes, like you did on page 235:
So this token is encoded as: &quot;14, 4, &#039; &#039;.&quot;

I found a few more minor things... not sure if you want them.  Very helpful book, though!  Thanks!</description>
		<content:encoded><![CDATA[<p>Mark-</p>
<p>Love the book.  It&#8217;s been on my bookshelf since &#8217;92.</p>
<p>I was referring to it this morning, and thought I&#8217;d pass along some errata, in case you plan to come out with a revised edition sometime soon.</p>
<p>These are pertaining to the first edition.</p>
<p>Page 125, in your table, all 18 of your &#8220;greater than&#8221; signs should be &#8220;less than signs&#8221;.  Example,<br />
SPACE   1/10  0.00 &gt;= r &gt; 0.10<br />
(no value of r can be both less than 0 and greater than 0.1)</p>
<p>Page 234, second last paragraph ends with:<br />
So this token is encoded as: 14, 4, &#8216; .&#8217;    &#8211; which should be<br />
So this token is encoded as: 14, 4, &#8216; &#8216;.<br />
(I&#8217;m sure some English-expert editor (or program) incorrectly put the period inside the quote for you.  If you want to satisfy the editor, perhaps put it inside of double quotes, like you did on page 235:<br />
So this token is encoded as: &#8220;14, 4, &#8216; &#8216;.&#8221;</p>
<p>I found a few more minor things&#8230; not sure if you want them.  Very helpful book, though!  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Myself</title>
		<link>http://marknelson.us/about/tdcb/comment-page-1/#comment-212224</link>
		<dc:creator>Myself</dc:creator>
		<pubDate>Tue, 16 Sep 2008 06:13:34 +0000</pubDate>
		<guid isPermaLink="false">http://marknelson.us/tdcb/#comment-212224</guid>
		<description>I just wanna see how iG:Syntax Hiliter works:

[c]
int main()
{
printf( &quot;Hello, world!\n&quot; );
return 1;
}
[/c]</description>
		<content:encoded><![CDATA[<p>I just wanna see how iG:Syntax Hiliter works:</p>
<div class="igBar"><span id="lc-1"><a href="#" onclick="javascript:showPlainTxt('c-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">C:</span>
<div id="c-1">
<div class="c">
<ol>
<li class="li1">
<div class="de1"><span class="kw4">int</span> main<span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</li>
<li class="li2">
<div class="de2"><span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1"><a href="http://www.opengroup.org/onlinepubs/009695399/functions/printf.html"><span class="kw3">printf</span></a><span class="br0">&#40;</span> <span class="st0">"Hello, world!<span class="es0">\n</span>"</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li2">
<div class="de2"><span class="kw1">return</span> <span class="nu0">1</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
</channel>
</rss>

