Artificial Intelligence Lecture

Slides:



Advertisements
Similar presentations
BEST FIRST SEARCH - BeFS
Advertisements

Artificial Intelligence
Heuristic Search techniques
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Traveling Salesperson Problem
October 1, 2012Introduction to Artificial Intelligence Lecture 8: Search in State Spaces II 1 A General Backtracking Algorithm Let us say that we can formulate.
CMSC 471 Spring 2014 Class #4 Thu 2/6/14 Uninformed Search Professor Marie desJardins,
Branch & Bound Algorithms
CS 484 – Artificial Intelligence1 Announcements Department Picnic: today, after class Lab 0 due today Homework 2 due Tuesday, 9/18 Lab 1 due Thursday,
CSC 423 ARTIFICIAL INTELLIGENCE
Artificial Intelligence Lecture No. 7 Dr. Asad Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Lecture 3 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
Mahgul Gulzai Moomal Umer Rabail Hafeez
1 Using Search in Problem Solving Part II. 2 Basic Concepts Basic concepts: Initial state Goal/Target state Intermediate states Path from the initial.
A* Search Introduction to AI. What is an A* Search? A greedy search method minimizes the cost to the goal by using an heuristic function, h(n). It works.
MAE 552 – Heuristic Optimization Lecture 27 April 3, 2002
Find a Path s A D B E C F G Heuristically Informed Methods  Which node do I expand next?  What information can I use to guide this.
Using Search in Problem Solving
Intelligent Agents What is the basic framework we use to construct intelligent programs?
Uninformed Search Reading: Chapter 3 by today, Chapter by Wednesday, 9/12 Homework #2 will be given out on Wednesday DID YOU TURN IN YOUR SURVEY?
Using Search in Problem Solving
5-1 Chapter 5 Tree Searching Strategies. 5-2 Breadth-first search (BFS) 8-puzzle problem The breadth-first search uses a queue to hold all expanded nodes.
Informed Search Next time: Search Application Reading: Machine Translation paper under Links Username and password will be mailed to class.
Informed Search Strategies
Problem Solving and Search Andrea Danyluk September 11, 2013.
Vilalta&Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Artificial Intelligence LECTURE 3 ARTIFICIAL INTELLIGENCE LECTURES BY ENGR. QAZI ZIA 1.
1 SCCS451 Artificial Intelligence Asst. Prof. Dr. Sukanya Pongsuparb Dr. Srisupa Palakvangsa Na Ayudhya Dr. Benjarath Pupacdi.
Dr.Abeer Mahmoud ARTIFICIAL INTELLIGENCE (CS 461D) Dr. Abeer Mahmoud Computer science Department Princess Nora University Faculty of Computer & Information.
A RTIFICIAL I NTELLIGENCE UNIT : 2 Search Techniques.
Informed Search Methods. Informed Search  Uninformed searches  easy  but very inefficient in most cases of huge search tree  Informed searches  uses.
Informed Search Strategies Lecture # 8 & 9. Outline 2 Best-first search Greedy best-first search A * search Heuristics.
For Friday Finish reading chapter 4 Homework: –Lisp handout 4.
For Monday Read chapter 4, section 1 No homework..
Lecture 3: Uninformed Search
1 Solving problems by searching 171, Class 2 Chapter 3.
Search CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Advanced Artificial Intelligence Lecture 2: Search.
For Wednesday Read chapter 6, sections 1-3 Homework: –Chapter 4, exercise 1.
For Wednesday Read chapter 5, sections 1-4 Homework: –Chapter 3, exercise 23. Then do the exercise again, but use greedy heuristic search instead of A*
Princess Nora University Artificial Intelligence Chapter (4) Informed search algorithms 1.
Artificial Intelligence University Politehnica of Bucharest Adina Magda Florea
Search (continued) CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Informed Search Reading: Chapter 4.5 HW #1 out today, due Sept 26th.
Heuristic Search Foundations of Artificial Intelligence.
Searching for Solutions
CSCE350 Algorithms and Data Structure Lecture 21 Jianjun Hu Department of Computer Science and Engineering University of South Carolina
3.5 Informed (Heuristic) Searches This section show how an informed search strategy can find solution more efficiently than uninformed strategy. Best-first.
Artificial Intelligence Lecture No. 8 Dr. Asad Ali Safi ​ Assistant Professor, Department of Computer Science, COMSATS Institute of Information Technology.
Best-first search is a search algorithm which explores a graph by expanding the most promising node chosen according to a specified rule.
July 6, 2016Knowledge-Based System, Lecturer # 09 1 Knowledge Based System Lecture #09 Dr. Md. Hasanuzzaman Assistant Professor Department of Computer.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Artificial Intelligence Solving problems by searching.
Chapter 3.5 Heuristic Search. Learning Objectives Heuristic search strategies –Best-first search –A* algorithm Heuristic functions.
Eick: Informed Search Informed Search and Exploration Search Strategies Heuristic Functions Local Search Algorithms Vilalta&Eick: Informed Search.
Dept. Computer Science, Korea Univ. Intelligent Information System Lab A I (Artificial Intelligence) Professor I. J. Chung.
Lecture 3: Uninformed Search
CSCI 4310 Lecture 10: Local Search Algorithms
Department of Computer Science
Informed Search and Exploration
Artificial Intelligence Problem solving by searching CSC 361
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Heuristic search INT 404.
Lecture 8 Heuristic search Motivational video Assignment 2
Informed search algorithms
BEST FIRST SEARCH -OR Graph -A* Search -Agenda Search CSE 402
Chap 4: Searching Techniques
CMSC 471 Fall 2011 Class #4 Tue 9/13/11 Uninformed Search
Reading: Chapter 4.5 HW#2 out today, due Oct 5th
Lecture 4: Tree Search Strategies
Presentation transcript:

Artificial Intelligence Lecture Md. Morshedul Islam Assistant Professor Department of Computer Science & Engineering Bangladesh University of Business and Technology (BUBT) April 15, 2017 Artificial Intelligence, Lecturer #13

Artificial Intelligence, Lecturer #13 Contents Informed Search Strategies Heuristic Information Hill Climbing Methods Best-First Search, etc. April 15, 2017 Artificial Intelligence, Lecturer #13

Informed Search Strategies Informed search algorithm have some idea of where to look for solutions. This uses problem specific knowledge and can find solutions more efficiently than uninformed search. These strategies often depend on the use of heuristic information (heuristic search function). Heuristic search function h(n), is estimated cost of the cheapest path from node n to goal node. April 15, 2017 Artificial Intelligence, Lecturer #13

Heuristic Information (1/2) Information about the problem: The nature of the states The cost of transforming from one state to another The promise of taking certain path The characteristics of the goals This information can often be expressed in the form of heuristic evaluation function f(n,g), a function of the node n and/or the goal g. April 15, 2017 Artificial Intelligence, Lecturer #13

Heuristic Information (2/2) Heuristics play an important role in search strategies because of the exponential nature of most problems. These help to reduce the number of alternatives from an exponential number to a polynomial number and thereby obtain a solution in a tolerable amount of time. April 15, 2017 Artificial Intelligence, Lecturer #13

Heuristic Search: Example Traveling salesman problem (Minimal distance tour): n-cities with path connecting the cities. A tour is any path which, begins with some starting city, visits each of the other cities exactly once, and returns to the starting city. A simple heuristic for choosing the next city at any point in a tour is one which picks the nearest unvisited neighbor. This policy gives no guarantee of an optimal solutions, but its solution is often good. Time required for this search is O(n2) [Normally exponential] April 15, 2017 Artificial Intelligence, Lecturer #13

Hill Climbing Methods (1/2) Hill climbing is like depth-first searching where the most promising child is selected for expansion. This method requires that some information be available with which to evaluate and order the most promising choices. At each point of the search path, a successor node that appears to lead most quickly to the top of the hill (goal) is selected for expansion. April 15, 2017 Artificial Intelligence, Lecturer #13

Hill Climbing Methods (2/2) When the children have been generated, alternative choices are evaluated using some type of heuristic function. The path that appears most promising is then chosen and no further reference to the parent or other children is retained. This process continues from node to node with previously expanded nodes being discarded. It terminates when it reaches a ‘peak’ where no neighbor has a higher value. April 15, 2017 Artificial Intelligence, Lecturer #13

Hill Climbing Methods: An Example 21 9 19 16 S 28 24 18 11 22 20 23 27 25 April 15, 2017 Artificial Intelligence, Lecturer #13

Hill Climbing Methods: Advantages & Disadvantages Save spaces: The algorithm does not maintain a search tree, so the current node data structure need only record the state and its objective function value. Disadvantages: Foothill trap: it occurs when local maxima or picks are found (Global maximum??). Ridge trap: It occurs when several adjoining nodes have higher values than surrounding nodes. Plateau trap: It occurs when all neighboring nodes have the same values. April 15, 2017 Artificial Intelligence, Lecturer #13

Artificial Intelligence, Lecturer #13 Best-First Search (1/2) Uses heuristic information to select most promising paths to goal node. Unlike hill climbing, this algorithm retains all estimates computed for previously generated nodes and makes its selection based on the best among them all. At any point in the search process, best-first moves forward from the most promising of all the nodes generated so far. April 15, 2017 Artificial Intelligence, Lecturer #13

Best-First Search (2/2) Algorithm Step-1: Place the starting node s on the queue Step-2: If the queue is empty, return failure and stop. Step-3: If the first element on the queue is a goal node g, return success and stop, Otherwise, Step-4: Remove first element from the queue, expand it and compute the estimated goal distances for each child. Place the children on the queue and arrange all queue elements in ascending order corresponding to goal distance from the front of the queue. Step-5: Return to step 2. April 15, 2017 Artificial Intelligence, Lecturer #13

Best-First Search: An Example L1: S20, S22, S28 18 16 15 S 12 28 22 20 10 8 2 25 5 L2: S35, S36, S38 L3: S40, S45 g April 15, 2017 Artificial Intelligence, Lecturer #13

Best-First Search: Advantages and Disadvantages If the evaluation function is accurate, then this will indeed be the best node. Its overcome the problem that occurs in hill climbing search Disadvantages: If the evaluation function will sometimes off , then this will lead the search astray. It is not optimal Note: Best-first search known as greedy best-first search April 15, 2017 Artificial Intelligence, Lecturer #13

Recommended Textbooks [Negnevitsky, 2001] M. Negnevitsky “ Artificial Intelligence: A guide to Intelligent Systems”, Pearson Education Limited, England, 2002. [Russel, 2003] S. Russell and P. Norvig Artificial Intelligence: A Modern Approach Prentice Hall, 2003, Second Edition [Patterson, 1990] D. W. Patterson, “Introduction to Artificial Intelligence and Expert Systems”, Prentice-Hall Inc., Englewood Cliffs, N.J, USA, 1990. [Minsky, 1974] M. Minsky “A Framework for Representing Knowledge”, MIT-AI Laboratory Memo 306, 1974. April 15, 2017 Artificial Intelligence, Lecturer #13

Questions or Suggestions? End of Presentation Questions or Suggestions? Thanks to all !!! April 15, 2017 Artificial Intelligence, Lecturer #13