Lecture 6.pptx artificial intellegince and tech

laraibjamal1 8 views 47 slides Mar 06, 2025
Slide 1
Slide 1 of 47
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46
Slide 47
47

About This Presentation

this is good picture


Slide Content

State Space Graphs vs. Search Trees Each NODE in search tree is an entire PATH in state space graph. We construct both on demand – and we construct as little as possible.

Tree Search: example.

Breadth-First Search Strategy: expand a shallowest node first Implementation: Fringe is a FIFO queue

Breadth-First Search

Depth-First Search

Depth-First Search

Cost-Sensitive Search BFS finds the shortest path in terms of number of actions. It does not find the least-cost path. We will now cover a similar algorithm which does find the least-cost path. How?

Uniform Cost Search Strategy: expand a cheapest node first: Fringe is a priority queue (priority: cumulative cost)

Uniform Cost Search (Djikstra’s algorithm.)

Informed Search

Search Heuristics 11.2 5 10 A heuristic is: A function that estimates how close a state is to a goal Designed for a particular search problem Examples: Euclidean distance for pathing. Manhattan distance.

Best-First Search

Best-First Search

Best-First Search

Algorithm

Expand the nodes of S and put in the CLOSED list Initialization: Open [A, B], Closed [S] Iteration 1: Open [A], Closed [S, B] Iteration 2: Open [E, F, A], Closed [S, B] : Open [E, A], Closed [S, B, F] Iteration 3: Open [I, G, E, A], Closed [S, B, F] : Open [I, E, A], Closed [S, B, F, G] Hence the final solution path will be: S----> B----->F----> G Continued..

A is the start node and H is the goal node. Class Activity

Advantages More efficient compared to algorithms like DFS. Has advantages of both DFS and BFS as can switch between them both. Disadvantages Algorithm may be stuck in a loop.
Tags