Heuristic Search Presentation
Heuristic Search Presentation
Intelligence
• Exploring Intelligent Problem Solving
• Your Name
• Date
Introduction
• • What is Search in AI?
• • Role of search in problem-solving
• • Uninformed vs. informed (heuristic) search
What is a Heuristic?
• • A rule of thumb or educated guess
• • Guides the search process
• • Example: Manhattan distance
Types of Heuristic Search
• • Greedy Best-First Search
• • A* Search
• • Hill Climbing
• • Beam Search
Greedy Best-First Search
• • Uses only heuristic function h(n)
• • Selects node with lowest h(n)
• • Pros: Fast
• • Cons: Not always optimal
A* Search
• • f(n) = g(n) + h(n)
• • g(n): cost so far, h(n): estimated cost to goal
• • Optimal and complete (if h is admissible)
Hill Climbing
• • Moves towards increasing value
• • No backtracking
• • Issues: local maxima, ridges, plateaus
Beam Search
• • Keeps a fixed number of best paths
• • Prunes others
• • Efficient but may miss optimal solutions
Heuristic Design
• • Admissibility: never overestimates
• • Consistency: triangle inequality
• • Trade-off: speed vs. accuracy
Applications
• • GPS and pathfinding
• • Game playing (Chess, Go)
• • Scheduling problems
• • NLP tasks
Summary
• • Heuristic search is faster
• • A* is optimal with admissible heuristic
• • Good heuristic design is key
Q&A
• • Questions?