Name: UW CSE 473 Midterm, Fall 2014

Similar documents
CS 540: Introduction to Artificial Intelligence

1 Tree Search (12 points)

The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

CS 4100/5100: Foundations of AI

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

ˆ The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

Introduction to Artificial Intelligence Midterm 1. CS 188 Spring You have approximately 2 hours.

6.034 Quiz 1, Spring 2004 Solutions

Parallel Programming. Parallel algorithms Combinatorial Search

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

CS 188: Artificial Intelligence. Recap Search I

Constraint Satisfaction Problems

Constraint Satisfaction Problems (CSPs)

Introduction to Spring 2007 Artificial Intelligence Midterm Solutions

Introduction to Fall 2008 Artificial Intelligence Midterm Exam

Problem 1 Zero: 11% (~20 students), Partial: 66% (~120 students), Perfect: 23% (~43 students)

Midterm I. Introduction to Artificial Intelligence. CS 188 Fall You have approximately 3 hours.

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

Midterm Examination CS 540-2: Introduction to Artificial Intelligence

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

Constraint Satisfaction Problems. Chapter 6

CSPs: Search and Arc Consistency

Midterm I. Introduction to Artificial Intelligence. CS 188 Fall You have approximately 3 hours.

Final Exam. Introduction to Artificial Intelligence. CS 188 Spring 2010 INSTRUCTIONS. You have 3 hours.

Uninformed Search Methods. Informed Search Methods. Midterm Exam 3/13/18. Thursday, March 15, 7:30 9:30 p.m. room 125 Ag Hall

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

Q1. [11 pts] Foodie Pacman

CS 188: Artificial Intelligence Spring Recap Search I

15-780: Graduate AI Homework Assignment #2 Solutions

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

: Principles of Automated Reasoning and Decision Making Midterm

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

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

1. (15 points) Consider the crossword puzzle

Potential Midterm Exam Questions

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

4 Search Problem formulation (23 points)

Homework #6 (Constraint Satisfaction, Non-Deterministic Uncertainty and Adversarial Search) Out: 2/21/11 Due: 2/29/11 (at noon)

CS 4100 // artificial intelligence

Recap Search I. CS 188: Artificial Intelligence Spring Recap Search II. Example State Space Graph. Search Problems.

Introduction to Fall 2010 Artificial Intelligence Midterm Exam

Midterm Examination CS540-2: Introduction to Artificial Intelligence

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

Recitation 3 Problems

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2. Problem Solving Agents. Problem Solving Agents: Assumptions

CS188 Spring 2010 Section 2: CSP s

Heuristic Search in MDPs 3/5/18

Solving Problems by Searching

CSC384 Midterm Sample Questions

Class Overview. Introduction to Artificial Intelligence COMP 3501 / COMP Lecture 2: Search. Problem Solving Agents

Artificial Intelligence. Chapters Reviews. Readings: Chapters 3-8 of Russell & Norvig.

Constraint Satisfaction Problems Part 2

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

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

Solving Problems by Searching

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

Downloaded from ioenotes.edu.np

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

Search and Optimization

mywbut.com Informed Search Strategies-I

Planning and Control: Markov Decision Processes

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

mywbut.com Informed Search Strategies-II

Informed Search Methods

CS 188: Artificial Intelligence Fall 2008

Announcements. CS 188: Artificial Intelligence Fall Large Scale: Problems with A* What is Search For? Example: N-Queens

CS 188: Artificial Intelligence

Structures and Strategies For Space State Search

Spezielle Themen der Künstlichen Intelligenz

CS 188: Artificial Intelligence Spring Announcements

Data Structures and Algorithms

ARTIFICIAL INTELLIGENCE SOLVING PROBLEMS BY SEARCHING. Chapter 3

3.6.2 Generating admissible heuristics from relaxed problems

Space of Search Strategies. CSE 573: Artificial Intelligence. Constraint Satisfaction. Recap: Search Problem. Example: Map-Coloring 11/30/2012

(QiuXin Hui) 7.2 Given the following, can you prove that the unicorn is mythical? How about magical? Horned? Decide what you think the right answer

ˆ The exam is closed book, closed calculator, and closed notes except your one-page crib sheet.

HEURISTIC SEARCH. 4.3 Using Heuristics in Games 4.4 Complexity Issues 4.5 Epilogue and References 4.6 Exercises

CS 188: Artificial Intelligence

Discrete planning (an introduction)

Artificial Intelligence

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

CSE 473: Artificial Intelligence

EECS 492 Midterm #1. Example Questions. Note: Not a complete exam!

CS 188: Artificial Intelligence. Recap: Search

Constraint Satisfaction Problems

CS510 \ Lecture Ariel Stolerman

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

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

Artificial Intelligence

Announcements. CS 188: Artificial Intelligence Fall Reminder: CSPs. Today. Example: 3-SAT. Example: Boolean Satisfiability.

CS 188: Artificial Intelligence Fall 2008

CS 331: Artificial Intelligence Informed Search. Informed Search

Final Examination CSE 100 UCSD (Practice)

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

CS 331: Artificial Intelligence Informed Search. Informed Search

Announcements. CS 188: Artificial Intelligence Spring Production Scheduling. Today. Backtracking Search Review. Production Scheduling

General Methods and Search Algorithms

: Principles of Automated Reasoning and Decision Making Midterm

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

521495A: Artificial Intelligence

Transcription:

Instructions Please answer clearly and succinctly. If an explanation is requested, think carefully before writing. Points may be removed for rambling answers. If a question is unclear or ambiguous, feel free to make the additional assumptions necessary to produce the answer. State these assumptions clearly; you will be graded on the basis of the assumption as well as subsequent reasoning. On multiple choice questions, incorrect answers will incur negative points proportional to the number of choices. For example a 1 point true-false question will receive 1 point if correct, -1 if incorrect, and zero if left blank. Only make informed guesses. There are XXXX problems worth KKK points on PPP pages. 1. (1 point) Who are you? Write your name at the top of every page. 2. (1 point each total of 4). Types of Agents You are developing an agent that solves crossword puzzle (like the one pictured to the right) using an exhaustive dictionary of possible words. States are partially-completed puzzles and actions place a word on the puzzle. On each line below, we ve listed two possible environmental aspects; circle the one which better describes the crossword-puzzle environment. a) fully observable vs. partially observable b) single agent vs. multiagent, c) stochastic vs. deterministic, d) discrete vs. continuous 3. (1 point each total of 13) True / False Circle the correct answer. (a) T F Iterative deepening search is guaranteed to expand more nodes than breadthfirst search (on any graph whose root is not the goal). (b) T F A* search with a heuristic that is not completely admissible may still find the shortest path to the goal state. (c) T F Consider a finite, acyclic search space where depth-first search is guaranteed to eventually find a solution and the root is not a goal. In this situation iterative deepening search will always explore more nodes than depth-first. 1

(d) T F A pattern database helps an agent avoid wasting time in cycles by storing previously-expanded states. (e) T F Random restarts are often used in local search to diminish the problem of local maxima. (f) T F Doubling your computer's speed allows you to double the depth of a tree search given the same amount of time (g) T F Every CSP with higher order constraints can be rewritten as a binary CSP with the same number of variables. (h) T F If a binary CSP has a tree-structured constraint graph, we can find a satisfying assignment (or prove no satisfying assignment exists) in time that is linear in the number of variables. (i) T F Backtracking search on CSPs, while generally much faster than general purpose search algorithms like A*, still requires exponential time in the worst case. (j) T F One reason to use forward checking in a CSP problem is in order to detect failures quickly and backtrack earlier. (k) T F An agent that uses Minimax search, which assumes an enemy behaves optimally, may well achieve a better score when playing against a suboptimal enemy than the agent would against an optimal enemy. (l) T F All other things being equal, value iteration will converge in fewer iterations, when the discount factor, gamma, is smaller. (m) T F Expectimax search can be used to solve an MDP in a finite horizon setting. (n) T F The optimal policy for an MDP depends on the MDP s start state. 2

4. (2 points each total of 8) Search. Given the graph to the right, write down the order in which the states are visited by the following search algorithms. If a state is visited more than once, write it each time. Ties (e.g., which child to first explore in depth-first search) should be resolved according to alphabetic order (i.e. prefer A before Z). Remember to include the start and goal states in your answer. Treat the goal state as G when you break ties. Assume that algorithms execute the goal check when nodes are visited, not when their parent is expanded to create them as children. (a) Iterative deepening depth first search (b) A* search, where f(n)=g(n)+h(n) 3

5. (10 points) Constraint Satisfaction Three robots (A, B, C) have two hours to complete five tasks (1,2,3,4,5). Each task takes one hour to complete, each robot can work on only one task at a time, Robot Tasks and only one robot may work on a task at a time. Each robot is A 1,2,3 only equipped to perform certain tasks, as shown in the table. B 1,2,5 Finally, task 1 must be completed before task 2, and 3 must be C 2,4,5 completed before 5. We can formulate this problem as a CSP, using one variable for each task: X 1,, X 5, whose possible values are a subset of A 1, A 2, C 2, where X 5 =C 2 means that task 5 is done by robot C and Time(X 5 ) is 2. We have written the domain of each variable in the diagram below. a) (2 points) write the constraints (either binary or n-ary forms are ok). b) (1 point) Complete the drawing above to show the constraint graph. d) (4 points) Is the initial state arc-consistent? If not, cross out the values for each variable that would be pruned by running AC-3. e) (4 points) Solve the (reduced, arc-consistent) CSP using backtracking search (without forward checking). Use the minimum remaining values (MRV) variable ordering (breaking ties in numerical order), and least constraining value (LCV) value ordering (breaking ties in alpha-numerical). What order are the first variables assigned, and what values are they given? The first variable assigned is it s given value The second variable assigned is it s given value The third variable assigned is it s given value 4

6 (9 points) MDPs. Consider a setting where every 6 months Apple decides whether to release a new version of the iphone or not. Assume the problem can be represented as an MDP with states (G=Good, M = Mediocre, B = Bad), To G To M To B each referring to the public sentiment towards Apple. From G Take R 0.1 0.9 0.0 The actions are R=Release, D = Don t release. From G Take D 0.2 0.8 0.0 Taking an action that lands in state G (from any From M Take R 0.1 0.9 0.0 other state, including itself) receives reward 2, From M Take D 0.0 0.3 0.7 landing in state M receives reward 0, and landing in From B Take R 0.9 0.0 0.1 state B receives reward -1. The discount factor (γ) From B Take D 0.0 0.5 0.5 is 1. The transitions are as shown in the table: a) For this MDP, fill in the blank spaces in the value iteration table (1 point for each Q entry) G M B V 0 (state) 0 0 0 Q 1 (state, R) Q 1 (state, D) V 1 (state) Q 2 (state, R) Not required Not required Q 2 (state, D) Not required Not required V 2 (state) Not required Not required b) (1 point) What should Apple do if it is in state M with a horizon of 2? 5