CSCI 4150: Intro. to Artificial Intelligence Midterm Examination

Similar documents
CS 416, Artificial Intelligence Midterm Examination Fall 2004

Midterm Examination CS 540-2: Introduction to Artificial Intelligence

Monotonicity. Admissible Search: That finds the shortest path to the Goal. Monotonicity: local admissibility is called MONOTONICITY

1 Tree Search (12 points)

Midterm Examination CS540-2: Introduction to Artificial Intelligence

CSC384 Midterm Sample Questions

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

CS 540: Introduction to Artificial Intelligence

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

6.034 Quiz 1, Spring 2004 Solutions

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

State Space Search. Many problems can be represented as a set of states and a set of rules of how one state is transformed to another.

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

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

Introduction to Spring 2007 Artificial Intelligence Midterm Solutions

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

6.034 Quiz 1 October 8, 2003

7 Temporal Models (20 points)

Artificial Intelligence (part 4d)

4 Search Problem formulation (23 points)

Learning Objectives. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 3.5, Page 1

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

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

Question 1: Search (30 points)

CS 540-1: Introduction to Artificial Intelligence

Artificial Intelligence (part 4d)

Potential Midterm Exam Questions

: Principles of Automated Reasoning and Decision Making Midterm

6.034 QUIZ 1. Fall 2002

Introduction to Fall 2010 Artificial Intelligence Midterm Exam

Parallel Programming. Parallel algorithms Combinatorial Search

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

6.034 QUIZ 1 Solutons. Fall Problem 1: Rule-Based Book Recommendations (30 points)

CS 380/480 Foundations of Artificial Intelligence Winter 2007 Assignment 2 Solutions to Selected Problems

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

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

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

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

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

CS 520: Introduction to Artificial Intelligence. Lectures on Search

CS W4701 Artificial Intelligence

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

Artificial Intelligence

6.034 Quiz 1 October 13,2004

CS 188: Artificial Intelligence. Recap Search I

York University AK/ITEC INTRODUCTION TO DATA STRUCTURES. Final Sample II. Examiner: S. Chen Duration: Three hours

Last time: Problem-Solving

Chapter 2 Classical algorithms in Search and Relaxation

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

Name: UW CSE 473 Midterm, Fall 2014

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

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

Moving On. 10. Single-agent Search. Applications. Why Alpha-Beta First?

Searching: Where it all begins...

Search and Optimization

Search & Planning. Jeremy L Wyatt

6.034 Quiz 2 October 23, 2007

Artificial Intelligence (part 4a) Problem Solving Using Search: Structures and Strategies for State Space Search

Algorithm Design Techniques (III)

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

DIT411/TIN175, Artificial Intelligence. Peter Ljunglöf. 6 February, 2018

CSCI-401 Examlet #5. Name: Class: Date: True/False Indicate whether the sentence or statement is true or false.

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

CS 5522: Artificial Intelligence II

Search Algorithms. Uninformed Blind search. Informed Heuristic search. Important concepts:

Outline. Best-first search

CS 188: Artificial Intelligence

You should provide the best solutions you can think of.

Search : Lecture 2. September 9, 2003

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

Informed (Heuristic) Search. Idea: be smart about what paths to try.

Outline. Best-first search

Introduction to Fall 2014 Artificial Intelligence Midterm Solutions

CS 771 Artificial Intelligence. Problem Solving by Searching Uninformed search

3 SOLVING PROBLEMS BY SEARCHING

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

CS 360: Programming Languages Lecture 10: Logic Programming with Prolog

CS 4100 // artificial intelligence

Trees : Part 1. Section 4.1. Theory and Terminology. A Tree? A Tree? Theory and Terminology. Theory and Terminology

6.034 Artificial Intelligence, Fall 2006 Prof. Patrick H. Winston. Problem Set 1

STRUCTURES AND STRATEGIES FOR STATE SPACE SEARCH

Structures and Strategies For Space State Search

COSC 2007 Data Structures II Final Exam. Part 1: multiple choice (1 mark each, total 30 marks, circle the correct answer)

a. Given that we search depth first from left to right, list all leaf nodes above that we need to search/expand. (35 Points)

6.034 QUIZ 1 Fall Problem 1: Resource allocation in weird maps (30 points)

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

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

Efficient memory-bounded search methods

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

CSC384: Intro to Artificial Intelligence Game Tree Search II. Midterm: Everything covered so far plus this lecture slides.

Advanced A* Improvements

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

XML Data Management. 6. XPath 1.0 Principles. Werner Nutt

Two-player Games ZUI 2012/2013

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

CS 188: Artificial Intelligence

Review Agents ( ) Review State Space Search

: Principles of Automated Reasoning and Decision Making Midterm

Transcription:

CSCI 4150: Intro. to Artificial Intelligence Midterm Examination Tuesday October 17, 000 Name:

1 Assorted search questions The following questions explore differences in the number of nodes evaluated for different search implementations. 1. ( points) Two students each write a correct implementation of breadth first search. They then each write correct implementations of the goal? and get-children functions to solve a problem. However, after running their programs on the same start state, they find that their programs have evaluated different numbers of nodes. How can they both have correct implementations yet evaluate different numbers of nodes? Be specific in your answers.. ( points) Two students each write a correct implementation of the A* search using the OPEN/CLOSED list formulation. They then run the A* search on the same problem using the same heuristic. Is it possible for them to evaluate different numbers of nodes? Explain why or why not.. ( points) Assume we have a search tree with a uniform branching factor. What is the minimum and maximum number of nodes that breadth first search will evaluate to find a solution at depth? What is the minimum and maximum number of nodes that depth first search will evaluate? Express your answers in terms of the depth of the solution and the maximum depth of the tree. Constraint Satisfaction and Iterative Improvement search ( points) The map coloring problem is a good example of a constraint satisfaction problem. The goal is to assign one of four colors to each region of the map so that no two adjacent regions have the same color. The initial assignment of the colors to regions is given below. The four colors (abbreviated on the map below) are Red, Green, Blue, and Yellow. The color of each region is assigned to the variable. For problem, you are to do two iterations of heuristic repair using the min-conflicts heuristic. You can choose variables randomly, and you should also break any ties randomly. Show the color assignments after each iteration and explain your work. 1

Initial map after iteration 1 after iteration Informed search 1. ( points) The following questions explore heuristics and informed search. (a) What is an admissible heuristic? (b) Is A* search with an admissible heuristic complete? Is it optimal? (c) Is A* search with an inadmissible heuristic complete? Is it optimal?

. ( points) For this problem you will apply the A* algorithm to the graph below. Note that the edges in this graph are directed. S, h=6 A, h=4 C, h=4 E, h=1 1 1 1 G, h=0 B, h=4 D, h=.5 F, h=1 For this problem: Perform the A* algorithm on this graph, filling in the table below. You should not need all the lines in the table. Indicate the,, and values of each node on the queue as shown in the first two rows of the table. Assume that if you find a path to a node already on the queue that you update its cost (using the lower value) instead of adding another copy of that node to the queue. Show the path found by the A* algorithm on the graph above. iteration node expanded new queue/open list 0 S = 0 + 6 = 6 (i.e. S = g(s) + h(s) = f(s)) 1 S A = + 4 = 6; B = + 4 = 7 4 5 6 7 8 9 10

4 Game search 1. ( points) (a) Explain the horizon problem for game tree search. (b) What is the space and time complexity of minimax search? (c) What is the space and time complexity of minimax search with alpha-beta pruning?. ( points) Suppose we are using minimax search (without alpha-beta pruning) with a depth cutoff of to play a game of Connect 4. It is O s turn to move; the resulting game tree appears below. The value of the evaluation function for each leaf node is shown. What value does minimax return on this game tree? Indicate O s best move on the tree below. O X X O X O X X O X O X X X X O X O X O X O X X X O O X O X X X O O X X 1 4 5 6 7 X X X O O X O X X X X O O O X O X X X O O X O X X X O X X X O X O X O X O X O O X O X X O X O X O X

. ( points) Perform alpha-beta minimax search on the tree below. Use the cutoff test Indicate which leaf nodes are evaluated by circling the value of the leaf node. What is the value of this tree? Which is the best move from the root node? MAX MIN MAX 9 7 8 11 1 10 4 6 1 5 5 Logic Here are some sentences in first order logic that encode knowledge about the kinship domain: 1. Father(x, y) Parent(x, y). Mother(x, y) Parent(x, y). Wife(a, b) Married(a, b) 4. Husband(a, b) Married(a, b) 5. Married(j,k) Parent(k, m) Parent(j, m) 6. Sister(s, t) Parent(t, v) Aunt(s, v) 7. Brother(s, t) Parent(t, v) Uncle(s, v) Remember the convention for these two argument predicates is as follows: Father(x, y) means x is the father of y, Wife(a, b) means a is the wife of b, etc. 5

1. Write additional sentences in Horn normal form for this knowledge base to add definitions for the following new predicates. Use only the predicates introduced above and ones that you will write below. Make your sentences as general as possible! (a) Sibling(g, h): g is a sibling of h (b) Cousin(g, h): g is a cousin of h (c) Grandparent(g, h): g is a grandparent of h. For this problem, do either Part A or Part B. Use the chart on the following page to show each step of forward/backward chaining. You should only show the successful attempts at matching rules. (a) Using the original knowledge base (1-7), use forward chaining to add the following sentences: Father(Homer, Lisa) Mother(Marge, Bart) Wife(Marge, Homer) Sister(Patty, Marge) As an example of filling out the chart for this problem, here s how you d start forward chaining on the sentence Husband(Bob, Alice): sentence Term added to KB, or matches with premise(s) to match number Premise sought sentence # substitution conclusion produced 8 Husband(Bob, Alice) 4 a/bob, b/alice Married(Bob, Alice) (b) Using the original database (1 7) and the following sentences: 9. Father(Homer, Lisa) 10. Mother(Marge, Bart) 11. Wife(Marge, Homer) 1. Sister(Patty, Marge) do backward chaining to show Aunt(Patty, Lisa). As an example of filling out the chart for this problem, here s how you might start backward chaining on the sentence Parent(Alice, Bob): Premise sought, or matches with Conclusion to match sentence # substitution premise(s) to match Parent(Alice, Bob) 5 j/alice, m/bob Married(Alice, k), Parent(k, m) 6

(FC) Term added to KB (FC) sentence Premise sought (FC/BC) matches with premise(s) to match (FC/BC) number Conclusion to match (BC) sentence # substitution conclusion produced (FC) 7