4,201 views

2 Answers

Best answer
2 votes
2 votes

If we have n symble then  we need to store each Symble in Array so 

Space complexity = O(n)

selected by
0 votes
0 votes
To obtain Huffman coding we use data structure called min heap. At the initial phase all the nodes has to be present in heap(satisfying min-heap property).

If there are n elements in tree then space complexity will be O(n) which is extra space required.

Related questions

1.6k
views
0 answers
1 votes
sunil sarode asked Jan 27, 2018
1,630 views
Which of the following statements is/are correct?P:In Huffman Coding, the item with the second lowest probability is always at the leaf that is furthest from the rootQ: In ... is P and Q R is not always true and always word i missed :(
2.9k
views
3 answers
1 votes
Parshu gate asked Nov 16, 2017
2,919 views
The following message is: GATE2018GAATTTEEEE22000011188What is the average length of bits required for encoding each letter using Huffman coding___?
734
views
1 answers
2 votes
atul_21 asked Nov 13, 2017
734 views
846
views
1 answers
1 votes
Anup patel asked May 21, 2017
846 views
What would be huffman coding for following : CharacterFrequencya10l15i12o3u4s13t1Explain this with suitable diagram..