Concept Flow - Huffman Encoding
Count frequency of each char
Create leaf nodes for each char
Build min-heap of leaf nodes
While more than one node in heap
Extract two smallest nodes
Create new internal node with sum freq
Insert new node back to heap
Heap has one node -> root of Huffman tree
Traverse tree to assign codes
Encode input using codes
The flow shows counting frequencies, building a min-heap, merging nodes to build the tree, then assigning codes.