Bornat Visualizer
AlgorithmsData StructuresNeural NetPracticePlaygroundCompareDocs

Mathematics

GCD, sieves, fast exponentiation — number theory with every intermediate value shown.

5 visualizations

Compare

Euclidean Algorithm (GCD)

Finds the greatest common divisor by repeatedly replacing (a, b) with (b, a mod b) until b is 0.

Beginnernumber theoryrecursion

Sieve of Eratosthenes

Finds all primes up to n by repeatedly crossing out the multiples of each prime.

Beginnernumber theoryprimes

Fast Power (Binary Exponentiation)

Computes xⁿ (optionally mod m) in O(log n) multiplications by repeatedly squaring — the engine behind modular exponentiation in cryptography.

Intermediatenumber theorydivide & conquer

Prime Factorization (Trial Division)

Decomposes n into its prime factors by dividing out each candidate 2…√n; whatever remains above 1 is itself prime.

Beginnernumber theoryprimes

Extended Euclidean Algorithm

Computes gcd(a, b) plus the Bézout coefficients x, y with a·x + b·y = gcd — the key to modular inverses.

Advancednumber theoryBézout identity
Bornat Data Structure Visualizer

Learn, visualize, experiment, and master data structures & algorithms with fully interactive, step-by-step animations.

Made with by Jibreel Bornat

Computer Engineering — Birzeit University

Explore

  • Sorting
  • Searching
  • Linked Lists
  • Stacks & Queues
  • Hashing
  • Trees
  • Graphs

App

  • All Algorithms
  • Practice
  • Playground
  • Documentation
  • About
  • Settings
Bornat Data Structure Visualizer© All Rights Reserved