Uninformed search

Also known as: blind search

On this page 7

Uninformed search, also called blind search, is a class of state-space search algorithms that find a path from an initial state to a goal state using only the information in the problem definition: the states, the actions, the transition model, the goal test and the step costs. In Symbolic AI & reasoning, and in artificial intelligence more broadly, it is the baseline against which every heuristic or informed method is measured.

An uninformed algorithm cannot tell whether one non-goal state is closer to the goal than another. It differs from its siblings only in the order in which it expands nodes, and that order alone determines whether it is complete, whether it returns an optimal solution and how much time and memory it consumes.

How uninformed search explores a state space

Every uninformed algorithm follows the same generic tree or graph search loop. It keeps a frontier (also called the open list) of generated but unexpanded nodes, removes one node according to its strategy, applies the goal test, and expands the node by generating its successors. A graph search variant also keeps an explored set (closed list) so that repeated states are not expanded twice.

The data structure of the frontier defines the strategy. A first-in, first-out queue produces breadth-first search, a last-in, first-out stack produces depth-first search, and a priority queue ordered by path cost g(n) produces uniform-cost search. The goal test may be applied when a node is generated (early goal test) or when it is selected for expansion (late goal test); the late test is required for optimality whenever step costs differ.

Complexity analysis is expressed through three parameters of the search tree. The following table defines them, because every comparison of uninformed strategies depends on these symbols.

SymbolMeaningEffect on cost
bBranching factor: maximum successors per nodeDrives exponential growth of the tree
dDepth of the shallowest goalSets the minimum work for breadth-first methods
mMaximum depth of the state spaceCan be infinite; dominates depth-first time
C*Cost of the optimal solutionBounds uniform-cost search effort
εSmallest positive step costSmall values inflate uniform-cost search depth
Parameters used to analyze uninformed search

The main uninformed search strategies

Six classic strategies make up the family, and each represents a different trade-off between memory, completeness and optimality. The table summarizes their behavior under the standard assumptions of a finite branching factor and positive step costs.

StrategyCompleteOptimalTimeSpace
Breadth-first searchYesYes, with unit step costsO(b^d)O(b^d)
Uniform-cost searchYes, if costs ≥ ε > 0YesO(b^(1+C*/ε))O(b^(1+C*/ε))
Depth-first searchNo in infinite spacesNoO(b^m)O(bm)
Depth-limited searchNo if limit < dNoO(b^l)O(bl)
Iterative deepeningYesYes, with unit step costsO(b^d)O(bd)
Bidirectional searchYes, with breadth-first halvesYes, with unit step costsO(b^(d/2))O(b^(d/2))
Properties of the classic uninformed strategies

Breadth-first search expands the shallowest node first and therefore finds the solution with the fewest actions. Uniform-cost search, which is equivalent to Dijkstra’s algorithm with a single target, expands the node with the lowest accumulated cost and returns the cheapest path when costs vary. Depth-first search follows one branch to its end and backtracks, which keeps memory linear but can wander forever in an infinite or cyclic space.

Iterative deepening depth-first search runs depth-limited search with limits 0, 1, 2 and so on. Re-expanding shallow levels looks wasteful, yet with a branching factor of 10 the overhead is only about 11 percent, because most nodes sit at the deepest level. For this reason iterative deepening is the preferred uninformed method when the state space is large and the solution depth is unknown. Bidirectional search runs two simultaneous searches, one forward from the start and one backward from the goal, and stops when the frontiers meet; it requires that predecessors can be computed.

Uninformed search compared with informed methods

The defining contrast is with informed (heuristic) search, such as greedy best-first search and A*, which uses an estimate h(n) of the remaining cost to the goal. A good heuristic can cut the explored portion of the space by several orders of magnitude, while an uninformed method treats every frontier node as equally promising apart from depth or accumulated cost.

AspectUninformed searchInformed search
Knowledge usedProblem definition onlyProblem definition plus heuristic h(n)
Node orderingDepth or path cost g(n)h(n) or g(n) + h(n)
Design effortNone beyond the modelRequires a valid heuristic
Typical efficiencyExponential in solution depthOften far smaller effective branching
GuaranteesSimple and easy to proveDepend on admissibility and consistency
Uninformed and informed search side by side

Uninformed search is not obsolete. A* with the zero heuristic reduces exactly to uniform-cost search, so the uninformed method is the limiting case of informed search. It also remains the right tool when no admissible heuristic exists, when the space is small, or when a guaranteed baseline is needed to validate a heuristic solver.

Choosing a strategy in practice

The choice depends mainly on memory limits, cost structure and knowledge of solution depth. Memory is usually the binding constraint: a breadth-first search that generates one million nodes per second can exhaust gigabytes of memory in minutes, long before time becomes the problem.

SituationRecommended strategyReason
Unit costs, shallow goal, ample memoryBreadth-first searchSimple, complete and optimal
Varying step costsUniform-cost searchOnly uninformed method optimal for general costs
Huge space, unknown depthIterative deepeningOptimal for unit costs with linear memory
Known maximum depth, many solutionsDepth-limited searchLow memory and quick first solution
Single explicit goal, reversible actionsBidirectional searchSquare-root reduction in explored nodes
Decision guide for uninformed strategies

Implementation details matter as much as the strategy. Graph search with an explored set avoids exponential blow-up on spaces with many paths to the same state, while tree search on such spaces can repeat work endlessly. Depth-first implementations should at least check for cycles along the current path when a full explored set is too expensive.

Limitations and common mistakes

The central limitation is the combinatorial explosion: with b = 10 and d = 12, breadth-first search may generate on the order of a trillion nodes. Uninformed search is therefore practical only for small or well-structured spaces, or as a component inside larger systems.

  • Assuming breadth-first search is optimal with unequal step costs; it minimizes the number of actions, not total cost.
  • Applying the goal test at generation time in uniform-cost search, which can return a suboptimal path.
  • Running depth-first tree search on a cyclic graph without cycle checks, which may never terminate.
  • Ignoring zero-cost actions, which break the completeness guarantee of uniform-cost search.

Understanding it simply

Imagine looking for a friend in a large building with no map and no signs. You have no clue where the friend is. You can only follow a fixed plan. You might check every room on the first floor before going up. Or you might follow one corridor to its end and then come back.

Uninformed search works the same way. A computer explores possible steps in a set order. It does not guess which direction looks better. The order it picks decides how fast it finishes and how much it must remember. The key point is simple: it is reliable, but it can be very slow.

Applied in practice

A warehouse robotics team models its floor as a grid of about 40,000 cells, where each move between adjacent cells costs one unit. Before deploying a tuned A* planner, the engineers need a trusted reference solver to check that every route the heuristic planner returns is truly the shortest.

They implement breadth-first graph search with an explored set, which is complete and optimal for unit costs. On this grid it finishes in well under a second per query and uses a few megabytes. Comparing its results with A* on 10,000 random start and goal pairs reveals two cases where a faulty heuristic overestimated distances near loading docks. After the fix, both planners agree on every test, and the A* planner ships with verified optimal routes.