Algorithm Visualiser by Tsvetozar Biserov

About this visualiser

Algorithm Visualiser is a free teaching tool for students and curious developers. It runs 23 sorting algorithms in your browser and draws every compare, swap and write as it happens.

Every number on screen is measured. The same counting rules apply to every algorithm: comparisons count only element-against-element checks, reads and writes include helper buffers, and a swap counts once. Real time is measured on your own device, so it differs from machine to machine; the counts do not.

Each algorithm page is written to be read without the animation: a short introduction, a worked example produced by the same engine that drives the visualiser, an explanation of why the complexity is what it is, a table of measured operation counts on four kinds of input, background with references, and answers to common questions.

The guides cover the questions that cut across algorithms: how to choose one, what stability means, why some sorts get past the n log n limit, and exactly how the counts are produced.

Pages are available in English, Spanish and Catalan. Algorithm names stay in English in every language, as they do in textbooks and libraries.

The site is free and financed by advertising, shown only under the choices described in the privacy policy. Advertising never changes what an algorithm page says or how the counts are measured. Corrections are welcome and are applied as soon as they are verified.

Contact

Questions, corrections and ideas are welcome. There is no contact form; write an email or open an issue.

Author
Tsvetozar Biserov
Email
contact@tsvetozar.dev
GitHub
Report a bug or suggest an improvement