摘要:
2,某模型 机 有 8 条 指 令I1 ~I8,它 们 的 使 用 频 度 分 别 为 0.3,0.3,0.2,0.1,0.05,0.02,0.02,0.01。 (1)试分别用 Huffman编码和平均码长最短的等长扩展码(限定为两种码长)对其操作码进行编码。 (2)分别计算 Huffman编码和等 阅读全文
摘要:
code #include<iostream> #include<algorithm> using namespace std; int n, m, k, tot = 0; const int N = 2e5 + 50; //languige come from scientiet,audio an 阅读全文