the most common kind of frequency compression is called huffman coding, after the scientist who came up with the idea. the basic plan is to give each distinct value in a piece of data a code:- values that crop up all the time get shorter codes, and values that only show up once or twice get longer codes.