Choose a Search Algorithm to Visualize
Launch interactive workspace with instant target seeking, pointer indicators, and step explanation.
Linear Search
SequentialSequentially checks each element from start to finish until the target is found or the collection is exhausted.
Binary Search
Divide & ConquerRepeatedly divides a sorted search interval in half by comparing the median element to the target key.
Jump Search
Block-SteppingSteps forward by fixed blocks of size √n to locate the enclosing interval, then executes a backward linear search.
Interpolation Search
HeuristicEstimates probable item position using linear interpolation based on numerical value distribution in sorted data.
Exponential Search
UnboundedFinds range containing key by exponentially increasing index bounds (1, 2, 4, 8...), then applies binary search.
Ternary Search
Tri-SectionDivides the search interval into three equal parts using two midpoints to eliminate two-thirds of candidates.
Fibonacci Search
Addition-BasedUses Fibonacci numbers to partition search spaces without requiring hardware division or multiplication.
Depth-First Search (DFS)
Graph TraversalExplores deeply along each branch before backtracking using a LIFO stack or recursive execution frames.
Breadth-First Search (BFS)
Graph TraversalExplores all neighboring vertices at present depth before proceeding to nodes at next depth level using a FIFO queue.
Sublist Search
Pattern MatchingSearches for a contiguous pattern sublist or subarray within a main list with dual arrays and mismatch backtracking.
Binary Search on Answer
Monotonic OptimizationApplies binary search over a continuous or discrete answer domain to identify the optimal threshold satisfying a monotonic predicate.
Two Pointers Search
Two PointersFinds a pair of elements that sum to a target value using converging left and right pointers in linear time.
Sliding Window Search
Sliding WindowLocates a contiguous subarray matching a target sum or constraint with dynamic expanding and contracting window boundaries.
Hash-Based Search
Direct HashingDirectly computes bucket slot indices using modulo hash arithmetic to achieve average constant-time O(1) detection.