Embed presentation
Downloaded 21 times




















The document discusses the greedy algorithm known as Huffman encoding. Huffman encoding is a lossless data compression algorithm that represents characters using binary codes with variable lengths. It assigns shorter codes to more common characters and longer codes to less common characters to minimize the expected code length. The algorithm builds a binary tree from the character frequencies where each leaf node represents a character and the path from the root to the leaf is the code assigned to that character.


















