ハフマン符号
Huffman coding requires one to repeatedly obtain the two lowest-frequency trees. A priority queue is one method of doing this.