《计算模型与算法技术教学课件》9-Greedy Technique.pptVIP

  • 7
  • 0
  • 约7.9千字
  • 约 36页
  • 2016-09-20 发布于浙江
  • 举报

《计算模型与算法技术教学课件》9-Greedy Technique.ppt

Coding Problem Coding: assignment of bit strings to alphabet characters Codewords: bit strings assigned for characters of alphabet Two types of codes: fixed-length encoding (e.g., ASCII) variable-length encoding (e,g., Morse code) Prefix-free codes: no codeword is a prefix of another codeword Problem: If frequencies of the character occurrences are known, what is the best binary prefix-free code? Huffman codes Any binary tree with edges labeled with 0’s and 1’s yields a prefix-free code of characters assigned to its leaves Optimal binary tree minimizing the expected (weighted average) length

文档评论(0)

1亿VIP精品文档

相关文档