Bornat Visualizer
AlgorithmsData StructuresNeural NetPracticePlaygroundCompareDocs

Backtracking

Explore, fail, undo, retry — N-Queens, Sudoku, and maze solving with visible backtracks.

6 visualizations

Compare

N-Queens

Places N queens on an N×N board so none attack each other, backtracking whenever a conflict arises.

Intermediatebacktrackingconstraint satisfaction

Rat in a Maze

Finds a path through a grid maze from the top-left to the bottom-right using recursive backtracking.

Intermediatebacktrackingmaze

Permutations (Backtracking)

Generates every ordering of a set by placing each unused element at the next position and backtracking.

Intermediatebacktrackingrecursion

Subset Sum (Backtracking)

Decides whether any subset of numbers adds up to a target, exploring include/exclude choices with pruning.

Intermediatebacktrackingrecursion

Combinations (C(n,k) by Backtracking)

Generates every k-element subset of n items using a start-index that only moves forward, so each combination is produced exactly once.

Intermediatebacktrackingcombinatorics

Sudoku Solver (Backtracking)

Fills the first empty cell with each candidate digit 1–9 that doesn't violate row/column/box rules, recursing and backtracking on dead ends.

Advancedbacktrackingconstraint satisfaction
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