CS 460 Midterm solutions. 1.b 2.PEAS : Performance Measure, Environment, Actuators, Sensors 3.c 4.a. Environment: non-English language Internet sites.

Slides:



Advertisements
Similar presentations
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal.
Advertisements

Greedy best-first search Use the heuristic function to rank the nodes Search strategy –Expand node with lowest h-value Greedily trying to find the least-cost.
Traveling Salesperson Problem
State Space 3 Chapter 4 Heuristic Search. Three Algorithms Backtrack Depth First Breadth First All work if we have well-defined: Goal state Start state.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2007.
ICS-171:Notes 4: 1 Notes 4: Optimal Search ICS 171 Summer 1999.
State Space Search Classic AI.
Problem Solving Agents A problem solving agent is one which decides what actions and states to consider in completing a goal Examples: Finding the shortest.
Solving Problems by Searching Currently at Chapter 3 in the book Will finish today/Monday, Chapter 4 next.
CPSC 322, Lecture 5Slide 1 Uninformed Search Computer Science cpsc322, Lecture 5 (Textbook Chpt 3.4) January, 14, 2009.
Implementation and Evaluation of Search Methods. Use a stack data structure. 1. Push root node of tree on the stack. 2. Pop the top node off the stack.
Artificial Intelligence (CS 461D)
UNINFORMED SEARCH Problem - solving agents Example : Romania  On holiday in Romania ; currently in Arad.  Flight leaves tomorrow from Bucharest.
Search by partial solutions. Where are we? Optimization methods Complete solutions Partial solutions Exhaustive search Hill climbing Random restart General.
CS 61B Data Structures and Programming Methodology July 31, 2008 David Sun.
Slide 1 Heuristic Search: BestFS and A * Jim Little UBC CS 322 – Search 5 September 19, 2014 Textbook § 3.6.
Slide 1 Search: Advanced Topics Jim Little UBC CS 322 – Search 5 September 22, 2014 Textbook § 3.6.
CPSC 322, Lecture 9Slide 1 Search: Advanced Topics Computer Science cpsc322, Lecture 9 (Textbook Chpt 3.6) January, 23, 2009.
CPSC 322 Introduction to Artificial Intelligence October 27, 2004.
Problem Solving by Searching Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 3 Spring 2004.
Games with Chance Other Search Algorithms CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 3 Adapted from slides of Yoonsuck Choe.
UnInformed Search What to do when you don’t know anything.
MAE 552 – Heuristic Optimization Lecture 27 April 3, 2002
CS 206 Introduction to Computer Science II 10 / 14 / 2009 Instructor: Michael Eckmann.
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?
Problem Solving and Search in AI Heuristic Search
Blind Search-Part 2 Ref: Chapter 2. Search Trees The search for a solution can be described by a tree - each node represents one state. The path from.
Uninformed Search (cont.)
Solving problems by searching
1 Solving problems by searching Chapter 3. 2 Why Search? To achieve goals or to maximize our utility we need to predict what the result of our actions.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Review: Search problem formulation Initial state Actions Transition model Goal state (or goal test) Path cost What is the optimal solution? What is the.
1 Problem Solving and Searching CS 171/271 (Chapter 3) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Problem Solving and Search Andrea Danyluk September 11, 2013.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
Game Playing Chapter 5. Game playing §Search applied to a problem against an adversary l some actions are not under the control of the problem-solver.
1 Trees Tree nomenclature Implementation strategies Traversals –Depth-first –Breadth-first Implementing binary search trees.
State Space Search. State Space representation of a problem is a graph  Nodes correspond to problem states  Arcs correspond to steps in a solution process.
Introduction to search Chapter 3. Why study search? §Search is a basis for all AI l search proposed as the basis of intelligence l inference l all learning.
Today’s Topics FREE Code that will Write Your PhD Thesis, a Best-Selling Novel, or Your Next Methods for Intelligently/Efficiently Searching a Space.
Exact methods for ALB ALB problem can be considered as a shortest path problem The complete graph need not be developed since one can stop as soon as in.
Search by partial solutions.  nodes are partial or complete states  graphs are DAGs (may be trees) source (root) is empty state sinks (leaves) are complete.
Informed Search Methods. Informed Search  Uninformed searches  easy  but very inefficient in most cases of huge search tree  Informed searches  uses.
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.
Lecture 3: 18/4/1435 Searching for solutions. Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Problem solving by search Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Agents and Uninformed Search ECE457 Applied Artificial Intelligence Spring 2007 Lecture #2.5.
Goal-based Problem Solving Goal formation Based upon the current situation and performance measures. Result is moving into a desirable state (goal state).
CPSC 322, Lecture 6Slide 1 Uniformed Search (cont.) Computer Science cpsc322, Lecture 6 (Textbook finish 3.5) Sept, 17, 2012.
A* optimality proof, cycle checking CPSC 322 – Search 5 Textbook § 3.6 and January 21, 2011 Taught by Mike Chiang.
Graph Search II GAM 376 Robin Burke. Outline Homework #3 Graph search review DFS, BFS A* search Iterative beam search IA* search Search in turn-based.
Fahiem Bacchus © 2005 University of Toronto 1 CSC384: Intro to Artificial Intelligence Search II ● Announcements.
For Monday Read chapter 4 exercise 1 No homework.
Lecture 3: Uninformed Search
CSC317 Selection problem q p r Randomized‐Select(A,p,r,i)
Problem Solving by Searching
Artificial Intelligence
Games with Chance Other Search Algorithms
Chapter 6 : Game Search 게임 탐색 (Adversarial Search)
Problem Solving and Searching
Iterative Deepening Search
Problem Solving and Searching
Search Exercise Search Tree? Solution (Breadth First Search)?
CSIT 402 Data Structures II With thanks to TK Prasad
Solving problems by searching
B-Trees.
Presentation transcript:

CS 460 Midterm solutions

1.b 2.PEAS : Performance Measure, Environment, Actuators, Sensors 3.c 4.a. Environment: non-English language Internet sites that contain stories b. The environment is strictly dynamic (new stories are being added and removed all the time) but can be approximated as static for ease of search and selection. c. The environment is strictly stochastic (because it is dynamic, also because a practical implementation might only choose stories at random from the huge number returned by a search), but can be treated as approximately deterministic for the purposes of implementation. d. 1. number of search results returned for a query, 2. size of a site’s content 3. header or other info on the page indicating that it doesn’t already have an English translation. e. w1 * projected revenue - w2 * cost of translation – w3 * risk of getting caught

5. a. State space: where contents1 <= 12, contents2 <= 8, and contents3 <= 3 b. initial state: c. path cost function: Moves  1 ( any move has uniform cost of 1, path cost function is the same as path length) d. goal state: { or, or } e. informed search that takes advantage of the fact that you should start with the 3 gallon & 8 gallon jugs and don’t need the 12 gallon jug.

6. These are general factors that will apply to problem 5 as well as all others: 1. completeness, 2. time complexity, 3. space complexity, 4. optimality 7. Completeness: A strategy is said to be complete if it is guaranteed to find a solution if a solution exists. optimality: A strategy is said to be optimal if it is guaranteed to find an optimal (best as measured by the performance measure) solution, if a solution exists.

8. It is clear that we need some sort of heuristic to get to the easy answer in minimum no. of steps. (0,0,0)  (0,0,3)  (0,3,0)  (0,3,3)  (0,6,0)  (0,6,3)  (0,8,1). Without the heuristic, we could waste a lot of steps. The best thing to try would be A* search, one possible heuristic might be: “fill an odd number (giving a remainder of 1) of gallons from the faucet” 9.

9 a.

9 b. I. BFS: II. Depth limited with limit 3: III. Iterative deepening: 1; ; ; d 11. a. b. <= 4 **4 = 256 c. the tree is only 1 level deep, and we can do it with 256 bytes. 12.a. max score is 4 b. assuming we traverse the leaves from left to right, we can prune the node with value 6.