Docsity

Artificial Intelligence Course: Introduction to Search Algorithms, Slides of Artificial Intelligence

Partial preview of the text

Download Artificial Intelligence Course: Introduction to Search Algorithms and more Slides Artificial Intelligence in PDF only on Docsity!

Artificial Intelligence

Lesson 1

About

  • (^) Lecturers: Prof. Sarit Kraus, Mr. Ariel Rosenfeld

TA: Ariel Rosenfeld: [email protected]

  • (^) Write 89-570 in the header.

(almost) All you need can be found on the

course website:

  • (^) http://u.cs.biu.ac.il/~rosenfa5/

– Artificial Intelligence - a modern

approach (

rd

edition)

  • (^) How to get it?

Course Requirements 2

  • (^) Exercises are not hard, but work is required. Plan your time ahead!
  • (^) When sending me mail please include the course number (89-570) in the header , to pass the automatic spam filter.
  • (^) You will be required to participate in a few AI experiments. - (^) Chats. - (^) Lab experiments (e.g., robots). - (^) Participation is MANDATORY!

Course Schedule (Tentative)

  • (^) Lesson 1:
    • (^) Introduction
    • (^) Transferring a general problem to a graph search problem.
  • (^) Lesson 2
    • (^) Uninformed Search (BFS, DFS etc.).
  • (^) Lesson 3
    • (^) Informed Search (A*,Best-First-Search etc.).

Course Schedule – Cont.

Lesson 8-

  • (^) Planning: STRIPS algorithm

Lesson 10-11-

  • (^) Learning: Decision-Trees, Neural Network, Naïve Bayes, Bayesian Networks and more.
  • (^) Lesson 13: Robotics
  • (^) Lesson 14
  • (^) Questions and exercise.

AI – Alternative Definitions

  • (^) Elaine Rich and Kevin Knight: AI is the study of how to make computers do things at which, at the moment, people are better.
  • (^) Stuart Russell and Peter Norvig: [AI] has to do with smart programs, so let's get on and write some.
  • (^) Claudson Bornstein: AI is the science of common sense.
  • (^) Douglas Baker: AI is the attempt to make computers do what people think computers cannot do.
  • (^) Astro Teller: AI is the attempt to make computers do what they do in the movies.

Practical problems – Scheduling

http://www.airplanegame.us/air-traffic-chief-flig

ht-control-games/?

play=game

?So what is AI all about

We will talk about it in the lecture…

  • (^) But…

AI & Search

  • (^) "The two most fundamental concerns of AI researchers are knowledge representation and search”
  • (^) “knowledge representation … addresses the problem of capturing in a language…suitable for computer manipulation”
  • (^) “ Search is a problem-solving technique that systematically explores a space of problem states”.Luger, G.F. Artificial Intelligence: Structures and Strategies for Complex Problem Solving

Solving Problems with Search Algorithms

  • (^) Input: a problem P.
  • (^) Preprocessing:
    • (^) Define states and a state space
    • (^) Define Operators
    • (^) Define a start state and goal set of states.
  • (^) Processing:
    • (^) Activate a Search algorithm to find a path from start to one of the goal states.

Example - Missionaries & Cannibals

  • (^) State space – [M,C,B]
  • (^) Initial State – [3,3,1]
  • (^) Goal State – [0,0,0]
  • (^) Operators – adding or subtracting the

vectors [1,0,1], [2,0,1], [0,1,1], [0,2,1] or

[1,1,1]

  • (^) Path – moves from [3,3,1] to [0,0,0]
  • (^) Path Cost – river trips
  • (^) http://www.plastelina.net/game2.html
  • (^) http://www.youtube.com/watch?v=W9NEWxabGmg

…Let’s try a more difficult one

Breadth-First-Search Pseudo code

  • (^) Intuition: Treating the graph as a tree and scanning top- down.
  • (^) Algorithm: BFS (Graph graph, Node start, Vector Goals)
    1. L make_queue(start)
    2. While L not empty loop
      1. n  L.remove_front()
      2. If goal (n) return true
      3. S  successors (n)
      4. L.insert(S)
    3. Return false

Breadth-First-Search Attributes

  • (^) Completeness – yes
  • (^) Optimality – yes, if graph is un- weighted.
  • (^) Time Complexity:
  • (^) Memory Complexity:
    • (^) Where b is branching factor and d is the solution depth ( b  , d  ) ( ) d O b ( ) d O b