Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Huffman prefix decoding: Examples & Code

Huffman prefix decoding: Rebuild the deterministic tree from frequencies and walk one edge for each bit, emitting symbols at leaves. Explore a worked example,…

Algorithm Visualizations

Huffman prefix encoding: Examples & Code

Huffman prefix encoding: Repeatedly merge the two least frequent trees, then use left/right paths as prefix-free binary codes. Explore a worked example,…

Algorithm Visualizations

LZW dictionary decoding: Examples & Code

LZW dictionary decoding: Rebuild the dictionary from previous phrases, including the code-equals-next-entry special case. Explore a worked example, complexity…

Algorithm Visualizations

LZW dictionary encoding: Examples & Code

LZW dictionary encoding: Extend the longest known phrase; emit its code and add the phrase plus the next character to the dictionary. Explore a worked…

Algorithm Visualizations

Inverse Burrows-Wheeler transform: Examples & Code

Inverse Burrows-Wheeler transform: Match the rank of each final-column character to its occurrence in the sorted first column, then follow LF links backward.…