Question: https://www.geeksforgeeks.org/greedy-algorithms-set-3-huffman-coding/ c++ STD library, questions about the code? the struc defines the data types, why cant we pass into the class in the struc, then

https://www.geeksforgeeks.org/greedy-algorithms-set-3-huffman-coding/ c++ STD library, questions about the code?

the struc defines the data types, why cant we pass into the class in the struc, then do actual logic in a function to compare? Last question, how is the queue filled up with minimum already, is there a predefined library that does this? I definitely have a better understanding, but still little confused. Thanks!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!