2 votes 2 votes Algorithms algorithms huffman-code + – atul_21 asked Nov 13, 2017 retagged Jun 25, 2022 by makhdoom ghaya atul_21 682 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply hs_yadav commented Nov 13, 2017 reply Follow Share 1.806 ? 0 votes 0 votes joshi_nitish commented Nov 13, 2017 reply Follow Share it should be 1.75 0 votes 0 votes atul_21 commented Nov 13, 2017 reply Follow Share I'm also confused between 1.75 and 1.80 The answer key was wrong,it was showing 1.94 0 votes 0 votes joshi_nitish commented Nov 13, 2017 reply Follow Share see, below answer, thats how you will get 1.75 which is correct. 0 votes 0 votes hs_yadav commented Nov 13, 2017 reply Follow Share @atul here probability is given not the frequency ...that is the reason we need not to divide with sum of probability.... 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes 4*0.03125+4*0.0625+3*0.125+2*0.25+1*0.50=1.75 abhishek tiwary answered Nov 13, 2017 selected Nov 13, 2017 by atul_21 abhishek tiwary comment Share Follow See 1 comment See all 1 1 comment reply A_i_$_h commented Nov 14, 2017 reply Follow Share @abishek can u elaborate ur answer please :) 1 votes 1 votes Please log in or register to add a comment.