Open poojithamiryala opened 4 years ago
Not an urgent need.
Input: String X Initialize priority queue: Q c: character in string X Algorithm:
for c in X; creating a single node binary tree T storing c
Insert T into Q with frequency of c
@czgdp1807 If this looks good, should I implement and make a PR?
Can you define a more concrete API, like how would I call a function to obtain the huffman encoding?
P.S. - This is not an urgent need, so may not receive much attention.
I am interested to work on this issue.
Can I work on this issue?
Can I work on this issue?
Feel free to work on it. Please provide the implementation/API plan below in the comments
can i work on it ?
Description of the problem
Given a set of symbols along with their frequencies, we will find a variable-length binary code that can be assigned to each and every symbol. The main objective of this algorithm is to usually transmit information using the fewest number of bits in such a way that every encoding is unambiguous.
Expectations: Time Complexity:O(nlogn)
Methods:
Example of the problem
References/Other comments
https://en.wikipedia.org/wiki/Huffman_coding