Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Extended Euclidean algorithm: Examples & Code

Extended Euclidean algorithm: Find gcd(a,b) and signed coefficients x,y satisfying ax + by = gcd(a,b). Explore a worked example, complexity and tested code.

Algorithm Visualizations

Minimum palindrome partition cuts: Examples & Code

Minimum palindrome partition cuts: Build palindrome intervals and minimum prefix cuts, then reconstruct a partition. Explore a worked example, complexity and…

Algorithm Visualizations

Egg dropping (moves formulation): Examples & Code

Egg dropping (moves formulation): Track the maximum number of floors distinguishable with each egg count and number of drops. Explore a worked example,…

Algorithm Visualizations

Weighted interval scheduling: Examples & Code

Weighted interval scheduling: Sort by finish time, then choose compatible jobs with maximum total value. Reconstruct the selected original job indices.…

Algorithm Visualizations

Matrix-chain multiplication: Examples & Code

Matrix-chain multiplication: Choose multiplication order with minimum scalar multiplications and reconstruct the parenthesization. Explore a worked example,…