liveBook · Manning

Graph search method

As explained in Optimization Algorithms: AI techniques for design, planning, and control problems

A graph search algorithm explores nodes and edges of a graph to find reachable states, paths, or solutions.

A graph search method is a deterministic algorithm that explores vertices and edges for discovery or explicit search. Methods divide into blind searches, which use no search-space information, and informed searches, which use it. section 3.6 section 2.2

Choose a method according to path costs, search direction, depth limits, and the desired balance of time and space:

  • Breadth-first search examines one tree level at a time and finds shortest paths when edge costs are equal. section 3.6
  • Depth-first search follows a branch as far as possible before backtracking; depth-limited search adds a maximum depth. section 3.6
  • Iterative deepening search repeatedly increases the depth limit, combining DFS space efficiency with BFS-style search progress. section 3.6
  • Dijkstra’s algorithm and uniform-cost search use cumulative costs for weighted graphs with non-negative edge costs; bidirectional search works forward and backward. section 3.6
  • Informed methods include hill climbing, beam search, best-first search, A*, and contraction hierarchies. section 2.2

Routing between two places

Represent locations as vertices and connections as edges, then search from an origin such as home to a destination. Use blind search for simple, well-defined routing; use cost-aware methods when edge costs differ. section 3.0 section 3.6

Figure 2.16 Deterministic vs. stochastic algorithms. Deterministic algorithms follow a set procedure, and the results are repeatable, while stochastic searches have elements of randomness built into the algorithms.

Compare repeatable deterministic procedures with stochastic searches that incorporate randomness, and place graph search methods within that distinction. section 2.2

How Optimization Algorithms: AI techniques for design, planning, and control problems covers it

How deep it goes
Defines graph search and distinguishes major algorithms, but stops short of implementation details, proofs, and complexity analysis.
Examples
Uses mazes, n-puzzles, social-media distances, family trees, and origin-to-destination routing to illustrate graph exploration and path finding.
What it assumes
Introduces graphs through vertices and edges before applying traversal and shortest-path algorithms.
What you can do after
Evaluate/understand how to select graph searches by path costs, depth, search direction, prior knowledge, time, and space.
How it connects
Connects graph search with deterministic algorithms, blind search, informed search, graph traversal, shortest-path problems, and stochastic algorithms.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.