Artificial Intelligence

Similar documents
Solving problems by searching

Chapter 2. Blind Search 8/19/2017

CS 380: Artificial Intelligence Lecture #3

Solving problems by searching

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

HW#1 due today. HW#2 due Monday, 9/09/13, in class Continue reading Chapter 3

ARTIFICIAL INTELLIGENCE. Pathfinding and search

Lecture 3. Uninformed Search

Outline. Solving problems by searching. Problem-solving agents. Example: Romania

Uninformed search strategies (Section 3.4) Source: Fotolia

CS 8520: Artificial Intelligence

KI-Programmierung. Basic Search Algorithms

Solving problems by searching

Solving Problem by Searching. Chapter 3

Solving problems by searching

CS 4700: Foundations of Artificial Intelligence. Bart Selman. Search Techniques R&N: Chapter 3

Search Algorithms. Uninformed Blind search. Informed Heuristic search. Important concepts:

Uninformed Search strategies. AIMA sections 3.4,3.5

Basic Search. Fall Xin Yao. Artificial Intelligence: Basic Search

Chapter3. Problem-Solving Agents. Problem Solving Agents (cont.) Well-defined Problems and Solutions. Example Problems.

Uninformed search strategies

Problem solving and search

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search

Problem Solving and Search

Uninformed Search Methods

Solving Problems: Blind Search

Search EECS 395/495 Intro to Artificial Intelligence

Search EECS 348 Intro to Artificial Intelligence

Artificial Intelligence Problem Solving and Uninformed Search

CS486/686 Lecture Slides (c) 2015 P.Poupart

CS486/686 Lecture Slides (c) 2014 P.Poupart

ITCS 6150 Intelligent Systems. Lecture 3 Uninformed Searches

Solving problems by searching. Chapter 3

Chapter 3. A problem-solving agent is a kind of goal-based agent. It decide what to do by finding sequences of actions that lead to desirable states.

Multiagent Systems Problem Solving and Uninformed Search

CS 331: Artificial Intelligence Uninformed Search. Real World Search Problems

Chapter 3 Solving problems by searching

CS 331: Artificial Intelligence Uninformed Search. Real World Search Problems

UNINFORMED SEARCH. What to do if teammates drop? Still have 3 or more? No problem keep going. Have two or fewer and want to be merged?

Problem Solving as Search. CMPSCI 383 September 15, 2011

Uninformed (also called blind) search algorithms

Solving Problems by Searching

Solving Problems by Searching

AI: problem solving and search

A2 Uninformed Search

Example: The 8-puzzle. A2 Uninformed Search. It can be generalized to 15-puzzle, 24-puzzle, or. (n 2 1)-puzzle for n 6. Department of Computer Science

Uninformed Search. CS171, Winter 2018 Introduction to Artificial Intelligence Prof. Richard Lathrop. Reading: R&N

CS:4420 Artificial Intelligence

Artificial Intelligence: Search Part 1: Uninformed graph search

CS 331: Artificial Intelligence Uninformed Search. Leftovers from last time

Artificial Intelligence

Week 3: Path Search. COMP9414/ 9814/ 3411: Artificial Intelligence. Motivation. Example: Romania. Romania Street Map. Russell & Norvig, Chapter 3.

Uninformed Search. Problem-solving agents. Tree search algorithms. Single-State Problems

Lecture 4: Search 3. Victor R. Lesser. CMPSCI 683 Fall 2010

DFS. Depth-limited Search

Artificial Intelligence Uninformed search

Intelligent Agents. Foundations of Artificial Intelligence. Problem-Solving as Search. A Simple Reflex Agent. Agent with Model and Internal State

CS 151: Intelligent Agents, Problem Formulation and Search

Chapter 3: Solving Problems by Searching

Problem solving and search

S A E RC R H C I H NG N G IN N S T S A T T A E E G R G A R PH P S

Artificial Intelligence

4. Solving Problems by Searching

Uninformed Search Strategies AIMA 3.4

Ar#ficial)Intelligence!!

Problem Solving. Russell and Norvig: Chapter 3

CAP 4630 Artificial Intelligence

Search I. slides from: Padhraic Smyth, Bryan Low, S. Russell and P. Norvig

CSC 2114: Artificial Intelligence Search

Blind (Uninformed) Search (Where we systematically explore alternatives)

Solving Problems by Searching (Blindly)

Artificial Intelligence

Problem solving and search

Blind (Uninformed) Search (Where we systematically explore alternatives)

Chapter 4. Uninformed Search Strategies

Artificial Intelligence, CS, Nanjing University Spring, 2018, Yang Yu. Lecture 2: Search 1.

Uninformed Search. Reading: Chapter 4 (Tuesday, 2/5) HW#1 due next Tuesday

Uninformed Search B. Navigating through a search tree. Navigating through a search tree. Navigating through a search tree

521495A: Artificial Intelligence

Announcements. Project 0: Python Tutorial Due last night

Pengju XJTU 2016

Solving Problems by Searching

Problem solving and search: Chapter 3, Sections 1 5

Problem solving and search: Chapter 3, Sections 1 5

Artificial Intelligence

Uninformed Search Strategies AIMA

CS242 Uninformed Search

Topic 1 Uninformed Search

Uninformed Search B. Navigating through a search tree. Navigating through a search tree. Navigating through a search tree

Search : Lecture 2. September 9, 2003

Lecture 2: Fun with Search. Rachel Greenstadt CS 510, October 5, 2017

Problem solving and search

CPS 170: Artificial Intelligence Search

CS540 Uninformed Search

CMU-Q Lecture 2: Search problems Uninformed search. Teacher: Gianni A. Di Caro

CS 4100 // artificial intelligence

Solving Problems by Searching

COMP3702/7702 Artificial Intelligence Week2: Search (Russell & Norvig ch. 3)" Hanna Kurniawati"

Problem Solving & Heuristic Search

Problem solving and search

Transcription:

Artificial Intelligence Dr Ahmed Rafat Abas Computer Science Dept, Faculty of Computers and Informatics, Zagazig University arabas@zu.edu.eg http://www.arsaliem.faculty.zu.edu.eg/

Solving problems by searching Chapter 3

Uniform-cost search Expand least-cost unexpanded node Implementation: fringe = queue ordered by path cost Equivalent to breadth-first if step costs all equal Complete? Yes, if step cost ε Time? number of nodes with g cost of optimal solution, O(b ceiling(1+c*/ ε) ) where C * is the cost of the optimal solution Space? number of nodes with g cost of optimal solution, O(b ceiling(1+c*/ ε) ) Optimal? Yes nodes expanded in increasing order of g(n)

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue (stack), i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Depth-first search Expand deepest unexpanded node Implementation: fringe = LIFO queue, i.e., put successors at front

Properties of depth-first search Complete? No: fails in infinite-depth spaces and, spaces with loops Modify to avoid repeated states along path complete in finite spaces Time? O(b m ): terrible if m is much larger than d but if solutions are deep, may be much faster than breadth-first Space? O(bm), i.e., linear space! Optimal? No

Depth-limited search This strategy is similar to depth-first search with depth limit l, i.e., nodes at depth l have no successors Recursive implementation:

Iterative deepening search

Iterative deepening search l =0

Iterative deepening search l =1

Iterative deepening search l =2

Iterative deepening search l =3

Iterative deepening search Number of nodes generated in a depth-limited search to depth d with branching factor b: 2 d N 1 b b... b DLS Number of nodes generated in an iterative deepening search to depth d with branching factor b: N IDS ( d 1) b ( d) b For b = 10, d = 5, 0 1 ( d 1) b 2... (3) b N DLS = 1 + 10 + 100 + 1,000 + 10,000 + 100,000 = 111,111 N IDS = 6 + 50 + 400 + 3,000 + 20,000 + 100,000 = 123,456 d 2 (2) b d 1 (1) b d Overhead = (123,456-111,111)/111,111 = 11%

Properties of iterative deepening search Complete? Yes Time? (d+1)b 0 + d b 1 + (d-1)b 2 + + b d = O(b d ) Space? O(bd) Optimal? Yes, if step cost = 1 This strategy is preferred when there is a large search space and the depth of the solution is unknown.

Bidirectional search Consists of two simultaneous searches: One forward from the initial state The other backward from the goal It stops when the two searches meet in the middle. It is implemented by: having one or both of the searches check each node before it is expanded to see if it is in the fringe of the other search tree; if so, a solution is found.

Properties of the Bidirectional search Complete? Yes, if both searches are breadth-first with uniform step costs. Time? b 0 + b 1 + b 2 + + b d/2 = O(b d/2 ) Space? O(b d/2 ) Optimal? Yes, if both searches are breadth-first with uniform step costs. This strategy reduces time complexity, but it is not always applicable and may require too much space.

Comparing uninformed search strategies

Repeated states Failure to detect repeated states can turn a linear problem into an exponential one!

Graph search This strategy eliminates all duplicate states.