(SEM VI) THEORY EXAMINATION 2022-23 DATA COMPRESSION

B.Tech Data Structure 0 downloads
₹29.00

DATA COMPRESSION – KCS-064

Section-wise Important Questions & Ready Answers


SECTION A

(Attempt all questions in brief – 2 marks each)


(a) Measures of Performance of Data Compression Algorithms

The performance of a data compression algorithm is measured using compression ratio, bit rate, redundancy, computational complexity, memory requirement, and distortion (for lossy compression). These measures indicate efficiency, speed, and quality of compression.


(b) First-Order Entropy Calculation

Given alphabet A={a1,a2,a3,a4}A = \{a_1,a_2,a_3,a_4\}A={a1​,a2​,a3​,a4​} with equal probabilities:

H=−∑p(ai)log⁡2p(ai)=−4(14log⁡214)=2 bits/symbolH = -\sum p(a_i)\log_2 p(a_i) = -4\left(\frac{1}{4}\log_2\frac{1}{4}\right) = 2\ \text{bits/symbol}H=−∑p(ai​)log2​p(ai​)=−4(41​log2​41​)=2 bits/symbol 


(c) Applications of Huffman Coding

Huffman coding is widely used in text compression, image compression (JPEG), audio compression (MP3), fax transmission, and file compression utilities due to its optimal lossless coding property.


(d) Golomb Code for n=9n=9n=9 and n=13n=13n=13, m=5m=5m=5

Golomb coding divides the number into quotient and remainder.
For n=9n=9n=9: quotient q=1q=1q=1, remainder r=4r=4r=4.
For n=13n=13n=13: quotient q=2q=2q=2, remainder r=3r=3r=3.
Unary coding is used for quotient and truncated binary for remainder.


(e) Applications of Dictionary-Based Compression

Dictionary-based techniques such as LZ77, LZ78, and LZW are used in ZIP files, GIF images, PDF compression, modem communication, and data storage systems.


(f) Binary Code vs Huffman Code

Binary code assigns fixed-length codewords, whereas Huffman code assigns variable-length codewords based on symbol probabilities. Huffman coding achieves better compression efficiency.


(g) Distortion Criteria

Distortion criteria include mean squared error, absolute error, signal-to-noise ratio, peak signal-to-noise ratio, and perceptual distortion measures.


(h) Mismatch Effect

Mismatch effect occurs when the assumed probability model differs from the actual source distribution, resulting in increased redundancy and reduced compression efficiency.


(i) Code Vectors

Code vectors are representative vectors stored in a codebook in vector quantization. Each input vector is mapped to the closest code vector during encoding.


(j) Concept of Pruning

Pruning removes unnecessary branches or codewords from coding structures to reduce complexity and improve efficiency without significantly affecting performance.


SECTION B

(Attempt any three – 10 marks each)


2(a) Uniquely Decodable Codes vs Prefix Codes

Uniquely decodable codes allow unambiguous decoding of symbol sequences, while prefix codes ensure no codeword is a prefix of another, making instant decoding possible. Prefix codes are always uniquely decodable, but the reverse is not necessarily true. The code set {0,10,110,111} is uniquely decodable, whereas {1,10,110,111} is not.


2(b) Huffman Coding with Given Probabilities

Entropy is calculated using probability values. Huffman tree is constructed by repeatedly combining least probable symbols. The average code length is computed and redundancy is obtained by subtracting entropy from average length. Minimum variance Huffman coding minimizes variance in codeword lengths.


2(c) Prediction with Partial Match (PPM) & Facsimile Encoding

PPM predicts symbols based on previous context and adapts probabilities dynamically. Facsimile encoding uses run-length coding to compress long runs of identical pixels, making it suitable for black-and-white documents.


2(d) Adaptive Quantization

Adaptive quantization dynamically adjusts step size or quantizer parameters based on signal characteristics. Approaches include forward adaptive, backward adaptive, and hybrid adaptive quantization.


2(e) Vector Quantization (VQ)

Vector quantization maps blocks of samples into code vectors instead of individual samples. Compared to scalar quantization, VQ offers better compression efficiency and exploits inter-sample correlation.


SECTION C


3(a) Two-State Markov Model for Binary Images

A two-state Markov model represents transitions between binary pixel states (0 and 1). The ignorance model assumes equal probabilities. Probability models help estimate symbol likelihoods for efficient compression.


3(b) Modeling, Coding & Information Theory

Modeling captures source statistics, while coding converts them into compressed form. Information theory provides concepts such as entropy, redundancy, and mutual information, which define theoretical limits of lossless compression.

File Size
51.6 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

🇩🇪 German Language Classes Near Sector 116 Noida – Learn German with Professional Training Sector 116, Noida
Spoken English Classes Near By Paschim Vihar Improve Fluency, Build Confidence & Unlock Better Career Opportunities in 2026 Paschim Vihar, Delhi
Spoken English Classes Near By Saket Improve Fluency, Confidence & Career Opportunities with Expert Training in 2026 Saket, Delhi
Diet & Nutrition Consultation Near Sector 127 Noida – A Complete Guide to Healthy Living Noida
Personal Fitness Training Near Sushant Lok Phase 3 – Transform Your Health with Expert Guidance Sushant Lok 3, Gurugram
Spoken English Classes Near By Punjabi Bagh Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Punjabi Bagh, Delhi
Digital Marketing Classes Near By Kirti Nagar – Build a High-Growth Career in the Digital World Kirti Nagar, Delhi
Web Development Course Near Sector 59 Gurugram – Learn Coding & Build a Successful Tech Career Sector 59, Gurugram
Dance Classes Near By Najafgarh (Bollywood, Hip-Hop & Classical) Najafgarh, Delhi
Physiotherapy Guidance (Certified Professionals Only) Near Sector 120 Noida – Expert Care for Pain Relief and Recovery Sector 120, Noida
Data Analytics Classes Near Kirti Nagar – Build a Future-Ready Career in Data Kirti Nagar, Delhi
Spoken English Classes Near Rajouri Garden Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Rajouri Garden, Delhi
Accounts & Commerce Classes Near By Dwarka Mor Professional Coaching Dwarka Mor, Delhi
Keyboard / Piano Classes Near DLF Phase 3 Gurugram – Professional Music Training for Kids, Beginners & Advanced Learners DLF Phase 3, Gurugram
Stenography Classes Near Sector 93 Gurugram – Build Speed, Accuracy & Secure Government Career Opportunities Sector 93, Gurugram
Violin Classes Near by Gurugram – Learn, Perform & Master the Art of Strings Gurugram
Competitive Exam Coaching Near Sector 95 Gurugram – Structured Preparation for Government & Entrance Exams Sector 95, Gurugram
Guitar Classes Near DLF Phase 1 Gurugram – Professional Music Training for Kids, Beginners & Adults DLF Phase I, Gurugram
Violin Classes Near DLF Phase 5 – Learn Classical & Modern Violin from Expert Teachers DLF Phase V, Gurugram
Zumba Classes Near Sector 133 Greater Noida – Fun, Fitness and Energy in Every Step Noida
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020