Huffmankódolást
Huffmankódolást, known in English as Huffman coding, is a lossless data compression algorithm developed by David A. Huffman in 1952. It is a method for constructing prefix codes based on the frequencies of the symbols in the input data. The core idea is to assign shorter codes to more frequent symbols and longer codes to less frequent symbols, thereby reducing the overall number of bits required to represent the data.
The algorithm works by building a binary tree, often called a Huffman tree. Initially, each unique symbol
Once the tree is constructed, a unique binary code is assigned to each symbol by traversing the
Huffmankódolást is widely used in various data compression applications, including file archiving formats like ZIP and