정보 및 부호화 개론
도입됨
7:13
통신 시스템
Communication is engineering under constraints: spectrum you must share, noise you cannot remove, and power you cannot waste. This course runs from analogue…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| English | 의미 |
|---|---|
| entropy/ˈentrəpi/ | 엔트로피 |
| Hamming code/ˈhæmɪŋ kəʊd/ | 해밍 코드 |
| syndrome/ˈsɪndrəʊm/ | 증상식 |
| channel capacity/ˈtʃænl kəˈpæsɪti/ | 채널 용량 |
The edges of the map
- How few bits can a source be squeezed into? How many bits can a channel carry?
- Information theory answers both, and codes move real systems towards those limits.
Entropy
- Entropy 熵 $H = \sum p\log_{2}(1/p)$ measures a source's average surprise, in bits per symbol.
- It is the fewest bits per symbol any code can average. The gap between $H$ and a fixed-length code is redundancy.
소스에 네 가지 등확률 심볼이 있습니다. 이 소스의 엔트로피는 비트 단위로 얼마입니까?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
$4 \times \tfrac{1}{4}\log_{2}4 = 2$ 비트입니다. 등확률은 가장 큰 놀라움을 제공합니다.
소스의 확률이 1/2, 1/4, 1/4일 때, 엔트로피를 비트 단위로 구하십시오. 소수점 1 자리까지 나타내십시오.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
$0.5 \times 1 + 0.25 \times 2 + 0.25 \times 2 = 1.5$ 비트입니다.
Huffman coding
- Huffman's method merges the two least likely symbols again and again, building a tree. Likely symbols get short codewords.
- When every probability is a power of 1/2, the average length equals $H$ exactly; otherwise it is within one bit.

확률 1/2, 1/4, 1/4에 대해 허프먼 부호화는 각 심볼에 어떤 부호어 길이를 할당합니까?
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
두 1/4을 합쳐 1/2로 만들고, 이를 다른 1/2과 다시 합칩니다. 평균 길이는 1.5 비트이며 이는 H와 같습니다.
Worked example: the quartile source
- Probabilities 1/2, 1/4, 1/8, 1/8: $H = 0.5 + 0.5 + 0.375 + 0.375 = 1.75$ bits, against 2 bits for fixed length.
- Huffman gives lengths 1, 2, 3, 3, which average exactly 1.75 bits:
| Symbol | $p$ | Codeword | Length |
|---|---|---|---|
| A | 1/2 | 0 | 1 |
| B | 1/4 | 10 | 2 |
| C | 1/8 | 110 | 3 |
| D | 1/8 | 111 | 3 |
- No codeword starts another (a prefix code), so a stream such as 0110111 splits only one way: A, C, D.
허프먼 코딩은 항상 엔트로피를 정확히 달성합니다.
난이도 1/5 · 100코인 + 오늘 첫 완료 시 작은 보너스 추가
모든 확률이 1/2의 거듭제곱일 때에만 가능합니다. 그렇지 않으면 평균 길이는 H로부터 최대 1비트 이내의 오차를 가집니다.
Channel codes
- A channel code adds redundancy on purpose, so the receiver can find and fix errors.
- The Hamming code 汉明码 (7,4) adds 3 parity bits to 4 data bits. It corrects any single error, at rate 4/7.
Worked example: Hamming (7,4)
- Data 1011 encodes to 0110011, with parity bits in positions 1, 2 and 4. Each parity bit makes its group even: $p_1$ checks positions 1, 3, 5, 7; $p_2$ checks 2, 3, 6, 7; $p_4$ checks 4, 5, 6, 7.
position 1 2 3 4 5 6 7
role p1 p2 d1 p4 d2 d3 d4
bit 0 1 1 0 0 1 1
- Flip bit 5: the checks of $p_4$ and $p_1$ fail and $p_2$ passes. Read as $p_4p_2p_1$, that is 101, which is 5 in binary. The syndrome 伴随式 names the wrong bit.
해밍 (7,4) 수신기가 시ndrome 110을 계산했습니다. 어느 비트 위치가 잘못된 것입니까?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
110을 이진수로 나타내면 6입니다. 비트 6을 반전시키면 문장을 수정할 수 있습니다.
Channel capacity
- Channel capacity 信道容量 $C = B\log_{2}(1 + S/N)$ is the most any code can carry without errors.
- At fixed S/N, capacity grows in proportion to bandwidth; at fixed bandwidth and noise power, it grows logarithmically with signal power.
대역폭이 1 MHz이고 SNR이 15(비율)인 채널의 용량은 Mbit/s 단위로 얼마입니까?
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
$C = 10^{6} \times \log_{2}16 = 4$ Mbit/s입니다.
Worked example: the modem ceiling
- A 3 kHz phone line at 30 dB SNR: $C = 3000 \times \log_{2}(1001) = 29.9$ kbit/s, the dial-up limit.
- 10 dB more SNR adds only about 3.3 bit/s per hertz.
Three common slips
- The wrong log. Bits need $\log_{2}$.
- "Huffman always reaches $H$." Only when every probability is a power of 1/2.
- Capacity as a guarantee. Codes approach it; none beat it.
각 개념에 대응하는 한계값을 매칭하십시오.
난이도 2/5 · 140코인 + 오늘 첫 완료 시 작은 보너스 추가
소스 코딩은 중복성을 제거하고, 채널 코딩은 의도적으로 이를 다시 추가하며, 용량이 두 가지 모두를 제한합니다.
Recap
- $H = \sum p\log_{2}(1/p)$ is the floor for source coding.
- Hamming (7,4) fixes one error per block at rate 4/7.
- $C = B\log_{2}(1 + S/N)$ is the ceiling for the channel.
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.