Cargando…

Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches

In this paper, we address the problem of m-gram entropy variable-to-variable coding, extending the classical Huffman algorithm to the case of coding m-element (i.e., m-grams) sequences of symbols taken from the stream of input data for [Formula: see text]. We propose a procedure to enable the determ...

Descripción completa

Detalles Bibliográficos
Autores principales: Tu, Kun, Puchala, Dariusz
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9602054/
https://www.ncbi.nlm.nih.gov/pubmed/37420467
http://dx.doi.org/10.3390/e24101447
_version_ 1784817217873903616
author Tu, Kun
Puchala, Dariusz
author_facet Tu, Kun
Puchala, Dariusz
author_sort Tu, Kun
collection PubMed
description In this paper, we address the problem of m-gram entropy variable-to-variable coding, extending the classical Huffman algorithm to the case of coding m-element (i.e., m-grams) sequences of symbols taken from the stream of input data for [Formula: see text]. We propose a procedure to enable the determination of the frequencies of the occurrence of m-grams in the input data; we formulate the optimal coding algorithm and estimate its computational complexity as [Formula: see text] , where n is the size of the input data. Since such complexity is high in terms of practical applications, we also propose an approximate approach with linear complexity, which is based on a greedy heuristic used in solving backpack problems. In order to verify the practical effectiveness of the proposed approximate approach, experiments involving different sets of input data were conducted. The experimental study shows that the results obtained with the approximate approach were, first, close to the optimal results and, second, better than the results obtained using the popular DEFLATE and PPM algorithms in the case of data that can be characterized by highly invariable and easy to estimate statistics.
format Online
Article
Text
id pubmed-9602054
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-96020542022-10-27 Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches Tu, Kun Puchala, Dariusz Entropy (Basel) Article In this paper, we address the problem of m-gram entropy variable-to-variable coding, extending the classical Huffman algorithm to the case of coding m-element (i.e., m-grams) sequences of symbols taken from the stream of input data for [Formula: see text]. We propose a procedure to enable the determination of the frequencies of the occurrence of m-grams in the input data; we formulate the optimal coding algorithm and estimate its computational complexity as [Formula: see text] , where n is the size of the input data. Since such complexity is high in terms of practical applications, we also propose an approximate approach with linear complexity, which is based on a greedy heuristic used in solving backpack problems. In order to verify the practical effectiveness of the proposed approximate approach, experiments involving different sets of input data were conducted. The experimental study shows that the results obtained with the approximate approach were, first, close to the optimal results and, second, better than the results obtained using the popular DEFLATE and PPM algorithms in the case of data that can be characterized by highly invariable and easy to estimate statistics. MDPI 2022-10-11 /pmc/articles/PMC9602054/ /pubmed/37420467 http://dx.doi.org/10.3390/e24101447 Text en © 2022 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Tu, Kun
Puchala, Dariusz
Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches
title Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches
title_full Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches
title_fullStr Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches
title_full_unstemmed Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches
title_short Variable-to-Variable Huffman Coding: Optimal and Greedy Approaches
title_sort variable-to-variable huffman coding: optimal and greedy approaches
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9602054/
https://www.ncbi.nlm.nih.gov/pubmed/37420467
http://dx.doi.org/10.3390/e24101447
work_keys_str_mv AT tukun variabletovariablehuffmancodingoptimalandgreedyapproaches
AT puchaladariusz variabletovariablehuffmancodingoptimalandgreedyapproaches