CIS 192: Artificial Intelligence. Search and Constraint Satisfaction Alex Frias Nov. 30 th

Similar documents
Search. CS 3793/5233 Artificial Intelligence Search 1

Artificial Intelligence

University of Waterloo Department of Electrical and Computer Engineering ECE 457A: Cooperative and Adaptive Algorithms Midterm Examination

A* Optimality CS4804

Search: Advanced Topics and Conclusion

Downloaded from ioenotes.edu.np

Search: Advanced Topics and Conclusion

Artificial Intelligence

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

Informed search strategies (Section ) Source: Fotolia

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

Exam Topics. Search in Discrete State Spaces. What is intelligence? Adversarial Search. Which Algorithm? 6/1/2012

CS-171, Intro to A.I. Mid-term Exam Fall Quarter, 2013

State Spaces

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

Problem Solving and Search

CS 188: Artificial Intelligence. Recap Search I

Potential Midterm Exam Questions

INTRODUCTION TO HEURISTIC SEARCH

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

CS W4701 Artificial Intelligence

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

DFS. Depth-limited Search

Route planning / Search Movement Group behavior Decision making

Artificial Intelligence (part 4c) Strategies for State Space Search. (Informed..Heuristic search)

Lecture 5 Heuristics. Last Time: A* Search

(Due to rounding, values below may be only approximate estimates.) We will supply these numbers as they become available.

SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY REPRESENTATION OF KNOWLEDGE PART A

Uninformed search strategies (Section 3.4) Source: Fotolia

Artificial Intelligence

What is Search For? CSE 473: Artificial Intelligence. Example: N-Queens. Example: N-Queens. Example: Map-Coloring 4/7/17

Searching: Where it all begins...

Today s s lecture. Lecture 3: Search - 2. Problem Solving by Search. Agent vs. Conventional AI View. Victor R. Lesser. CMPSCI 683 Fall 2004

Review Adversarial (Game) Search ( ) Review Constraint Satisfaction ( ) Please review your quizzes and old CS-271 tests

Question 1: 25% of students lost more than 2 points Question 2: 50% of students lost 2-4 points; 50% got it entirely correct Question 3: 95% of

Announcements. CS 188: Artificial Intelligence Spring Today. A* Review. Consistency. A* Graph Search Gone Wrong

521495A: Artificial Intelligence

Problem Solving & Heuristic Search

Uninformed Search Strategies

Informed Search Methods

Midterm Examination CS540-2: Introduction to Artificial Intelligence

CSE 473. Chapter 4 Informed Search. CSE AI Faculty. Last Time. Blind Search BFS UC-BFS DFS DLS Iterative Deepening Bidirectional Search

CS 5522: Artificial Intelligence II

Searching. Assume goal- or utilitybased. Next task to achieve is to determine the best path to the goal

AI: Week 2. Tom Henderson. Fall 2014 CS 5300

Expert Systems (Graz) Heuristic Search (Klagenfurt) - Search -

Announcements. CS 188: Artificial Intelligence Fall 2010

Wissensverarbeitung. - Search - Alexander Felfernig und Gerald Steinbauer Institut für Softwaretechnologie Inffeldgasse 16b/2 A-8010 Graz Austria

search, DFS & BrFS; cycle checking & MPC arc costs; heuristics; LCFS, BeFS, A* misc: iterative deepening, etc.

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 23 January, 2018

Problem Solving and Search. Geraint A. Wiggins Professor of Computational Creativity Department of Computer Science Vrije Universiteit Brussel

Outline. Best-first search

Branch & Bound (B&B) and Constraint Satisfaction Problems (CSPs)

Heuristic Search and Advanced Methods

CS 520: Introduction to Artificial Intelligence. Lectures on Search

Search. (Textbook Chpt ) Computer Science cpsc322, Lecture 2. May, 10, CPSC 322, Lecture 2 Slide 1

Chapters 3-5 Problem Solving using Search

Problem Spaces & Search CSE 473

Informed Search CS457 David Kauchak Fall 2011

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

6.034 Quiz 1, Spring 2004 Solutions

ARTIFICIAL INTELLIGENCE (CSC9YE ) LECTURES 2 AND 3: PROBLEM SOLVING

Lecture 9. Heuristic search, continued. CS-424 Gregory Dudek

Artificial Intelligence

Probabilistic Belief. Adversarial Search. Heuristic Search. Planning. Probabilistic Reasoning. CSPs. Learning CS121

Solving Problems by Searching

What is Search For? CS 188: Artificial Intelligence. Example: Map Coloring. Example: N-Queens. Example: N-Queens. Constraint Satisfaction Problems

CSCI-630 Foundations of Intelligent Systems Fall 2015, Prof. Zanibbi

CS 343: Artificial Intelligence

Set 2: State-spaces and Uninformed Search. ICS 271 Fall 2015 Kalev Kask

What is Search For? CS 188: Artificial Intelligence. Constraint Satisfaction Problems

Informed Search A* Algorithm

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search

CAP 4630 Artificial Intelligence

CS 343: Artificial Intelligence

Outline. Best-first search

Search EECS 348 Intro to Artificial Intelligence

Search EECS 395/495 Intro to Artificial Intelligence

CSE 473: Artificial Intelligence

Downloded from: CSITauthority.blogspot.com

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?

CS 416, Artificial Intelligence Midterm Examination Fall 2004

Uninformed Search. Chapter 3

Outline. Informed Search. Recall: Uninformed Search. An Idea. Heuristics Informed search techniques More on heuristics Iterative improvement

Efficient memory-bounded search methods

AGENTS AND ENVIRONMENTS. What is AI in reality?

Artificial Intelligence Informed search. Peter Antal Tadeusz Dobrowiecki

Uninformed Search. (Textbook Chpt 3.5) Computer Science cpsc322, Lecture 5. May 18, CPSC 322, Lecture 5 Slide 1

Why Search. Things to consider. Example, a holiday in Jamaica. CSE 3401: Intro to Artificial Intelligence Uninformed Search

AGENTS AND ENVIRONMENTS. What is AI in reality?

Uniformed Search (cont.)

Midterm Examination CS 540-2: Introduction to Artificial Intelligence

CS 540: Introduction to Artificial Intelligence

CS-171, Intro to A.I. Mid-term Exam Winter Quarter, 2016

Announcements. Homework 4. Project 3. Due tonight at 11:59pm. Due 3/8 at 4:00pm

CSEP 573: Artificial Intelligence

Outline. Best-first search

Outline for today s lecture. Informed Search I. One issue: How to search backwards? Very briefly: Bidirectional search. Outline for today s lecture

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

Games and Adversarial Search II Alpha-Beta Pruning (AIMA 5.3)

Transcription:

CIS 192: Artificial Intelligence Search and Constraint Satisfaction Alex Frias Nov. 30 th

What is AI? Designing computer programs to complete tasks that are thought to require intelligence 4 categories Think like a human Act like a human Think rationally Act rationally

Creating Agents that Act Rationally What is an agent? Anything that perceives its environment and acts upon it Want the program to maximize some goal i.e. win a game, solve a puzzle, drive a car Agent perceives its environment, and a function acts upon precepts it receives

DARPA Grand Challenge Race by autonomous cars across 150-mile desert Held in 2004, 2005, and 2012 Urban Challenge In 2004, farthest car got 7.32 miles In 2005, 5 cars completed the course How do the cars see the road and know where to go?

Search Problems AI problems involving searching a search space for solution Examples: Shortest path Driving a car (computer vision) Parsing grammar Scheduling (Hubble telescope)

Finding the fastest route Google Maps: Want to find the fastest route from start to end point Challenges: Need to formulate search space Need to represent routes Need to find the optimal path

How to solve search problems Formal math definitions: States, actions, transitions, path costs, goal tests Generally: Formulate problem, set goal, search for solution Need to find optimal path, not just any path Solution: Graph Search

Graph Search Why do we have an explored set? Greatly reduce the search space since we don t want to go backwards Increases memory usage, however Type of search is dependent on how we remove nodes from the frontier

BFS vs. DFS vs. Iterative Deepening BFS: Complete, optimal, O(b^d) time and space DFS: Not complete, not optimal, only O(bm) space Iterative Deepening DFS: Counter-intuitive Complete, optimal, only O(bd) space d is depth of solution, b is branching factor, and m is maximum possible depth

Uniform Cost Search So far, we ve assumed uniform path costs Uniform Cost Search (UCS) is used when paths do not have a uniform cost (it s a bad name) Similar to graph search, but use priority queue to order nodes by path cost Remove the node with the shortest path cost next Python has a PriorityQueue implementation in the queue class Need to store a tuple of (path cost, (current state, path)) in the priority queue

Informed Search Why should we search the entire search space if we know some parts are bad? E.g. Why would we search backwards paths unless we have to? Use heuristics to only search the promising paths Leads us to the A* algorithm

A* Best known informed search algorithm Simple idea: F(n) = g(n) + h(n) We order priority queue on F(n) g(n) is the path cost so far h(n) is the heuristic of future cost h(n) must never overestimate the distance to the goal Code is basically the same as UCS http://www.algomation.com/player?algorithm=545ec2 9d01f03a02007b101d

Constraint Satisfaction Idea: Why bother searching when we can eliminate bad paths from the start? i.e. If we know that placing a 3 in Sudoku would be wrong, why bother searching those paths with a 3 for a solution? Constraint Satisfaction Problems consist of: A set of variables A domain for each variable A set of constraints

Examples: Sudoku and Map Coloring

AC-3 Idea: Constraint Propagation/Inference Arc a constraint between two variables Arc-Consistency Idea: If a value for a variable gives another variable no possible values, this cannot possibly be a solution, so we can stop there We can now propagate these constraints as we pick more values

AC-3: Steps Formulate all of the constraints, and add them to a queue Get a two variables from the queue Remove any inconsistent values between those variables An inconsistent value is one that leaves another variable with no possible values Add all of the neighboring constraints to the queue to recheck Repeat until solution

Advanced Topics Searching advanced spaces Hill-climbing and Simulated Annealing Genetic Algorithms Games Designing AI to play against an opponent Alpha-Beta Pruning Natural Language Processing Naïve Bayes Hidden Markov Models

If you re interested in more, check out CIS 421/521 in the Fall!