Introduction to Huffman Coding

Sdílet
Vložit
  • čas přidán 13. 04. 2014
  • This video walks through the basic concepts of Huffman Coding. Huffman coding is a great algorithm for data compression and works by limiting the number of bits that are required by a character, this type of algorithm is very useful in such fields as bio-infomatics, that have a small number of letters but a large amount of data that needs to be compressed.
  • Věda a technologie

Komentáře • 23

  • @kamrynelissa
    @kamrynelissa Před 7 lety +37

    3:20

  • @boota4474
    @boota4474 Před 5 lety +1

    Is it necessary to start plotting the frequencies from bottom? I.e. from E and D rather then A and B ???

  • @bikashbhandari5608
    @bikashbhandari5608 Před 9 lety +1

    sir please tell me how can we calculate average number of bits to encode those symbols?

  • @ramashishmishra724
    @ramashishmishra724 Před 8 lety +2

    thanks bro for this tutorial it came in my exam for 10 marks exactly same question ........

  • @kavanmannapperuma1963
    @kavanmannapperuma1963 Před 6 lety

    Very clear. Thank you.

  • @deadnight700
    @deadnight700 Před 8 lety

    won't the binary tree will take some space? how and what values will that be?

  • @MrBenMcLean
    @MrBenMcLean Před 4 lety +2

    This explains how to encode, but how do you decode?

    • @erric3375
      @erric3375 Před rokem

      Since no letter codes are prefixes of other letters, once you see a code that corresponds to a letter you can immediately turn that into a letter.

  • @giovanniraineri2226
    @giovanniraineri2226 Před 5 lety

    It's a good example but the final resualt it's shoud be 100 with the Huffman Code? thanks for the video

    • @kurchak
      @kurchak Před 3 lety

      What are you talking about

  • @RamSanginadham
    @RamSanginadham Před 9 lety

    it looks this is not following the binary tree property. Ideally the largest values should be in right child nodes. Can you please share if Huffman coding will not follow the binary tree property?

  • @43SunSon
    @43SunSon Před 4 lety +7

    @4:46 wrong! you should not say, just plus 22 + 16. because you should say, compare among 24, 22,16, the 22 ,16 are smallest, thats how you pcik 22 ,16 first.

    • @kurchak
      @kurchak Před 3 lety

      I think he is correct and you are "wrong!". You don't compare three values in Huffman coding, you compare the next two in the priority queue which in this case were 16 and 22. This means 24 wasn't even in play yet. Then after combining 16 and 22, the only two left in the queue were 24 and 38 which were then combined.

  • @vimallalv1594
    @vimallalv1594 Před 6 lety +2

    it is wrong Huffman code follow binary tree characteristics .left sub tree is less and right is greater.

    • @GoobNoob
      @GoobNoob Před 6 lety +2

      Huffman Code DOES NOT follow a binary tree. Never use a Binary Tree for a Huffman Code.

    • @Adowrath
      @Adowrath Před 5 lety

      If you did that, you'd end up with all characters being encoded with the same length (or 1 bit less).

  • @michelshumakar8614
    @michelshumakar8614 Před 9 lety +2

    24 can be tied also with 22 why u tied wit with 38..

    • @Adowrath
      @Adowrath Před 5 lety

      Because 22 was tied with 16. 16 is smaller than 24, so you don't tie 22 with 24. And once 22 was tied, no more ties for 22. 38 and 24 was the only choice left!

  • @Neo_metallum
    @Neo_metallum Před 6 lety +20

    I expected you to be indian XD