Image Compression Using Huffman and Shannon-Fano Coding: Performance Evaluation
This paper studies Shannon-Fano coding versus Huffman coding as both are lossless compression techniques that bring out the difference in encoding symbols and performance. Shannon-Fano coding is simple but structured in method yet usually yields much worse compression. On the other hand, Huffman coding assigns code lengths based on symbol frequencies. As a result, Huffman coding yields higher compression ratios than Shannon-Fano coding. In this paper, we took a sample image and compressed its size using both Huffman and Shannon-Fano coding algorithms, and as a result, the image was compressed. Regarding compression, Huffman coding is more effective than Shannon-Fano coding since the output is observed to have a greater efficiency and the resulting file size is significantly less when compared to Shannon-Fano Coding.
Authors
- Nikhilesh Patil (ORCID: https://orcid.org/0000-0002-4391-4705)
Publication Details
- Journal
- International Journal for Research in Applied Science and Engineering Technology
- Published
- 2024-11-21
- DOI
- https://doi.org/10.22214/ijraset.2024.65094
- Primary Topic
- Algorithms and Data Compression
- Type
- article
- Field-Weighted Citation Impact
- 0.00