Assignment 2 (from last week) This is a pen-and-paper exercise, done in the same groups as for Practical 1 Your answer can be typeset or hand-written There.

Slides:



Advertisements
Similar presentations
Formal Description of a Problem
Advertisements

Lecture 8: Informed Search Dr John Levine Algorithms and Complexity February 27th 2006.
Blind Search1 Solving problems by searching Chapter 3.
1 Tree Searching Strategies Updated: 2010/12/27. 2 The procedure of solving many problems may be represented by trees. Therefore the solving of these.
Structures and Strategies For Space State Search
CSC 423 ARTIFICIAL INTELLIGENCE
Lecture 3 Note: Some slides and/or pictures are adapted from Lecture slides / Books of Dr Zafar Alvi. Text Book - Aritificial Intelligence Illuminated.
CS 380: Artificial Intelligence Lecture #3 William Regli.
CPSC 322 Introduction to Artificial Intelligence October 25, 2004.
1 Using Search in Problem Solving Part II. 2 Basic Concepts Basic concepts: Initial state Goal/Target state Intermediate states Path from the initial.
Using Search in Problem Solving
Artificial Intelligence
Toy Problem: Missionaries and Cannibals
Artificial Intelligence Course review AIMA. Four main themes Problem solving by search Uninformed search Informed search Constraint satisfaction Adversarial.
Cooperating Intelligent Systems Course review AIMA.
1 Solving Problems by Searching. 2 Terminology State State Space Initial State Goal Test Action Step Cost Path Cost State Change Function State-Space.
Artificial Intelligence Problem solving by searching CSC 361 Prof. Mohamed Batouche Computer Science Department CCIS – King Saud University Riyadh, Saudi.
Artificial Intelligence Problem solving by searching CSC 361
Using Reduction for the Game of NIM. At each turn, a player chooses one pile and removes some sticks. The player who takes the last stick wins. Problem:
Today’s quiz on 8.2 B Graphing Worksheet 2 will be given at the end of class. You will have 12 minutes to complete this quiz, which will consist of one.
For Friday Finish chapter 3 Homework: –Chapter 3, exercise 6 –May be done in groups. –Clarification on part d: an “action” must be running the program.
Solving Problems by Searching
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials. Today’s daily 5-minute quiz will be given.
Kim Moore, Program Manager Dr. Tonya Jeffery, Co-PI.
3.0 State Space Representation of Problems 3.1 Graphs 3.2 Formulating Search Problems 3.3 The 8-Puzzle as an example 3.4 State Space Representation using.
CPSC 322 Introduction to Artificial Intelligence November 12, 2004.
1 State Space of a Problem Lecture 03 ITS033 – Programming & Algorithms Asst. Prof.
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.
Agents that can play multi-player games. Recall: Single-player, fully-observable, deterministic game agents An agent that plays Peg Solitaire involves.
Module 1- Getting Started Tell me what to do Using sets of instructions…
1 CO Games Development 1 Week 11 Search Methods Gareth Bellaby.
Lecture 6: Problem Solving Dr John Levine Algorithms and Complexity February 10th 2006.
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.
Problem-Solving by Searching Uninformed (Blind) Search Algorithms.
Structures and Strategies For Space State Search
Bell Work Copy the Diamond Problems below onto your paper.  Then use the pattern you discovered to complete each one. 
AI in game (II) 권태경 Fall, outline Problem-solving agent Search.
Lecture 7: Uninformed Search Dr John Levine Algorithms and Complexity February 13th 2006.
Search exploring the consequences of possible actions.
Search exploring the consequences of possible actions.
Today’s Topics Playing Deterministic (no Dice, etc) Games –Mini-max –  -  pruning –ML and games? 1997: Computer Chess Player (IBM’s Deep Blue) Beat Human.
For Friday Read chapter 4, sections 1 and 2 Homework –Chapter 3, exercise 7 –May be done in groups.
Geometric Sequences & Series This chapter focuses on how to use find terms of a geometric sequence or series, find the sum of finite and infinite geometric.
Solving problems by searching 1. Outline Problem formulation Example problems Basic search algorithms 2.
Teaching Through Problem Solving
Problem Solving as Search. Problem Types Deterministic, fully observable  single-state problem Non-observable  conformant problem Nondeterministic and/or.
1 Solving Problems by Searching. 2 Terminology State State Space Goal Action Cost State Change Function Problem-Solving Agent State-Space Search.
CS 173, Lecture B Tandy Warnow. Topics for today Reminder about Examlet on Tuesday My office hours next week: –Tuesday 2-3 PM and Thursday 3-4 PM Office.
Please close your laptops and turn off and put away your cell phones, and get out your note-taking materials.
STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH 3 3.0Introduction 3.1Graph Theory 3.2Strategies for State Space Search 3.3Using the State Space to Represent.
Ch. 3 – Search Supplemental slides for CSE 327 Prof. Jeff Heflin.
CPSC 203 Introduction to Computers Lab 39, 40 By Jie (Jeff) Gao.
G5AIAI Introduction to AI
Search Part I Introduction Solutions and Performance Uninformed Search Strategies Avoiding Repeated States Partial Information Summary.
Lecture 2: Problem Solving using State Space Representation CS 271: Fall, 2008.
Artificial Intelligence Solving problems by searching.
ARTIFICIAL INTELLIGENCE
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
9.3 Nim Game (Game with matches)
Problem solving by Searching
David Kauchak CS52 – Spring 2016
CSPs: Search and Arc Consistency Computer Science cpsc322, Lecture 12
Computational Thinking
Artificial Intelligence Problem solving by searching CSC 361
Problem Solving by Searching Search Methods :
G51IAI Introduction to AI
ARTIFICIAL INTELLIGENCE
CS51A David Kauchak Spring 2019
Problem Solving by Searching Search Methods :
Unit II Game Playing.
Presentation transcript:

Assignment 2 (from last week) This is a pen-and-paper exercise, done in the same groups as for Practical 1 Your answer can be typeset or hand-written There are three questions on searching, covering material from Lectures 6, 7 and 8 (search) Deadline: 5pm, Monday 20th March 2006 Please hand in a printed or hand-written copy to my office (L13.21)

Question 1 Consider the following puzzle. You have 8 sticks, lined up as shown below. By moving exactly 4 sticks you are to achieve the configuration shown at (b). (a) (b)

Question 1 Each move consists of picking up a stick, jumping over exactly two other sticks, and then putting it down onto a fourth stick. In the figure below, stick e could be moved onto stick b or h, whereas stick f cannot move at all: a b c d e f g h

Question 1 a.Decide on a notation for representing states which you could use in state space search. b.Using this notation, map out the search space (states which are essentially identical due to symmetry need not be included). c.Apply the uninformed search algorithms (depth-first and breadth-first search) to the search tree. How many nodes do they search? How large does the agenda grow for each form of search? d.Why is the problem solved so much more easily if you search backwards from the goal state?

Question 2 A farmer needs to get a fox, a chicken and some corn across a river using a boat. The boat is small and leaky and can only take the farmer and one item of cargo. If the farmer leaves the fox and the chicken together, the fox will eat the chicken. If the farmer leaves the chicken and corn together, the chicken will eat the corn. Leaving the fox and corn together is fine. How can the farmer get all three items across the river?

Question 2 a.Decide on a notation for representing states which you could use in state space search. b.Give details of all the move operators for the search. Make sure that the operators only allow legal moves (i.e. ones which are physically possible and result in states in which no item of cargo gets eaten). c.Using your representation and operators, map out the search space for this problem. Is there more than one possible solution to this problem?

Question 3 Consider the following game for two players: There are 8 sticks on the table Players take turns at removing 1, 2 or 3 sticks The aim is to make your opponent take the last stick Example:

Question 3 a.Draw out the game tree for 8 sticks. Is this a win for the first player or the second player? b.If the first player’s first move is to take 2 sticks, what move should the second player make? c.What should the first player’s strategy be in the case where there are N sticks in the start state? For what values of N can the second player achieve a win?