Search Flashcards
Defining a state space
When solving a problem, we start by defining what each “state” looks like and how states transition from one to another. Each state represents a possible configuration of the problem at a particular point in time. Basically the set of all possible configurations.
Pruning strategies
Systematically eliminate certain states from consideration to reduce search space and improve efficiency
Search strategies
Strategies for deciding how to explore the state space. Different strategies determine the order in which states are considered
Navigating the Frontier
In search algorithms, the “frontier” is the set of states that are ready to be explored next. For ex. BFS, states are explored layer by layer, while DFS, states are explored by diving deep into one path before backtracking
Search Heuristics
guide the search process by estimating how close a given state is to the goal. Heuristics help the search algorithm to be more efficient
Completeness
Will the search always find a solution of a solution exits
Optimality
Will the search always fin the least cost solution if actions have cost
Time Complexity
What is the maximum number of nodes that can be expanded or generated
Space Complexity
What is the maximum number of nodes that have to be stored in memory
Uninformed Search strategies
-Adopt a fixed fule for choosing the next state to be expanded.
- They don’t take into account any domain specific information about a specific search problem
- Ex. BFS, uniform-cost, DFS
Uniform Cost search
BFS but frontier is sorted in increasing cost of the path. It always expands the least cost node
Dept limited search
DFS but to a pre-specified depth limit L. No node over L steps is on the frontier.
This eliminates infinite length paths problem
Iterative deepening search
Dept limit search but starting at depth limit L=0 and iteratively increase the depth limit, doing a DLS for each depth limit
Cycle Checking/ Path checking
Ensure that the state c is not equal to the state reached by any ancestor of c along this path
merit of a frontier node
A measure that helps decide the order in which nodes should be expanded
- “Cost of solution” notion of merit