Algoritmes Lecture 0 Flashcards
Search
Any problem a computer can face to search for something
Solving Search Problems
Initial state, action, goal test, path cost function
Node
Data Points that connect
Stack
Last in first out
Frontier first
Explorer set next
Depth First Search
An algorithm that always explores the deepest node
Breadth-First Search
Like DFS but, uses a queue
Queue
First in First out
Greedy Best-First Search
Goes to the node closes to the goal h(n)
Heuristic
Estimating
Manhattan Distance
Counts how many blocks from point A to point B
A* Search formula
h(n) + g(n)
h(n)= steps to reach the node g(n) = estimated cost to reach the goal
A* Search formula
Search for the nodes with the lowest value
Adversarial Search
Is used in games with an enemy like Tic Tac Toe
changing the state of the problem every step in a direction you do not want. Where you don’t control the next state. The opponent will change the next state in a way: unpredictable.
Minimax
Translating the games into numbers and trying to get the best outcome