H(X,Y) = H(X) + H(Y X)

Similar documents
Entropy, Coding and Data Compression

General Model :Algorithms in the Real World. Applications. Block Codes

CHAPTER 5 A NEAR-LOSSLESS RUN-LENGTH CODER

Compression Programs. Compression Outline. Multimedia. Lossless vs. Lossy. Encoding/Decoding. Analysis of Algorithms

Intermediate Information Structures

x y z HD(x, y) + HD(y, z) HD(x, z)

A study on the efficient compression algorithm of the voice/data integrated multiplexer

Lossless image compression Using Hashing (using collision resolution) Amritpal Singh 1 and Rachna rajpoot 2

Unit 5: Estimating with Confidence

A New Space-Repetition Code Based on One Bit Feedback Compared to Alamouti Space-Time Code

Permutation Enumeration

Encode Decode Sample Quantize [ ] [ ]

Performance Limits and Practical Decoding of Interleaved Reed-Solomon Polar Concatenated Codes

IV054 IV054 IV054 IV054 LITERATURE INTRODUCTION HISTORY OF CRYPTOGRAPHY

COMPRESSION OF TRANSMULTIPLEXED ACOUSTIC SIGNALS

Combinatorics. Chapter Permutations. Reading questions. Counting Problems. Counting Technique: The Product Rule

3. Error Correcting Codes

A SELECTIVE POINTER FORWARDING STRATEGY FOR LOCATION TRACKING IN PERSONAL COMMUNICATION SYSTEMS

Wavelet Transform. CSEP 590 Data Compression Autumn Wavelet Transformed Barbara (Enhanced) Wavelet Transformed Barbara (Actual)

arxiv: v2 [math.co] 15 Oct 2018

Lecture 13: DUART serial I/O, part I

Roberto s Notes on Infinite Series Chapter 1: Series Section 2. Infinite series

Efficient Feedback-Based Scheduling Policies for Chunked Network Codes over Networks with Loss and Delay

Density Slicing Reference Manual

On Parity based Divide and Conquer Recursive Functions

x 1 + x x n n = x 1 x 2 + x x n n = x 2 x 3 + x x n n = x 3 x 5 + x x n = x n

Information-Theoretic Analysis of an Energy Harvesting Communication System

Comm. 502: Communication Theory. Lecture 6. - Introduction to Source Coding

}, how many different strings of length n 1 exist? }, how many different strings of length n 2 exist that contain at least one a 1

Estimation of non Distortion Audio Signal Compression

8. Combinatorial Structures

CHAPTER 8 JOINT PAPR REDUCTION AND ICI CANCELLATION IN OFDM SYSTEMS

7. Counting Measure. Definitions and Basic Properties

Optimal Allocation of Packet-Level and Byte-Level FEC in Video Multicasting over Wired and Wireless Networks

AMC AMS AMR ACS ACR ASR MSR MCR MCS CRS

Objectives. Some Basic Terms. Analog and Digital Signals. Analog-to-digital conversion. Parameters of ADC process: Related terms

Cross-Layer Performance of a Distributed Real-Time MAC Protocol Supporting Variable Bit Rate Multiclass Services in WPANs

lecture notes September 2, Sequential Choice

Decode-forward and Compute-forward Coding Schemes for the Two-Way Relay Channel

Logarithms APPENDIX IV. 265 Appendix

ON THE FUNDAMENTAL RELATIONSHIP BETWEEN THE ACHIEVABLE CAPACITY AND DELAY IN MOBILE WIRELESS NETWORKS

13 Legislative Bargaining

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 12

CDS 270-2: Lecture 6-3 Optimum Receiver Design for Estimation over Wireless Links

Application of Improved Genetic Algorithm to Two-side Assembly Line Balancing

PHY-MAC dialogue with Multi-Packet Reception

Lecture6: Lossless Compression Techniques. Conditional Human Codes

Broadcast Throughput Capacity of Wireless Ad Hoc Networks with Multipacket Reception

APPLICATION NOTE UNDERSTANDING EFFECTIVE BITS

Summary of Random Variable Concepts April 19, 2000

Introduction to Source Coding

Grade 6 Math Review Unit 3(Chapter 1) Answer Key

ECE 333: Introduction to Communication Networks Fall Lecture 4: Physical layer II

Single Bit DACs in a Nutshell. Part I DAC Basics

SELEX Elsag. 5/18/2012 R. Pucci SDR 12 WinnComm 1

The Fundamental Capacity-Delay Tradeoff in Large Mobile Ad Hoc Networks

ASample of an XML stream is:

CS3203 #5. 6/9/04 Janak J Parekh

Cooperative Diversity Based on Code Superposition

Spread Spectrum Signal for Digital Communications

BOUNDS FOR OUT DEGREE EQUITABLE DOMINATION NUMBERS IN GRAPHS

Analysis of SDR GNSS Using MATLAB

4. INTERSYMBOL INTERFERENCE

Broadcast Capacity in Multihop Wireless Networks

Chapter 3 Digital Logic Structures

信號與系統 Signals and Systems

Introduction to Wireless Communication Systems ECE 476/ECE 501C/CS 513 Winter 2003

Converge-Cast with MIMO

Ch 9 Sequences, Series, and Probability

信號與系統 Signals and Systems

A Brief Introduction to Information Theory and Lossless Coding

Beam Pattern Scanning (BPS) versus Space-Time Block Coding (STBC) and Space-Time Trellis Coding (STTC)

Room Design [ HOW TO SET UP YOUR EVENT SPACE ]

AC : USING ELLIPTIC INTEGRALS AND FUNCTIONS TO STUDY LARGE-AMPLITUDE OSCILLATIONS OF A PENDULUM

Fitting Signals into Given Spectrum Modulation Methods

Performance Analysis of Channel Switching with Various Bandwidths in Cognitive Radio

Extra Practice 1. Name Date. Lesson 1.1: Patterns in Division

Measurement-Based Opportunistic Feedback and Scheduling for Wireless Systems

Math 7 Flipped Mastery Self Tester Worksheet Name: Class:. Chapter 1 (Unit 1) Patterns and Relationships - Accommodated 1.1 Patterns In Division /36

Capacity of Large-scale CSMA Wireless Networks

Application of Image Fusion to Wireless Image Transmission

The Institute of Chartered Accountants of Sri Lanka

Capacity of Large-scale CSMA Wireless Networks

On the Delay Performance of In-network Aggregation in Lossy Wireless Sensor Networks

Message Scheduling for the FlexRay Protocol: The Dynamic Segment

MDM 4U MATH OF DATA MANAGEMENT FINAL EXAMINATION

Control Charts MEC-13. Causes of Variation 12/3/2016

PERMUTATIONS AND COMBINATIONS

CS 201: Adversary arguments. This handout presents two lower bounds for selection problems using adversary arguments ëknu73,

On the Number of Permutations on n Objects with. greatest cycle length

Fingerprint Classification Based on Directional Image Constructed Using Wavelet Transform Domains

Subband Coding of Speech Signals Using Decimation and Interpolation

Lecture 4: Frequency Reuse Concepts

Design of FPGA- Based SPWM Single Phase Full-Bridge Inverter

Math 140 Introductory Statistics

Direct Link Networks - Encoding

Distributed Resource Management in Multi-hop Cognitive Radio Networks for Delay Sensitive Transmission

International Power, Electronics and Materials Engineering Conference (IPEMEC 2015)

A Radio Resource Allocation Algorithm for QoS Provision in PMP-based Systems

Shuffling Cards. D.J.W. Telkamp. Utrecht University Mathematics Bachelor s Thesis. Supervised by Dr. K. Dajani

Transcription:

Today s Topics Iformatio Theory Mohamed Hamada oftware gieerig ab The Uiversity of Aizu mail: hamada@u-aizu.ac.jp UR: http://www.u-aizu.ac.jp/~hamada tropy review tropy ad Data Compressio Uiquely decodable codes Prefix Code Average Code egth hao s First Theorem Kraft-McMilla Iequality Code fficiecy Code xtesio tropy H() tropy is the average iformatio cotet of a source =Is H K- H = plog = p Coditioal tropy H(Y X) Is the amout of iformatio cotaied i Y such that X is give H(Y X) = = Σ j P(X=v j ) H(Y X = v j ) 3 Joit tropy Is the amout of iformatio cotaied i both evets X ad Y Chai Rule Chai Rule Relatioship betwee coditioal ad joit etropy H(X, Y) = -Σ p(x,y) log p(x,y) X,Y H(X,Y) = H(X) + H(Y X) 5 6

tropy, Codig ad Data Compressio Data vs. Iformatio yes, ot, yes, yes, ot ot I ACII, each item is 3 8 = bits of data But if the oly possible aswers are yes ad ot, there is oly oe bit of iformatio per item 7 8 Compressio = queezig out the Air uppose you wat to ship pillows i boxes ad are charged by the size of the box To use as few boxes as possible, squeeze out all the air, pac ito boxes, fluff them up at the other ed ossless data compressio = pillows are perfectly restored ossy data compressio = some damage to the pillows is OK (MP3 is a lossy compressio stadard for music) oss may be OK if it is below huma perceptual threshold tropy is a measure of limit of lossless compressio A B. C D. F G H I J K. M.- - -.-. -.....-. --.....--- -.-.-.. -- O P Fixed legth code Q : Morse Code R T.9 U V. X Y Z -. ---.--. --.-.-. -..- -.-- -..- -.-- --.. 9 : Telegraphy glish letters -> Morse Code eder: from Hoaido ar.--.-.-..--.-.-. Codig Messages with Fixed egth Codes : symbols, A, B, C, D A=, B=, C=, D= I geeral, with symbols, codes eed to be of legth lg, rouded up For glish text, 6 letters + space = 7 symbols, legth = 5 sice < 7 < 5 (replace all puctuatio mars by space).--.-.-. ar Receiver: i Toyo

Uiquely decodable codes If ay ecoded strig has oly oe possible source strig producig it the we have uique decodablity of uiquely decodable code is the prefix code Prefix Codig (Istataeous code) A prefix code is defied as a code i which o codeword is the prefix of some other code word. A prefix code is uiquely decodable. Prefix Code Code A Code B Code C s s s s 3 3 Uiquely Decodable Codes Decodig of a Prefix Code Decisio Tree for Code B Prefix Codes Oly oe way to decode left to right whe message received Code B s s s s 3 Iitial tate s s s s 3 Probability Code Received message:.7... : Decode Aswer : s s 3 s s s 5 6 Prefix Codes Average Code egth Code A B C D I COD A PRFIX COD? O HY? Code of D is a prefix to code of C 7 Iformatio coder has K symbols ach symbol has probability p ach symbol is represeted by a codeword of legth bits Average codeword legth K pl 8 3

A B. C D. F G H I J K. M.- - -.-. -.....-. --.....--- -.-.-.. -- O P Q : Morse Code R T.9 U V. X Y Z -. ---.--. --.-.-. -..- -.-- -..- -.-- --.. Average codeword legth K p l = * +. * +. + * + * 9 hao s First Theorem: The Codig Theorem H The outputs of a iformatio source caot be represeted by a source code whose average legth is less tha the source etropy Average Code egth tropy s Average bits per symbol: =.7 +. 3+. 3+. 3 =.6 bits/symbol (dow from ) Aother prefix code that is better =.7 +. +. 3+. 3 =.5.7....7... Robot -way radom wal prob( x ), prob( x ) prob( x ) prob( x ) 8 H ( X ) ( log log log log ). 75bps 8 8 8 8 Robot symbo tropy s p.5.5.5.5 Prefix Codes fixed-legth codeword variable-legth codeword tropy, Compressibility, Redudacy ower etropy <=> More redudat <=> More compressible Higher etropy <=> ess redudat <=> ess compressible symbol stream : fixed legth: variable legth: 3bits 8bits bits savigs achieved by VC (redudacy elimiated) 3

tropy ad Compressio First-order etropy is theoretical miimum o code legth whe oly frequecies are tae ito accout =.7 +. +. 3+. 3 =.5 First-order tropy =.353.7... First-order tropy of glish is about bits/character based o typical glish texts Bits You are watchig a set of idepedet radom samples of X You see that X has four possible values P(X=A) = / P(X=B) = / P(X=C) = / P(X=D) = / o you might see output: BAACBADCDADDDA You trasmit data over a biary serial li. You ca ecode each readig with two bits (e.g. A =, B =, C =, D = ) bits o average per symbol 5 6 Fewer Bits omeoe tells you that the probabilities are ot equal P(X=A) = / P(X=B) = / P(X=C) = /8 P(X=D) = /8 Is it possible to ivet a codig for your trasmissio that oly uses.75 bits o average per symbol. How? 7 It s possible Fewer Bits P(X=A) = / P(X=B) = / P(X=C) = /8 P(X=D) = /8 to ivet a codig for your trasmissio that oly uses.75 bits o average per symbol. A B C D (This is just oe of several ways) 8 Fewer Bits uppose there are three equally liely values P(X=A) = /3 P(X=B) = /3 P(X=C) = /3 Here s a aïve codig, costig bits per symbol A B C Ca you thi of a codig that would eed oly.6 bits per symbol o average? I theory, it ca i fact be doe with.5896 bits per symbol. 9 Kraft-McMilla Iequality K l If codeword legths of a code satisfy the Kraft McMilla s iequality, the a prefix code with these codeword legths ca be costructed. For code D - + - + -3 + -= 9/8 This meas that Code D I OT A PRFIX COD Codewor d C Code D egth s s s 3 s 3 3 5

Use of Kraft-McMilla Iequality e may use it if the umber of symbols are large such that we caot simply by ispectio judge whether a give code is a prefix code or ot HAT Kraft-McMilla Iequality Ca Do: It ca determie that a give code I OT A PRFIX COD It ca idetify that a prefix code could be costructed from a set of codeword legths HAT Kraft-McMilla Iequality Caot Do: It caot guaratee that a give code is ideed a prefix code 3 ymbo l Codewor d Code egth s s 3 s 3 s 3 For code - + - + -3 + -3= ad hece satisfy Kraft-Mcmilla iequality I COD A PRFIX COD? O HY? s 3 is a prefix to s 3 Code fficiecy η A efficiet code meas η H 33 Probability p s Code I egth Code II egth s / s / s /8 3 s 3 /8 3 tropy H() =/log ()+/log ()+ /8log (8)+/log (8) = ¾ bits/symbol Code I Code II 7 3 3 8 8 8 8 7 7 875. 7 3 For a Prefix Code hao s First Theorem H p if p for some H H l hat is the fficiecy η? η= l if η< However, we may icrease efficiecy by extedig the source 35 Icreasig fficiecy by xtesio By extedig the source we may potetially icrease efficiecy The drawbac is Icreased decodig complexity H H H H H H H whe 36 6

xtesio of a Discrete Memoryless Treats Blocs of successive symbols Iformatio s,s,...,s K Pr s p,,,...,k K- p xteded Iformatio,,..., K Pr q,i,,...,k i i K - i p i 37 ={s,s,s }, p =/, p =/, p =/ H()=(/)log ()+ (/)log ()+ (/)log () H()=3/ bits s of σ σ σ σ 3 σ σ 5 σ 6 σ 7 σ 8 equece of s from ecod-order xteded s s s s s s s s s s s s s s s s s s P{σ i }, i=,,,8 /6 /6 /8 /6 /6 /8 /8 /8 / By Computig: H( )=3 bits 38 ummery codig fficiet represetatio of iformatio sources Codig Requiremets Uiquely Decodable Codes Prefix Codes o codeword is a prefix to some other code word Code fficiecy Kraft s Iequality K l Codig Theorem H H H 39 d 7