词典编码:LZ77算法(C/C++)

一、基本思想 用指向早期曾经出现过的字符串的指针来表示当前被编码的字符串,如: 二、LZ77算法 算法伪码: 示意图: 举例: 三、C/C++实现 #include <iostream> #include <vector> #include <string> using namespace std; struct code { int off; int len; char nextChar
相关文章
相关标签/搜索