Advanced Topic 46 of 51 AI & Machine Learning
Search Algorithms in AI
Exploring state spaces for goal states.
How it works
Search algorithms explore a space of states to find a path from an initial state to a goal. Uninformed methods include breadth-first search, depth-first search, iterative deepening and uniform-cost search; informed methods use heuristics, such as greedy best-first search and A*, which combines path cost with an admissible estimate to guarantee optimal solutions. Local search methods such as hill climbing, simulated annealing and genetic algorithms improve a single candidate, and adversarial search handles games.
Step-by-step walkthrough
- Treat the problem as states connected by actions.
- Keep a frontier of states to explore.
- Expand one and add its neighbors.
- Repeat until the goal is found.
- BFS, DFS, uniform cost and A* differ in which node they pick next.
Where it is used
Route planning, puzzle solving, robot motion planning, scheduling, theorem proving and game AI use search.
Common pitfall
Exhaustive search suffers combinatorial explosion in large spaces, so quality heuristics and pruning are crucial. Inadmissible heuristics can return suboptimal paths, and memory can run out with breadth-first and A*. Local search can get stuck in local optima. Choose the algorithm by whether optimality, completeness, memory or speed matters most, and check for repeated states.
Where it fits in the course
Search Algorithms in AI is topic 46 of 51 in AI & Machine Learning, rated Advanced. It follows Tokenization. The next topic is Minimax and Alpha-Beta.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the AI & Machine Learning quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the AI & Machine Learning quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Search Algorithms in AI?
Where do people use Search Algorithms in AI?
What is the most common mistake with Search Algorithms in AI?
What should I learn before this topic?
How can I practice it?
Is Search Algorithms in AI hard to learn?
How long does it take to learn Search Algorithms in AI?
Which topics are related to Search Algorithms in AI?
What should I study after Search Algorithms in AI?
Related topics
- Tokenization (AI & Machine Learning)
- Minimax and Alpha-Beta (AI & Machine Learning)
- Natural Language Processing (AI & Machine Learning)
- Bayesian Networks (AI & Machine Learning)
- Linear Search (Algorithms)
- Binary Search (Algorithms)
- Line Drawing Algorithms (Graphics, Vision & Media)