Complete learning library

Algorithm documentation

Learn 40 machine learning, LLM, and sorting algorithms through clear theory, readable formulas, from-scratch Python, practical library workflows, evaluation guidance, and interactive visualizations.

What every algorithm guide includes

Each page is written as a standalone tutorial, so you can start with one concept and progress from intuition to a reproducible implementation.

01

Concept and notation

A plain-language explanation, process breakdown, readable formula, and definition of every important symbol.

02

Two Python paths

A compact from-scratch implementation followed by a practical example using a widely adopted library.

03

Evaluation and pitfalls

Task-appropriate checks, common mistakes, reproducibility advice, and a project-readiness checklist.

04

Interactive practice

A linked visualization for replaying the algorithm, adjusting parameters, and connecting code to behavior.

Programs and Python libraries used

The examples favor approachable, established tools. You can run them locally in JupyterLab or VS Code, or in a hosted notebook such as Google Colab.

NumPy + scikit-learnClassical ML, preprocessing, metrics, model selection, clustering, and dimensionality reduction.
PyTorchNeural networks, backpropagation, embeddings, attention, and transformer building blocks.
Hugging FaceTokenizers and Transformers workflows for practical language-model inference.
Python standard libraryReadable sorting implementations compared with production-ready sorted() and list.sort().

Machine Learning

Prediction, clustering, representation learning, neural-network training, and sequential decision-making.

LLM Algorithms

Tokenization, representation, attention, transformer architecture, caching, and decoding.

Sorting Algorithms

Comparison, divide-and-conquer, heap, insertion, and distribution-based sorting strategies.