Algorithm Visualizations

Algorithm Visualizations

Explore algorithm visualizations code snippets and tutorials

Algorithm Visualizations

Interpolation search: Examples & Code

Interpolation search: Estimate a position from the value range. Best suited to uniformly distributed sorted values. Input is sorted before searching. Explore…

Algorithm Visualizations

Exponential search: Examples & Code

Exponential search: Double the search range, then run binary search within it. Input is sorted before searching. Explore a worked example, complexity and…

Algorithm Visualizations

Pancake sort: Examples & Code

Pancake sort: Flip prefixes to move the largest remaining value to its final position. Explore a worked example, complexity and tested code.

Algorithm Visualizations

Odd–even sort: Examples & Code

Odd–even sort: Alternate odd and even neighbor comparisons until a full round makes no swaps. Explore a worked example, complexity and tested code.

Algorithm Visualizations

Comb sort: Examples & Code

Comb sort: Shrink the comparison gap before finishing with neighboring comparisons. Explore a worked example, complexity and tested code.