Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Job sequencing with deadlines: Examples & Code

Job sequencing with deadlines: Schedule unit-duration jobs in descending profit order, always using the latest free slot before the deadline. Explore a worked…

Algorithm Visualizations

Kasai longest common prefix array: Examples & Code

Kasai longest common prefix array: Reuse the previous common-prefix length; LCP[0] is zero. The suffix array is prepared before the trace. Explore a worked…

Algorithm Visualizations

Suffix array (prefix doubling): Examples & Code

Suffix array (prefix doubling): Sort suffixes by doubling the ranked prefix length. ASCII ordinal order is used. Explore a worked example, complexity and…

Algorithm Visualizations

Run-length decoding: Examples & Code

Run-length decoding: Expand letter/count runs into their original text. Explore a worked example, complexity and tested code.

Algorithm Visualizations

Run-length encoding: Examples & Code

Run-length encoding: Encode each consecutive run as an ASCII code and repeat count. Explore a worked example, complexity and tested code.