Huffman coding is used primarily for what purpose in computer science?
Show answer
Data compression
Huffman coding is a greedy algorithm that assigns shorter binary codes to more frequent characters. This prefix-free code minimizes the total number of bits needed to represent a message.