 Similar ideas are used in modern data-compression techniques such as Huffman coding.Letter frequencies, like word frequencies, tend to vary, both by writer and by subject.One cannot write an essay about x-rays without using frequent Xs, and the essay will have an idiosyncratic letter frequency if the essay is about the use of x-rays to treat zebras in Qatar.