Trace
Go to Toph
Graph Theory Breadth-first SearchDepth-first SearchKruskal's Algorithm
Number Theory Sieve of Eratosthenes
Search Binary Search
Sorting Bubble SortIn-place Merge SortInsertion SortMerge SortSelection Sort

Graph Theory

Breadth-first Search

Breadth‑first Search (BFS) explores a graph level by level, visiting all neighbors of a node before moving to nodes farther away.

Depth-first Search

Depth‑first Search (DFS) explores a graph by recursively following each branch as far as possible before backtracking.

Kruskal's Algorithm

Kruskal’s algorithm builds a minimum‑weight spanning tree by repeatedly adding the cheapest edge that connects two distinct components.

© 2025 Toph | Furqan Software