Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Combinations by backtracking: Examples & Code

Combinations by backtracking: Choose increasing input indices and prune branches with too few remaining positions. Explore a worked example, complexity and…

Algorithm Visualizations

Distinct permutations by backtracking: Examples & Code

Distinct permutations by backtracking: Choose unused positions and skip equal unused siblings to emit every distinct value permutation once. Explore a worked…

Algorithm Visualizations

Generalized Chinese remainder theorem: Examples & Code

Generalized Chinese remainder theorem: Merge congruences using their gcd, reject incompatible residues, and search a bounded set of offsets in the current…

Algorithm Visualizations

Damerau-Levenshtein distance: Examples & Code

Damerau-Levenshtein distance: Allow insertions, deletions, substitutions and adjacent transpositions, including repeated edits of the same substring. Explore…

Algorithm Visualizations

Levenshtein alignment reconstruction: Examples & Code

Levenshtein alignment reconstruction: Compute unit-cost edits and trace an optimal alignment backward. Ties prefer a diagonal match/substitution, then…