Creates a new Huffman dictionary from alphabet symbols and their frequencies. Returns `None` if the alphabet is empty. # Arguments `alphabet` - A slice of tuples containing symbols and their frequencies # Example ``` # use the_algorithms_rust::general::HuffmanDictionary; let freq = vec![('a', 5), ('b', 2), ('c', 1)]; let dict = HuffmanDictionary::new(&freq).unwrap();
(alphabet: &[(T, u64)])