pub fn huffman_coding(
frequencies: &HashMap<String, i64>,
) -> Result<HashMap<String, String>, Error>Expand description
Huffman coding.
Every frequency must be positive; violations return
Err(Error::InvalidInput). Symbol keys may be any string, including the
empty string.