Ch 1, 2, 3 Flashcards
What is AI?
artificial Intelligence is the science of making machines do things that would require intelligence if done by humans
Turing Test
Imitation Game
If it can fool a human it is an AI
Objections to Turing
Machines don’t have a soul
Machines can’t do something surprising
Machines cannot like a taste or color
Weak AI
any system demonstrating intelligent behavior is AI, regardless of how it achieves its end.
Who supports Weak AI?
MIT
Who supports Strong AI?
Carnegie-Mellon
Strong AI?
A system should be based on the same methods of learning & cognition used by humans.
Why do people support weak AI?
Who cares how we get the answer. AI is used to solve difficult problems
Why do people support strong AI?
If it is ever made, it will be a jack of all trades type of solution. A solution for all problems. Also consciousness
What are AI today? Strong or weak?
Weak, there is no general purpose strong AI yet…
What is an Agent?
anything that can be viewed as perceiving its environment through sensors and acting on that environment through actuators
Percept
an agent’s perceptual input at a given point in time
Percept Sequence
complete history of all percepts
Agent Behavior
Agent Function - maps percepts or percept sequence to an action
Heuristics are ______ solutions
Greedy solutions that get the answer quickly rather than exactly the best one
How are heuristics used by AI?
- solving a simpler problem to get closer to answer
- working backward (two way search)
- identify similar solved problems and testing those solutions
- if we cannot find the solution can we get “closer” to the solution
Examples of AI
- Medical diagnosis
- using shopping history, what will the user most likely buy next?
- Chess player
Episodic vs Sequential. What does this mean to AI?
Does the agent need to remember the history of previous states. Does this decision affect future ones?
example - Winning a hand of poker has 0 impact on the cards you will get next hand. This would be episodic.
Static vs Dynamic
Does the environment change while the AI is making a decision?
Example of Static environment
Sudoku
Example of Semidynamic environment
Chess
Example of dynamic environment
Taxi driving
Types of environments for AI
Fully vs Partially Observable Single agent vs Multiagent Deterministic vs Stochastic (random) Episodic vs Sequential Static vs Dynamic Discrete vs Continous Known vs Unknown
Toughest type of AI environment
is partially observable, multiagent, stochastic, sequential, dynamic, continuous, and unknown
Example - Driving a rental car in a new country with unfamiliar geography and traffic laws can be… interesting
Types of search algorithms used by AI
Unguided and guided (blind vs heurtistics)
BFS
all paths of d1 tried then all paths of d2.
Disadvantages of BFS
storage can be high. if each state has n successors and searches to a depth d, the storage required is n^d
Advantage of BFS
finds an optimal solution as it will find the most shallow answer
DFS
go to the deepest path first.
Choose a path, follow it as far as possible; if goal not found, backtrack until some other choice could have been made, & try that
Advantage of DFS
Less storage required for searching than BFS
Disadvantage of DFS
Could find a less than optimal solution. (could have found the answer higher in tree but we have not checked it yet)
Iterative Deeping DFS
DFS to depth 1 down each path from root; then DFS to depth 2 down each path from root; then DFS to depth 3 down each path, etc.
Advantage of ID-DFS
Does not skip shallow solution. Lowers the cost of storage compared to BFS as it resets storage every traverse of a depth
Correct Algorithm
an algorithm is correct if it can find a valid solution
Complete Algoritm
an algorithm is complete if it can find every solution; either every solution that exists or every solution from a given start state
Optimal Algorithm
an algorithm is optimal if it find the best solution (lowest-cost, nearest, fastest route, etc..)
Optimally Efficient Algorithm
An algorithm is optimally efficient if it finds the solution as fast as any other algorithm (big o form)
Nonredundant Algorithm
an algorithm is nonredundant if any state rejected as a possible solution is not proposed again. (does not re check a possible solution if it has looked at it)
Informed Algorithm
an algorithm is informed if it is able to limit its proposals in some way rather than blindly generating every possible state. Heuristics….
Exhaustive enumeration
consists of generating all possibilities. Can lead to wasted effort. EXAMPLE If the first 2 queens we place are attacking each other, there’s no point in placing the other N-2.
What we learn from exhaustive enumeration
While generating a state, we should verify that the partially-constructed solution satisfies all constraints
Greedy algorithm
A greedy algorithm selects the path that looks ‘best’ based on local information. IE -We always select the lowest-cost choice we have that is valid