Please enable JavaScript.
Coggle requires JavaScript to display documents.
Intro to AI (Search Problem (State space (State space size (W: Needed to…
Intro to AI
Search Problem
-
Successor function
W: 1) Function that takes in a state and action, 2) Computes the cost of performing the action as well as the successor state
-
-
Goal test
W: 1) Function that takes a state as input, 2) Determines if input is a goal state
EX: single thing that could be met (test, condition)
-
-
-
Search Strategies
Key points
Completeness
W: If solution exists to the search problem, is the strategy guaranteed to find it given infinite computational resources
-
-
-
-
-
Uninformed search
Uniform cost search
-
-
Worst case: 1) explores options in every 'direction', 2) no info about goal location
Depth-first search
-
Fringe representation: 1) Remove deepest node, 2) Replace it on the fringe with its children (children = deepest nodes); last-in, first-out (LIFO) stack represents a fringe when implementing DFS
-
-
-
Time Complexity: DFS may end up exploring the entire search tree (worst-case scenario); runtime for maximum depth = O(b^m)
-
Space Complexity: DFS maintains b nodes at each m depth levels on the fringe; space complexity = O(bm)
-
-
Informed Search
Heuristic
-
Manhattan distance, Euclidean distance
-
-
Consistency
-
IF CONSISTENT: f cost will continue to go up so when goal is expanded, nothing else can go higher
-
A*
-
Admissibility
-
Admissible: heuristic slows down bad plans but never outweigh true costs; heuristic <= cheapest cost node to the goal
-
EX: manhattan, pancake flipping
-
Applications: Video games, resource planning problems, robot motion planning, language analysis, machine translation
Graph Search
-
How: 1) expand the search tree node-by-node BUT first make sure its state has never been expanded before; 2) if not new, skip it, 3) if new, add to closed set
-
-
-
-
-