Past exam question: Assignment 3, Q21
Open in the Padhaiko appQuestion
Compare lossy & lossless system.
Solution
Concept in Data Archiving and Compression: In instrumentation data logging and transmission, compression reduces storage footprint and network bandwidth. Depending on whether exact bit-for-bit reconstruction is required, systems are classified as lossless or lossy.
Comparison Table (Lossy vs. Lossless System):
| Aspect | Lossy System | Lossless System |
|---|---|---|
| Data Reconstruction | Approximate; discarded information cannot be recovered after decompression. | Exact bit-for-bit reconstruction identical to the original input. |
| Mechanism | Removes perceptually or analytically minor detail (e.g., rounding 6.666666 7, quantization, transform coding). | Exploits statistical redundancy without introducing error (e.g., Huffman, LZ77, RLE, delta encoding). |
| Compression Ratio | High ( to ), yielding very small files and low bandwidth use. | Moderate ( to ), bounded by signal entropy. |
| Signal Fidelity | Introduces controlled distortion / quantization error. | Zero distortion; mathematical fidelity preserved. |
| Common Formats | JPEG (images), MP3/AAC (audio), MPEG/H.264 (video). | ZIP/GZIP, PNG, FLAC, raw CSV/binary delta logs. |
| Instrumentation Use | Remote camera/multimedia WSN monitoring, audio/vibration previews where slight loss is tolerable. | Precision sensor logs, calibration tables, medical ECG/EEG records, financial/legal audit trails, executable firmware. |
Answer:
A lossless system exploits statistical redundancy to achieve moderate compression () with exact bit-for-bit recovery (essential for precision sensor logs, calibration tables, and medical waveforms), whereas a lossy system achieves much higher compression () by permanently discarding minor details where slight fidelity loss is acceptable (suited to multimedia WSN image, audio, and video streams).