Representation  A farmer wants to move himself, a hunrgry silver fox, a hungry, fat goose, and a sack of tasty grain across a river. Unfortunately, his.

Slides:



Advertisements
Similar presentations
Negative Selection Algorithms at GECCO /22/2005.
Advertisements

Cooperating Intelligent Systems
Heuristic Search techniques
Traffic assignment.
AI Pathfinding Representing the Search Space
Problem Solving Well-formed predicate calculus expressions provide a means of describing objects and relations in a problem domain and inference rule.
Chapter 4 Distributed Bellman-Ford Routing
Midwestern State University Department of Computer Science Dr. Ranette Halverson CMPS 2433 – CHAPTER 4 GRAPHS 1.
Formal Description of a Problem
SEARCH APPLICATIONS David Kauchak CS30 – Spring 2015.
Chapter 4 Probability and Probability Distributions
CS 484 – Artificial Intelligence
Grade 10 Science Motion Unit.
State Spaces Introduction to Artificial Intelligence Dr. Robin Burke.
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 21: Graphs.
State-Space Searches. State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
CS292 Computational Vision and Language Pattern Recognition and Classification.
Artificial Intelligence
Toy Problem: Missionaries and Cannibals
CS 410 Applied Algorithms Applied Algorithms Lecture #3 Data Structures.
Problem solving by Searching Problem Formulation.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Intelligent agents Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance.
Introduction to Artificial Intelligence Problem Solving Ruth Bergman Fall 2002.
Intelligent agents Intelligent agents are supposed to act in such a way that the environment goes through a sequence of states that maximizes the performance.
Artificial Intelligence  What is AI?  The study of computations that make it possible to PERCEIVE, REASON, and ACT  Computing, perceiving, reasoning,
Dr Eleni Mangina – COURSE: LOGIC PROGRAMMING (during a joint degree with Fudan University in Software Engineering) DEPT. OF COMPUTER SCIENCE UCD Problem.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
Problem solving in state spaces State representation and the problem solving agent algorithm.
Artificial Intelligence Problem solving by searching CSC 361 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
State-Space Searches. 2 State spaces A state space consists of –A (possibly infinite) set of states The start state represents the initial problem Each.
1 Problem Solving We view many situations in life as problems we need to solve Also, much of human behavior can be considered problem solving, even if.
Solving Problems by Searching
State-Space Searches.
Artificial Intelligence Course outline Introduction Problem solving Generic algorithms Knowledge Representation and Reasoning Expert Systems Uncertainty.
Motion 11.2 Speed and Velocity
Introduction to Artificial Intelligence
Why does it matter to us?.  You have a question in front of you.  Read the question.  Decide (in your head) if it is DOK 1,2,3. Don’t tell anyone.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
Chapter 2 Graph Algorithms.
Formal Description of a Problem In AI, we will formally define a problem as –a space of all possible configurations where each configuration is called.
© 2006 Pearson Addison-Wesley. All rights reserved14 A-1 Chapter 14 Graphs.
Knowledge Representation CPTR 314. The need of a Good Representation  The representation that is used to represent a problem is very important  The.
Unit 1: Basics // Metrics & Matter Aim: How can we apply the Scientific Method? Do Now: Solve the farmer’s dilemma. (5 minutes) Monday, September 8, 2014.
CS 200 Algorithms and Data Structures
State-Space Searches. 2 State spaces A state space consists of A (possibly infinite) set of states The start state represents the initial problem Each.
Graphs. Made up of vertices and arcs Digraph (directed graph) –All arcs have arrows that give direction –You can only traverse the graph in the direction.
Grade 10 Science Motion Unit. Significant Digits The correct way to record measurements is: The correct way to record measurements is: Record all those.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
1 Solving Problems by Searching. 2 Terminology State State Space Goal Action Cost State Change Function Problem-Solving Agent State-Space Search.
© 2006 Pearson Addison-Wesley. All rights reserved 14 A-1 Chapter 14 Graphs.
Templates of slides for P2 1. A very brief refresher of your problem Describe in English -what artifacts (programs, etc) you wish to synthesize, -from.
Knowledge Representation Fall 2013 COMP3710 Artificial Intelligence Computing Science Thompson Rivers University.
1/16 Problem solving by Searching Problem Formulation.
Search as a problem solving technique. Consider an AI program that is capable of formulating a desired goal based on the analysis of the current world.
1 Chapter 3 Knowledge Representation. 2 Chapter 3 Contents l The need for a good representation l Semantic nets l Inheritance l Frames l Object oriented.
90-723: Data Structures and Algorithms for Information Processing Copyright © 1999, Carnegie Mellon. All Rights Reserved. 1 Lecture 7: Graphs Data Structures.
G5AIAI Introduction to AI
Knowledge Representation & Logic
Knowledge Representation
Data Structures Graphs - Terminology
Problem solving by Searching
Chapter 14 Graphs © 2006 Pearson Addison-Wesley. All rights reserved.
Knowledge Representation
State-Space Searches.
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
State-Space Searches.
Two – One Problem Legal Moves: Slide Rules: 1s’ move right Hop
State-Space Searches.
Problem Solving by Searching Search Methods :
Presentation transcript:

Representation  A farmer wants to move himself, a hunrgry silver fox, a hungry, fat goose, and a sack of tasty grain across a river. Unfortunately, his boat is so tiny he can move only one of his possessions across on any trip. What is he to do?

Fox, Farmer, Goose, Grain  5 minute break for solving the problem  Keep track of how you solve the problem (think about how you think to solve the problem)

Representation  Look at the representation in figure 2.1.  Graph like representation  Nodes: A safe distribution of entities on both banks of the river  Edges: connect nodes separated by a single boat trip  Solution: draw a line from start state to end state

Analysis  How many nodes?  How many safe nodes?  How many links?  How many legal links?

Representation is key  Node/Link representation is good  Once represented using nodes and links, problem is simple to solve

Representation  A lexical part: What symbols are allowed in your vocabulary/lexicon  A structural part: constraints on how symbols can be arranged  A procedural part: access procedures to create, modify descriptions  A semantic part: associates meaning with description

Semantic Nets  Lexical: Nodes, links, and app-specific link labels  Structural: Each link connects a tail node to a head node  Semantic: Nodes and links denote application specific entities  Procedural: node, link constructors, readers/visitors to traverse the net

Good Representations  Example of a good representation in object identification  Identify an object as belonging to a class  Basic Method: Describe and Match Describe Object (using a “good” representation) Match to library of object descriptions Return closest match

Object Identification  Feature based object identification Feature extractor, extracts easily identifiable object features (area, perimeter, hole count, hole area, …) Values of these features locate the object in an n- dimensional feature space (an object occupies a feature point in feature space) Compare the distance of unknown object’s feature point to library of known (idealized) object’s feature points. The most likely identity is determined by smallest distance.

Administrivia  Read Chapters 1 and 2  Assignment 1 considers Missionaries and Cannibals is available, due Feb 4.  Back of book contains hints  Need help, talk to me

3 Missionaries 3 Cannibals  Three cannibals and three missionaries are standing on the west bank of a river. A boat is available that will hold either one or two people. If the missionaries are ever outnumbered -- on either bank or in the boat -- the cannibals will eat them. Your job is to design a program (come up with a representation and implement a search algorithm) that will get everyone across the river to the east bank safely.

Burglar and combination lock  Generate a combination  Test if it opens the safe  Consider 6 digit combination 10^6 combinations 10^6/2 combinations on average to find correct combination, 3/min  16, 24 hr weeks

Generate and Test  Powerful problem solving method  Until a satisfactory solution is found or no more solutions can be generated Generate the candidate solution Test the candidate solution  If an acceptable solution is found, announce it; otherwise announce failure

Dendral  Good generator – complete, nonredundant, only generates structures arising from known formula  Tester – Spectrogram comparator

Terminology  State (of a system): Description of a system that is sufficient to determine the future  State space: Each node denotes a state, and each link denotes a possible one-step transition from one state to another

State Space  A state space is a representation That is a semantic net In which Nodes denote states Links denote transitions between states  Initial state, current state, goal state