5,715 views

2 Answers

Best answer
2 2 votes

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

Space complexity = O(n)

• selected by
0 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.
Position:
Show:

Related questions

1 1 vote
0 0 answers
2.3k
2.3k views
sunil sarode asked Jan 27, 2018
2,319 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: I...
1 1 vote
0 0 answers
744
744 views
Nau1994 asked Jan 26, 2018
744 views
1 1 vote
3 answers 3 answers
4.4k
4.4k views
Parshu gate asked Nov 16, 2017
4,397 views
The following message is: GATE2018GAATTTEEEE22000011188What is the average length of bits required for encoding each letter using Huffman coding___?
2 2 votes
1 answers 1 answer
1.3k
1.3k views
atul_21 asked Nov 13, 2017
1,348 views