Huffman coding algoritnm
Huffman coding algorithm:- Huffman coding . Huffman Algorithm was developed by David Huffman in 1951. This is a technique which is used in a data compression or it can be said that it is a coding technique which is used for encoding data. Huffman is widely used in all the mainstream compression formats that you might encounter - from GZIP, PKZIP (winzip etc) and BZIP2, to image formats such as JPEG and PNG. algorithm:- Huffman(c) { n = |c| //where mod of c is set of character make a min heap 'Q' with c [O(n)] for i in range n-1 // allocated a new node z z.left = x = extract - min(Q) z.rigth=y= extract - min(Q) ...