Closed bogdasar1985 closed 3 years ago
BUILDING WRONG TREE IN DECODER! build_tree use huffman implementation of priority_queue with specific policy of sorting, it should use normal policy.
build_tree
priority_queue
It happens because of instead hf_priority_queue extract elements looking for count and then symbol, all elements without symbol have got SAME PSEUDO SYMBOL -1.
hf_priority_queue
-1
Fix https://github.com/bogdasar1985/HuffmanCodeLib/commit/e597ef59809f0a04616bd86ee7f1c5b311ab3756
BUILDING WRONG TREE IN DECODER!
build_tree
use huffman implementation ofpriority_queue
with specific policy of sorting, it should use normal policy.