CHAPTER 2 - Problem Solving by Search

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/38

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:44 PM on 8/18/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

39 Terms

1
New cards

Goal based

An important aspect of intelligence is ____ _____ problem solving. Several problems can be formulated as finding a sequence of actions that leads to a desirable goal. Each action changes the state and the aim is to find the sequence of actions and states that lead from the initial state to a final (goal) state

2
New cards

States, operators, start, initial, test

Searching through a state space involves the following:

- A set of ______

- _________

- A _____ or _______ state

- A ____ to check for goal state

3
New cards

Operators or successor function

describes a well-defined problem. for any state x returns s(x), the set of states reachable from x with one action

4
New cards

Path

describes a well-defined problem. sequence through state space

5
New cards

State space

describes a well-defined problem. all states reachable from the initial state by any sequence of actions

6
New cards

Path cost

describes a well-defined problem. function that assigns a cost to a path. Cost of a path is the sum of costs of individual actions along the path

7
New cards

Goal test

describes a well-defined problem. test to determine if a goal state

8
New cards

Search

is the systematic examination of states to find a path from the start state to the goal state.

9
New cards

Uninformed, heuristic, adversarial

Search techniques fall into what three groups

10
New cards

Tree-Based Search

The set of all paths within a state-space can be viewed as a graph of nodes, which are connected by links. If all possible paths are traced out through the graph, and the paths are terminated before they return to nodes already visited (cycles) on that path, a search tree is obtained.

11
New cards

Root node

Component of tree based search. represents the node the search starts from

12
New cards

Leaf node

Component of tree based search. a terminal node in the search tree having no children

13
New cards

Ancestor/descendant

Component of tree based search. node A is an ancestor of node B if either A is B's parent or A is an ancestor of the ancestor of the parent of B. If A is an ancestor of B, B is said to be a descendant of A

14
New cards

Branching factor

Component of tree based search. the maximum number of children of a non-leaf node in the search tree

15
New cards

Path

Component of tree based search. represents complete path if it begins with the start node and ends with a goal node. Otherwise, it is a partial path

16
New cards

State, pointer, depth, operator, cost

A node in the tree may be viewed as a data structure containing the following elements:

• A _____ description

• A _______ to the parent of the node

• _____ of the node

• The ________ that generated this node

• ____ of the path (sum of operator costs) obtained from the initial (start) state

17
New cards

Memory

It is advisable not to produce complete physical trees in ______ but rather explore as little of the virtual tree looking for root-goal paths.

18
New cards

State space

is explored by generating successors of the already explored states. Every state is evaluated in order to see whether this is the goal state.

19
New cards

Store

A disadvantage of the tree search is that it can end up repeatedly visiting the same node. A solution to this is to _____ all the visited nodes but this will require a lot of memory resources.

20
New cards

Open, fringe

The nodes that the algorithm has generated so far during the search process are kept in a data structure called ____ or ______. Initially only the start node (the initial state) is in OPEN. The search starts with the root node. The algorithm picks a node from OPEN for expanding and generates all the children of the node. Expanding a node from OPEN results in a closed node.

21
New cards

Closed

Some search algorithms keep track of the closed nodes also in a data structure called ______

22
New cards

Graph Search

If the search space is not a tree, but a graph, the search tree may contain different nodes corresponding to the same state. The state space can be considered a graph G(V, E), where V is the set of nodes/vertices and E is a set of edges, which are directed from a node to another node.

23
New cards

Vertex

In graph search, Each ______ corresponds to an instance of one of the operators. When the operator is applied to the state associated with the arc's source node, then the resulting state is the state associated with the vertex's destination node. Each vertex has a positive cost associated with it corresponding to the cost of the operator.

24
New cards

Successor

Each node has a set of _________ nodes corresponding to all of the operators that may be applied at the source node's state. Expanding a node means generating all the successor nodes of it and add them and their associated vertices to the state-space graph

25
New cards

Initial state

component of graph search. One or more nodes are designated as start nodes.

26
New cards

State space

component of graph search. Initially, a starting node S is considered and V equals {S}. Then S is expanded and its generated successors (nodes and vertices) are added to V and E respectively. This process continues until a goal node is found

27
New cards

Path

component of graph search. each node represents a partial solution path from the start node to the given node. In general, from this node there are many possible paths (and therefore solutions) that have this partial path as a prefix

28
New cards

Path cost

component of graph search. the sum of the vertices costs on the solution path

29
New cards

Goal test

component of graph search. test applied to a state to determine if its associated node is a goal node and satisfies all goal conditions

30
New cards

Solution

component of graph search. a sequence of operators that is associated with a path in a state space from a start node to a goal node

31
New cards

uninformed/blind, informed/heuristic

2 major categories of search methods

32
New cards

Breadth first, width first, iterative deepening depth first, bidirectional. Branch and bound

5 examples of well known algorithms under uninformed search (BDIBB)

33
New cards

Hill climbing, beam, greedy, best first

4 examples of well known algorithms under informed search (HBGB)

34
New cards

Root

Similar to a queue, fifo. In the breadth first search (BFS) algorithm, each state at a given layer is expanded before moving to the next layer of states. This way always the node nearest the ____ can be cached. This is important if the tree is unbalanced, but is wasteful if all the goal nodes are at similar levels

35
New cards

Memory exhaustion

______ __________ stops BFS long before processing time becomes an issue.

36
New cards

RAM

Uninformed BFS is completely impractical for deep problems due to ___ limits

37
New cards

Depth First Search

The queue here may be replaced with a stack, lifo. Nodes are popped from the front of the queue and new nodes are pushed to the front. The strategy always chooses to expand one of the nodes that is at the deepest level on the search tree. It only expands nodes on the queue that are at the shallower level if the search has reached a dead-end at the deepest level. A path is expanded as much as possible until it reaches a goal node or can be expanded no more prior to expanding other paths.

38
New cards

Depth First Search

in infinite-depth spaces or cyclic graphs, Can plunge down an infinite path and never reach a goal on a neighboring branch.

39
New cards

Depth limits, cycle checking

DFS Requires _____ ______ or _____ ________ (an Explored Set) to prevent infinite loops.