AI Search Algorithms and Problem-Solving

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/49

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards based on AI search algorithms and problem-solving techniques.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

50 Terms

1
New cards

Search (in AI)

Systematically exploring states and actions to find a path from an initial state to a goal state.

2
New cards

State (in search)

An atomic representation of the world with no visible internal structure to algorithms.

3
New cards

Goal Formulation

Defining the objectives to meet, represented as goal states.

4
New cards

Problem Formulation

Choosing actions and states that lead to achieving the goal.

5
New cards

Assumptions in Classical Search

Observable, discrete, deterministic environment.

6
New cards

Components of a Search Problem

Initial state, Actions, Cost, Transition model, Goal predicate.

7
New cards

Transition Model

A function that gives the result of an action applied to a state.

8
New cards

Goal Predicate

A function that checks if a state meets the goal.

9
New cards

Solution (in search)

A path that leads to a goal; optimal solution is the least-cost path.

10
New cards

Examples of Toy Problems

N-puzzle, N-queens.

11
New cards

Goal of the N-Queens Problem

Place N queens on an NxN board so no two attack each other.

12
New cards

Good Problem Design (in search)

One that restricts the state space intelligently.

13
New cards

Actions in Vacuum World

Left, Right, and Suck.

14
New cards

Goal in Vacuum World

All squares must be clean.

15
New cards

Components of the 8-Puzzle

State of tiles, actions (move blank), transition model, goal test.

16
New cards

Examples of Real-World Search Problems

Route-finding, touring, traveling salesperson, layout, navigation.

17
New cards

Search Tree

Tree of nodes representing states and transitions.

18
New cards

Frontier Set

Leaf nodes available for expansion, also called the open list.

19
New cards

Causes of Redundant Paths

Multiple paths to the same state, or cycles.

20
New cards

How to Avoid Cycles

Use explored set or restrict problem formulation.

21
New cards

Tree Search

Search algorithm without explored set.

22
New cards

Graph Search

Search algorithm with an explored set.

23
New cards

Node (in a search tree)

Includes state, parent, action, path cost.

24
New cards

Path Cost g(n)

Cost from initial state to node n.

25
New cards

Frontier Queue

A queue holding nodes to be expanded; can be FIFO, LIFO, or priority.

26
New cards

Priority Queue

Queue that returns the element with the highest priority.

27
New cards

f(n) in A* Search

Estimated total cost: g(n) + h(n).

28
New cards

Completeness (in search)

Guarantee to find a solution if one exists.

29
New cards

Optimality (in search)

Guarantee to find the least-cost solution.

30
New cards

Uninformed Search

Search with no information about state quality.

31
New cards

Breadth-First Search (BFS)

Expands the shallowest unexpanded node.

32
New cards

BFS Guarantees

Complete and optimal if cost is a nondecreasing function of depth.

33
New cards

Uniform-Cost Search

Expands nodes with lowest path cost; optimal solution.

34
New cards

Depth-First Search (DFS)

Expands the deepest node first; incomplete and non-optimal.

35
New cards

Iterative Deepening

DFS with increasing depth limits to prevent infinite loops.

36
New cards

Informed Search

Uses a heuristic to estimate cost to goal.

37
New cards

Heuristic h(n)

An estimate of cost from n to goal.

38
New cards

Greedy Best-First Search

Chooses node with smallest heuristic h(n).

39
New cards

A* Search

Uses both path cost g(n) and heuristic h(n): f(n) = g(n) + h(n).

40
New cards

Admissible Heuristic

Never overestimates the true cost to reach the goal.

41
New cards

Consistent Heuristic

Satisfies: h(n) ≤ cost(n, a, n') + h(n')

42
New cards

When is A* Optimal?

When heuristic is admissible (tree) or consistent (graph).

43
New cards

Limitation of A*

High memory usage due to frontier and explored sets.

44
New cards

Variants of A*

Iterative deepening A, Simplified Memory A (SMA*)

45
New cards

Heuristic Error

Difference between true cost h(n) and estimate h'(n).

46
New cards

N-Puzzle Heuristics

h1 = misplaced tiles, h2 = Manhattan distance.

47
New cards

Relaxed Problem

One where constraints are loosened to simplify the problem.

48
New cards

Benefit of Relaxed Problems

Easier heuristic development; properties may transfer.

49
New cards

Automatic Heuristic Generation

Algorithms that generate heuristics from formal problem specs.

50
New cards

Why Merge Multiple Heuristics?

Taking the maximum of admissible heuristics improves accuracy.