forum-msg-id-124959-edit

Original date:2014-08-29 22:36:42 Edited by: petelomax Subject: Re: Compressed Linetables

PeteE said...

I didn't think using negative numbers for line number offsets would work very well with arithmetic coding, so I was thinking two lists of positive numbers would be better. I've always wanted to implement arithmetic coding, so I'll have a stab at it when I get home from work.

As long as you are aware that the above table is

   {skip,code, 
    skip,code,code, 
    skip,code,code,code, 
    skip,code, 
    skip,code,code,code, 
    skip,... 
There's no pattern, other than someone's coding/spacing/commenting style. There may not be any skips, but if there are present, they are always separated by one or more code offsets(/sizes). If you split it into two lists it might be difficult if not impossible to recombine them correctly.

Pete

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu