Huffman Coding – Greedy Algorithm

Video is ready, Click Here to View ×


We go over how the huffman coding algorithm works, and uses a greedy algorithm to determine the codes!

c++ coding

coder

34 thoughts on “Huffman Coding – Greedy Algorithm”

  1. how does the computer know when one code ends and the next one begins, if they are all different sizes? I suspect it's built in such a way that no such error can occur, but how does this work?

Leave a Reply

Your email address will not be published. Required fields are marked *