An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression
Huffman encoding and arithmetic coding algorithms have shown great potential in the field of image compression. These algorithms are the origin of current image compression techniques. Nevertheless, there are some deficiencies in both algorithms that use the frequencies of the characters in the data...
Main Authors: | , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2019-02-01
|
Series: | Applied Sciences |
Subjects: | |
Online Access: | https://www.mdpi.com/2076-3417/9/4/782 |
id |
doaj-6dfe7ee2c19441ad880a2a7e02f46213 |
---|---|
record_format |
Article |
spelling |
doaj-6dfe7ee2c19441ad880a2a7e02f462132020-11-24T21:42:07ZengMDPI AGApplied Sciences2076-34172019-02-019478210.3390/app9040782app9040782An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for CompressionErdal Erdal0Atilla Ergüzen1Department of Computer Engineering, Faculty of Engineering, Kırıkkale University, Kırıkkale 71450, TurkeyDepartment of Computer Engineering, Faculty of Engineering, Kırıkkale University, Kırıkkale 71450, TurkeyHuffman encoding and arithmetic coding algorithms have shown great potential in the field of image compression. These algorithms are the origin of current image compression techniques. Nevertheless, there are some deficiencies in both algorithms that use the frequencies of the characters in the data. They aim to represent the symbols used in the data in the shortest bit sequence. However, they represent data that has a low frequency of use with very long bit sequences. The arithmetic coding algorithm was developed to address the shortcomings of the Huffman encoding algorithm. This paper proposes an efficient, alternative encoding algorithm that uses the Huffman encoding algorithm. The main objective of the proposed algorithm is to reduce the number of bits that are symbolized with long bit codewords by the Huffman encoding algorithm. Initially, the Huffman encoding algorithm is applied to the data. The characters that are represented by the short bit sequence from the Huffman encoding algorithm are ignored. Flag bits are then added according to whether the successive symbols are on the same leaf. If the next character is not on the same leaf, flag bit “0„ is added, otherwise flag bit “1„ is added between the characters. In other words, the key significance of this algorithm is that it uses the effective aspects of the Huffman encoding algorithm, and it also proposes a solution to long bit sequences that cannot be efficiently represented. Most importantly, the validity of the algorithm is meticulously evaluated with three different groups of images. Randomly selected images from the USC-SIPI and STARE databases, and randomly selected standard images on internet, are used. The algorithm encodes compressing operations for images successfully. Some images that have a balanced tree structure have yielded close results compared to other algorithms. However, when the total results are inspected, the proposed encoding algorithm achieved excellent results.https://www.mdpi.com/2076-3417/9/4/782encoding algorithmcompressionHuffman encoding algorithmarithmetic coding algorithm |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Erdal Erdal Atilla Ergüzen |
spellingShingle |
Erdal Erdal Atilla Ergüzen An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression Applied Sciences encoding algorithm compression Huffman encoding algorithm arithmetic coding algorithm |
author_facet |
Erdal Erdal Atilla Ergüzen |
author_sort |
Erdal Erdal |
title |
An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression |
title_short |
An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression |
title_full |
An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression |
title_fullStr |
An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression |
title_full_unstemmed |
An Efficient Encoding Algorithm Using Local Path on Huffman Encoding Algorithm for Compression |
title_sort |
efficient encoding algorithm using local path on huffman encoding algorithm for compression |
publisher |
MDPI AG |
series |
Applied Sciences |
issn |
2076-3417 |
publishDate |
2019-02-01 |
description |
Huffman encoding and arithmetic coding algorithms have shown great potential in the field of image compression. These algorithms are the origin of current image compression techniques. Nevertheless, there are some deficiencies in both algorithms that use the frequencies of the characters in the data. They aim to represent the symbols used in the data in the shortest bit sequence. However, they represent data that has a low frequency of use with very long bit sequences. The arithmetic coding algorithm was developed to address the shortcomings of the Huffman encoding algorithm. This paper proposes an efficient, alternative encoding algorithm that uses the Huffman encoding algorithm. The main objective of the proposed algorithm is to reduce the number of bits that are symbolized with long bit codewords by the Huffman encoding algorithm. Initially, the Huffman encoding algorithm is applied to the data. The characters that are represented by the short bit sequence from the Huffman encoding algorithm are ignored. Flag bits are then added according to whether the successive symbols are on the same leaf. If the next character is not on the same leaf, flag bit “0„ is added, otherwise flag bit “1„ is added between the characters. In other words, the key significance of this algorithm is that it uses the effective aspects of the Huffman encoding algorithm, and it also proposes a solution to long bit sequences that cannot be efficiently represented. Most importantly, the validity of the algorithm is meticulously evaluated with three different groups of images. Randomly selected images from the USC-SIPI and STARE databases, and randomly selected standard images on internet, are used. The algorithm encodes compressing operations for images successfully. Some images that have a balanced tree structure have yielded close results compared to other algorithms. However, when the total results are inspected, the proposed encoding algorithm achieved excellent results. |
topic |
encoding algorithm compression Huffman encoding algorithm arithmetic coding algorithm |
url |
https://www.mdpi.com/2076-3417/9/4/782 |
work_keys_str_mv |
AT erdalerdal anefficientencodingalgorithmusinglocalpathonhuffmanencodingalgorithmforcompression AT atillaerguzen anefficientencodingalgorithmusinglocalpathonhuffmanencodingalgorithmforcompression AT erdalerdal efficientencodingalgorithmusinglocalpathonhuffmanencodingalgorithmforcompression AT atillaerguzen efficientencodingalgorithmusinglocalpathonhuffmanencodingalgorithmforcompression |
_version_ |
1725918774966616064 |