Search strategies

Compare search decisions across ordered arrays and connected structures, then see why the frontier matters.

What can each observation safely eliminate?

Choose by the decision you want to understand

Each lesson names the situation it fits and the behavior worth watching.

Binary and Linear Search visualizer preview
Start hereScan or eliminate half

Binary and Linear Search

Choose it when
Choosing a search from data order
Watch for
Binary search earns speed only when the values are sorted.
Explore Binary and Linear Search
BFS vs DFS visualizer preview
IntermediateChoose a frontier

BFS vs DFS

Choose it when
Graph reachability and traversal order
Watch for
A queue explores by distance while a stack follows one path deeply.
Explore BFS vs DFS