Data Compression (BCS064) Important Questions
AKTU B.Tech · 3rd Year · Departmental Elective III · Exam 2026-27. Worked out from 5 real papers, 2017-18 to 2024-25.
- 5AKTU papers analysed
- 22must-do topics
- 18repeated 2-mark questions
The PDF has every topic with the years it came, a unit-wise plan and the sources. Free. Share it with your class.
Most likely question in each unit
| Unit | Most likely | Backup topics |
|---|---|---|
| 1Compression techniques: lossless vs lossy, measures of performance, modeling & coding, information theory, models, uniquely decodable & prefix codes | Modeling & coding / data compression models (5/5) | Uniquely decodable vs prefix codes (5/5) · Measures of performance (5/5) · Entropy & average length proof |
| 2Huffman (minimum variance, adaptive), Golomb, Rice, Tunstall codes, arithmetic coding, binary vs Huffman, JBIG, applications | Huffman coding numerical (5/5) | Golomb & Rice codes (4/5) · Adaptive Huffman · Tunstall code · Arithmetic vs Huffman |
| 3Dictionary techniques (LZ77, LZ78, LZW, UNIX compress, GIF, V.42 bis), PPM, BWT & move-to-front, CALIC, JPEG-LS, facsimile | LZ77 / LZ78 / LZW comparison + LZW numerical (5/5, 4/5) | PPM basic algorithm (5/5) · BWT with move-to-front (4/5) · Facsimile & run-length coding |
| 4Distortion criteria, models, scalar quantization: the quantization problem, uniform, adaptive and non-uniform quantizers | Uniform quantizer for uniform & non-uniform sources (5/5) | Adaptive quantization (4/5) · Quantization problem & scalar quantization (4/5) · Distortion criteria |
| 5Vector quantization: advantages over scalar, Linde-Buzo-Gray algorithm, tree-structured and structured vector quantizers | Linde-Buzo-Gray algorithm (5/5) | Tree-structured VQ (5/5) · Pyramid & lattice VQ (5/5) · Advantages of VQ over SQ (4/5) |
Must-do topics
These came in most of the 5 papers. Prepare them first.
Measures of performance (compression ratio, rate, distortion, fidelity vs quality, SNR)
came in 5 of 5 papersUnit 1 · 2017-18 to 2024-25
How to answer: Compression ratio = original size / compressed size; rate = bits per symbol/sample; distortion = difference between original and reconstruction; fidelity vs quality; SNR in dB. One small example for ratio and rate.
Last asked (2024-25, Section C): Short notes: Compression Ratio; Signal-to-Noise Ratio (SNR) (with entropy, prefix code, RLE).
Modeling and coding; models: physical, probability, Markov (two-state), composite, ignorance
came in 5 of 5 papersUnit 1 · 2017-18 to 2024-25
How to answer: Compression = modeling (capture structure/redundancy) + coding (assign bits). Models: physical, probability (ignorance model = equal/independent probabilities), Markov (kth order, two-state Markov model for binary images with transition probabilities), composite source. Give an example sequence where modeling reduces entropy.
Last asked (2024-25, Section C): Short note: Markov Model (with standards, PPM, BWT, audio).
Uniquely decodable codes & prefix codes (test a code set)
came in 5 of 5 papersUnit 1 · 2017-18 to 2024-25
How to answer: Prefix code: no codeword is a prefix of another (instantaneous). Every prefix code is uniquely decodable, not vice versa. Test for unique decodability using dangling suffixes (Sardinas-Patterson). Practise {0,01,11,111}, {0,01,110,111}, {1,10,110,111}, {0,01,10}, {0,10,110,111}.
Last asked (2024-25, Section C): Short note: Prefix Code.
Huffman coding: algorithm, numericals (entropy, average length, redundancy), minimum variance, applications, limitations
came in 5 of 5 papersUnit 2 · 2017-18 to 2024-25
How to answer: Algorithm: sort probabilities, merge two smallest repeatedly, assign 0/1. Practise: probabilities {0.15, 0.04, 0.26, 0.05, 0.50} (entropy, code, average length, redundancy) and frequencies A:15 B:6 C:7 D:12 E:25 F:4 G:6 H:10 I:15. Minimum-variance Huffman (place merged node high). Bits saved vs fixed 8-bit code. Applications (text, lossless image, audio) and limitations (needs probabilities, integer bit lengths, not good for skewed small alphabets).
Last asked (2024-25, Section B): Characters a:5, b:9, c:12, d:13, e:16, f:45 (1 byte each): how many bits are saved with Huffman coding?
LZ77, LZ78, LZW approaches: comparison, UNIX compress, GIF, V.42 bis
came in 5 of 5 papersUnit 3 · 2017-18 to 2024-25
How to answer: Static vs adaptive dictionaries (digram coding). LZ77: sliding window, triple . LZ78: pairs, growing dictionary. LZW: only indices, dictionary seeded with alphabet. Table of advantages; applications: UNIX compress (LZW), GIF, V.42 bis modems.
Last asked (2024-25, Section C): Differentiate between LZ77 and LZ78. / Explain LZ77 and LZ78 and how they are used in UNIX file compression.
Prediction with Partial Match (PPM): basic algorithm, escape symbol, exclusion
came in 5 of 5 papersUnit 3 · 2017-18 to 2024-25
How to answer: Use the longest context first (order k), fall back with an ESCAPE symbol to shorter contexts down to order -1; exclusion principle removes symbols already ruled out; length of context; arithmetic-code the result. Worked example on a short string.
Last asked (2024-25, Section C): Short note: Prediction by Partial Matching (PPM).
Uniform quantizer (uniform & non-uniform sources, mismatch), non-uniform quantization
came in 5 of 5 papersUnit 4 · 2017-18 to 2024-25
How to answer: Midrise vs midtread uniform quantizer; step size Δ = 2Xmax/M; for a uniform source MSE = Δ²/12 and SNR rises 6.02 dB per bit. For non-uniform (Gaussian/Laplacian) sources choose Δ to balance granular and overload error; mismatch effect. Non-uniform quantization: pdf-optimized (Lloyd-Max), companded (μ-law, A-law).
Last asked (2024-25, Section C): Describe the types of quantizers: uniform, adaptive and non-uniform with examples.
Linde-Buzo-Gray (LBG) algorithm (steps, initialisation, empty cell problem)
came in 5 of 5 papersUnit 5 · 2017-18 to 2024-25
How to answer: Steps: initial codebook, assign training vectors to nearest code vector, recompute centroids, repeat until distortion change < ε. Initialisation: splitting technique, random, pairwise nearest neighbour. Empty cell problem and its fix. Role of LBG in designing VQ codebooks.
Last asked (2024-25, Section C): Explain the working of the Linde-Buzo-Gray algorithm for vector quantization.
Tree-structured vector quantizers (design, advantages, pruning)
came in 5 of 5 papersUnit 5 · 2017-18 to 2024-25
How to answer: Binary tree of code vectors: compare with 2 vectors per level, so search cost 2 log2 N instead of N. Design by splitting; pruning removes nodes to trade rate vs distortion. Advantages: fast search; drawback: more storage, slight loss in performance. Structured vs tree-structured comparison.
Last asked (2024-25, Section C): Describe the differences between structured and tree-structured vector quantizers.
Structured vector quantizers: pyramid, lattice, polar
came in 5 of 5 papersUnit 5 · 2017-18 to 2024-25
How to answer: Structured VQ imposes structure on the codebook to avoid storage/search cost: pyramid VQ (points on a pyramid surface, for Laplacian sources), lattice VQ (regular lattice points like D2/A2 hexagonal), polar/spherical VQ. Short note on each with a sketch.
Last asked (2024-25, Section C): Differences between structured and tree-structured vector quantizers.
Data compression: definition, need, lossless vs lossy, applications
came in 4 of 5 papersUnit 1 · 2017-18 to 2024-25
How to answer: Block diagram: source, encoder (compressor), channel/storage, decoder (reconstruction). Need: storage, bandwidth, cost. Lossless (text, ZIP, PNG) vs lossy (JPEG, MP3, video) with examples. Real-world applications.
Last asked (2024-25, Section A): What is data compression? Explain with block diagram. / Real-world applications of data compression. / Lossless vs lossy with examples.
Golomb and Rice codes (Golomb numericals, Rice code in CCSDS)
came in 4 of 5 papersUnit 2 · 2017-18 to 2024-25
How to answer: Golomb code with parameter m: q = floor(n/m) in unary, r = n mod m in truncated binary. Practise m = 5 for n = 6 to 13. Rice code = Golomb with m = 2^k; CCSDS lossless recommendation: preprocessor (predictor + mapper) and adaptive entropy coder choosing among split-sample options, zero-block, low-entropy.
Last asked (2024-25, Section B): What is a Golomb code? How is it different from Rice code?
LZW encoding / decoding numericals
came in 4 of 5 papersUnit 3 · 2021-22 to 2024-25
How to answer: Practise the classic AKTU sequence: initial dictionary 1 a, 2 b, 3 r, 4 t; decode 3 1 4 6 8 4 2 1 2 5 10 6 11 13 6 (watch the 'code not yet in dictionary' case). Also encode ABABABA with A = 65, B = 66 and new entries from 256.
Last asked (2024-25, Section C): Encode the string "ABABABA" using LZW (A = 65, B = 66, ...); give the output code sequence.
Burrows-Wheeler Transform & move-to-front coding
came in 4 of 5 papersUnit 3 · 2021-22 to 2024-25
How to answer: BWT: write all cyclic rotations, sort, send last column + index of the original; decode by sorting the last column. Then move-to-front coding turns repeats into small numbers. Practise 'thisisthe'.
Last asked (2024-25, Section C): Short note: Burrows-Wheeler Transform (BWT).
Facsimile encoding & run-length coding
came in 4 of 5 papersUnit 3 · 2017-18 to 2024-25
How to answer: Fax standards (Group 3 MH/MR, Group 4 MMR, JBIG). Run-length coding of white/black runs with modified Huffman codes; 2-D relative address coding. Simple RLE example on a string.
Last asked (2024-25, Section C): Short note: Run-Length Encoding (RLE).
Quantization problem, scalar quantization, types of quantization
came in 4 of 5 papersUnit 4 · 2017-18 to 2024-25
How to answer: Quantization = mapping a large (continuous) set to a small set of reconstruction levels. Problem: choose decision boundaries and reconstruction levels to minimise distortion for a given rate; encoder/decoder mapping diagram. Types: uniform, non-uniform, adaptive; scalar vs vector.
Last asked (2024-25, Section C): Explain the process of scalar quantization and discuss the models used for it.
Distortion criteria (MSE, SNR, PSNR, absolute difference)
came in 4 of 5 papersUnit 4 · 2021-22 to 2024-25
How to answer: Distortion d(x, y); squared error and MSE, absolute difference, SNR and PSNR in dB; human perception (perceptual criteria). Why they matter for comparing lossy schemes.
Last asked (2024-25, Section A): List the distortion criteria commonly used in quantization and explain their importance.
Adaptive quantization (forward and backward approaches)
came in 4 of 5 papersUnit 4 · 2021-22 to 2024-25
How to answer: Adapt step size to changing input statistics. Forward adaptive (offline): analyse a block, send step size as side info. Backward adaptive (online): adapt from past outputs, e.g. Jayant quantizer with multipliers. Compare with fixed uniform quantization.
Last asked (2024-25, Section C): Describe the types of quantizers: uniform, adaptive and non-uniform with examples.
Vector quantization: concept, code vectors, advantages over scalar quantization
came in 4 of 5 papersUnit 5 · 2017-18 to 2023-24 · DUE: not asked directly in 2024-25
How to answer: Group L samples into a vector, map to nearest code vector in a codebook, send its index (rate = log2 K / L bits per sample). Advantages over SQ: exploits correlation, better rate-distortion, fractional rates, better cell shapes. SQ vs VQ table and VQ encoder/decoder diagram.
Last asked (2023-24, Section C): Describe the advantages of vector quantization over scalar Quantization.
Information theory: self-information, entropy, average length ≥ entropy
came in 3 of 5 papersUnit 1 · 2021-22 to 2024-25
How to answer: Self-information i(A) = -log2 P(A); entropy H = -Σ P log2 P; first-order entropy for given probabilities; redundancy = average length - entropy. Proof that the average codeword length of an optimal (prefix) code satisfies l ≥ H(S) using Kraft-McMillan inequality.
Last asked (2024-25, Section C): Short note: Entropy.
Adaptive Huffman coding (update, encode, decode procedures)
came in 3 of 5 papersUnit 2 · 2017-18 to 2022-23 · DUE: not asked in the last two papers
How to answer: No prior statistics: tree starts with NYT node; sibling property; update procedure (swap with highest-numbered node of same weight, increment); encoding (NYT code + fixed code for new symbol); decoding. Practise the 26-letter alphabet fixed-code rule (5-bit / 4-bit) on a short bit string.
Last asked (2022-23, Section C): 26-letter alphabet with 5-bit / 4-bit fixed codes: decode a bit string using the adaptive Huffman procedure, showing the tree at each step.
Arithmetic coding, coding a sequence, binary code vs Huffman
came in 3 of 5 papersUnit 2 · 2017-18 to 2024-25
How to answer: Coding a sequence: tag interval narrows with each symbol using the CDF; generating a binary code (tag in binary, length ceil(log 1/P) + 1); decoding. Compare arithmetic/binary coding with Huffman (fractional bits, efficiency for long sequences, complexity). Applications: bi-level images (JBIG, JBIG2).
Last asked (2024-25, Section C): Compare Binary coding with Huffman coding and explain their differences in performance.
High-chance topics
- Tunstall codesUnit 2 · came in 2 of 5 papers
- Applications: audio compression, image compression, compression standards (JBIG)Unit 2 · came in 2 of 5 papers
- CALIC and JPEG-LS (context-based lossless image coding)Unit 3 · came in 2 of 5 papers
Repeated 2-mark questions (Section A)
- What are the various distortion criteria? / Define distortion.asked 4 times
- What is data compression and why is it needed?asked 3 times
- Measures of performance / compression ratio.asked 3 times
- Scalar vs vector quantization.asked 3 times
- Principle / algorithm / applications of Huffman coding.asked 3 times
- Huffman vs adaptive Huffman / vs arithmetic / vs binary coding.asked 3 times
- Define PPM.asked 2 times
- Explain CALIC.asked 2 times
- What is quantization? Describe its types.asked 2 times
- Advantages of tree-structured vector quantization.asked 2 times
- Golomb code of 9 and 13 with m = 5.asked 2 times
- Applications of dictionary techniques / what is GIF?asked 2 times
- Rice codes.
- Lossless vs lossy compression with examples.
- Role of the LBG algorithm in VQ.
- Limitations of Huffman coding.
- Define code vectors / concept of pruning / mismatch effect.
- Discuss audio compression.
The 10 numericals to practise by hand
- Huffman: P = {0.15, 0.04, 0.26, 0.05, 0.50}: entropy, code, average length, redundancy (and minimum-variance version)
- Huffman tree for A:15, B:6, C:7, D:12, E:25, F:4, G:6, H:10, I:15 with average code length
- Huffman bits saved for a:5, b:9, c:12, d:13, e:16, f:45 (vs 8 bits per character)
- Golomb code with m = 5 for n = 6 to 13
- 3-bit Tunstall code for P(A) = 0.6, P(B) = 0.3, P(C) = 0.1
- Unique decodability tests: {0,01,11,111}, {0,01,110,111}, {1,10,110,111}, {0,01,10}
- LZW decode 3 1 4 6 8 4 2 1 2 5 10 6 11 13 6 with dictionary a, b, r, t
- LZW encode ABABABA (A = 65, B = 66)
- BWT + move-to-front for 'thisisthe'
- Adaptive Huffman: update the tree step by step for a short string
Get the Data Compression PDF
Not official AKTU material. The important questions are based on 5 previous year papers (2017-18 to 2024-25). The real paper can differ. Syllabus cross-checked with the official AKTU 3rd-year CSE scheme (2024-25), BCS064 detailed syllabus. Research date: 20 Nov 2026.
More subjects: all B.Tech papers. Practise coding for free on Kinetic CodeGuide.