【发布时间】:2020-01-23 06:21:44
【问题描述】:
例如,将00 01 02 03 06 07 08 09 编码为00 01 01 01 03 01 01 01 以提高对数据应用压缩算法的效率(例如行程编码)?
这样的编码可以使用:
temp = 0
for byte in encoded:
temp += byte
decoded.append(temp)
【问题讨论】:
-
我见过这个叫做“预测过滤”,一种“变换”——mattmahoney.net/dc/dce.html#Section_561
标签: algorithm encoding binary compression