💯
University Notes
  • Introduction
  • High Level Math
    • Function, limitation, and continuity
      • What is function?
      • Two kinds of infinity
      • The limitation of a function
      • A model for getting limitation
    • Derivative and differential
      • Formulas of derivative
      • Use derivative formula
      • Goes deeper
      • Use derivative
        • Function analyzing in theory
          • First derivative
          • Second derivative
          • Domain and Extreme Value
          • Overall change
        • Derivative use in reality
    • Integration
      • Indefinite integral
        • Basic formulas
        • Use formula
        • Goes deeper
        • Integration by parts
      • Definite integral
        • Properties of definite integral
        • Second fundamental theorem of calculus
        • Multi-method for solving definite integral
    • Multivariable calculus
      • Limitation
      • Partial derivatives
      • Differential
      • Multiple integral
    • Series
    • Linear algebra
    • GaoKao
      • 1
      • The road for starting
      • Polar Coordinates
      • Tangent Line
  • Electrical Engineering
    • The Terminologys
    • DC
      • The circuit rule
      • KCL and KVL
      • Superposition
    • AC
      • Intuition
      • Resistor
      • Inductor
      • Capacitor
      • AC circuit
      • 三相电
        • 星形联结
        • 三角形联结
        • 实际电路
    • Voltage and Current Rule in Circuit
    • Response
      • Foundations
      • 零输入响应
      • 零状态响应
      • 一阶电路的全响应
  • Analog Electronics
    • Technical terms 1
    • DC stable source circuit 的分析与应用
      • 二极管的特性与应用
        • 半导体
        • PN junction
        • Diode
        • 测试二极管
      • 整流滤波电路的分析与应用
        • Rectifier circuit
      • 直流稳压电路的分析
        • Zener diode
        • Shunt voltage regulators
    • Thyristor
    • Technical terms 2
    • Amplifying circuit
      • Bipolar Junction Transistor
      • Common Emitter Configuration
      • Biasing
      • Analysis
      • Mess
      • Negative-feedback amplifier
      • Integrated Operational Amplifier
    • Algorithms
      • What's the ouput of a voltage rectifier circuit
      • PNP or NPN
      • Judging the state of a BJT
      • What's common in BJT
      • Does a amplifying circuit normal
      • What's the feedback type
      • What kind of distortion you are encounter
  • Digital Electronic Technology
    • Logic Gate
    • Logic expressions
    • Karnaugh map
    • Number system
    • Multiplexer
    • Flip-flop
  • Principles of Communications
    • Overviews
    • PCM
    • HDB3
    • Modulations
    • Cyclic code
  • Data Communications and Networking
    • Something about IPv4
  • Micro Control System 51 Series
    • The Delay function
    • The Interrupt function
  • Maintenance of Railway Optical Cable Lines
    • Questions
    • Pictures
  • Mobile Communications
    • Concepts
    • Coding and Modulation
    • Key Technologies
    • Mobile communication network structure
    • Radio wave Propagation and Interference
    • GSM
    • CDMA
    • GPRS
    • 3G
    • 4G
    • Base Station Maintenance
  • Multimedia Communication
    • Concept of Multimedia
    • Compression
    • Lossless Compression
    • Audio
    • Lossy Audio Coding
    • Graph Compression
    • All for the exam
  • Power system for Communication Devices
    • Overview
    • AC power Distribution Panel
    • UPS
    • HF Switched-mode Power Supply
    • Battery
    • Earthing or Use Lightning Arrester
    • Power Supply Monitoring System
    • All for the exam
  • Optical fiber Communication system
    • What is Optical fiber Communication system
      • Prepare
      • Something About Optical fiber
      • Passive Optical Devices
      • Active Optical Devices
      • Optical transmitter Test
      • Optical receiver Test
      • Compose an Optical Communication System
    • SDH (Synchronous Digital Hierarchy)
      • Frame Structure of SDH
      • SDH Equipments
      • Clock System
      • ZXONM E300 Practice
      • SDH protection
    • WDM (Wavelength-Division Multiplexing)
    • OTN (Optical Transport Network)
      • OverHead of OTN
      • OTN Alarms & Errors
      • Do it again, what's happened?
  • Communication Tech English
    • Fundamentals of Electricity
    • Digital Communications
    • Optical Communications
  • High-speed railway Communication Technology
    • Overview
    • Base Knowledge
    • FH98
    • MDS3400
    • Everything is for the exam
  • GSM for Railway
    • Overview
    • Wired Parts
    • Digital dispatch Communication System
    • Basic Knowledge of GSM-R
    • Key technologies for GSM-R
    • Structure of GSM-R
    • GSM-R Network Mode
    • Wireless Channels for GSM-R
    • Mobility Management
    • Connection Management
    • Security Management
    • GPRS
    • GSM-R/GPRS Wireless Access Platform
    • GSM-R Features
    • GSM-R Numbering Plan
    • ASCI
  • Network Configuration Training
    • Words I have learned
  • Broadband Access Technology
    • Using Copper Line
    • Using Optical Fiber
    • Wireless
    • All for the test
  • CIR
    • Basci Knowledge
    • Testing Equipment
    • The Structure of CIR
    • All for the exam
  • LTE
  • Script for ChaoXing
  • Transmission and access network
Powered by GitBook
On this page
  • 1. 行程编码(Run Length Encoding,RLE)
  • 2. 霍夫曼编码(Huffman Coding)
  • 3. 算术编码
  • 4. 字典编码(Dictionary Coding)
  • Questions

Was this helpful?

  1. Multimedia Communication

Lossless Compression

PreviousCompressionNextAudio

Last updated 5 years ago

Was this helpful?

1. 行程编码(Run Length Encoding,RLE)

压缩原始数据中相同、重复的部分

2. 霍夫曼编码(Huffman Coding)

出现概率大的分配短码, 出现概率小的分配长码

步骤:

  1. 按概率递减排列

  2. 把两个最小的概率值合并,作为新符号概率

  3. 重复 step1 和 step2 ,直到概率和 = 1

  4. ...

注意:

  • 允许交叉

  • 概率大的分支写1,概率小的分支写0,如果概率相等就 左1右0

  • 写对应编码时,从根出发,走最短路径

3. 算术编码

每次编码会得到一个[0,1)的小数。(无限细分概率区间)

实际是: 多重概率合并计算 (那个小数 = 连续输这一串数据的概率)

例如:

小数变二进制: 乘2取整

4. 字典编码(Dictionary Coding)

  • 方式一,用内存指针指向重复字符(方式二 dict 方法的本质)

  • 方式二,自动创建 dict,输出 index,而不是原数据

Questions

我这里第一题的答案是错的,你可以按照你自己的想法自己再做一遍

注意 1 - 0,0.5 - 0, 0.375 - 0.25 只是一个区间,它们的值还是取决于符号的概率

比如:

0.5=(1−0)×0.50.5 = (1-0) \times 0.50.5=(1−0)×0.5

0.375=(0.5−0)×(0.5+0.25)0.375 = (0.5-0) \times (0.5 + 0.25)0.375=(0.5−0)×(0.5+0.25)

0.25=(0.5−0)×(0.5)0.25 = (0.5-0) \times (0.5)0.25=(0.5−0)×(0.5)

0.359375=(0.5+0.25+0.125)×(0.375−0.25)+0.250.359375 = (0.5 + 0.25 + 0.125) \times (0.375 - 0.25) + 0.250.359375=(0.5+0.25+0.125)×(0.375−0.25)+0.25

0.34375=(0.5+0.25)×(0.375−0.25)+0.250.34375 = (0.5+0.25) \times (0.375 - 0.25) + 0.250.34375=(0.5+0.25)×(0.375−0.25)+0.25

0.357421875=0.359375−((0.359375−0.34375)×0.125)0.357421875 = 0.359375 - ((0.359375 - 0.34375) \times 0.125)0.357421875=0.359375−((0.359375−0.34375)×0.125)