Perl: the Markov chain saw | |
PerlMonks |
Re^2: Run length encode a bit vectorby Anonymous Monk |
on Jan 05, 2012 at 12:24 UTC ( [id://946381]=note: print w/replies, xml ) | Need Help?? |
-- I think you have probably mis-counted the number of zeros in the second term because there is actually a run of eight zeros there.
Yes. I miscounted. -- As well as that, you seem to be parsing your data with the low-order bit first in each byte even though you have packed in network order. Actually irrelevant as it is just sample data. The actual vector to be compressed is built with vec(), so 'b' is the right template.
In Section
Seekers of Perl Wisdom
|
|