CS221 Practice Midterm #1

Similar documents
AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

Measurement. When Smaller Is Better. Activity:

Firms and Markets Saturdays Summer I 2014

Grade 6: Correlated to AGS Basic Math Skills

CS 101 Computer Science I Fall Instructor Muller. Syllabus

Honors Mathematics. Introduction and Definition of Honors Mathematics

Lecture 10: Reinforcement Learning

SAT MATH PREP:

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Artificial Neural Networks written examination

Ricochet Robots - A Case Study for Human Complex Problem Solving

CS Machine Learning

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

Radius STEM Readiness TM

Visual CP Representation of Knowledge

College Pricing. Ben Johnson. April 30, Abstract. Colleges in the United States price discriminate based on student characteristics

STT 231 Test 1. Fill in the Letter of Your Choice to Each Question in the Scantron. Each question is worth 2 point.

A Neural Network GUI Tested on Text-To-Phoneme Mapping

Welcome to ACT Brain Boot Camp

Comparison of network inference packages and methods for multiple networks inference

Scientific Method Investigation of Plant Seed Germination

Mathematics Scoring Guide for Sample Test 2005

Lecture 1: Machine Learning Basics

Sample Problems for MATH 5001, University of Georgia

AGENDA. Truths, misconceptions and comparisons. Strategies and sample problems. How The Princeton Review can help

Truth Inference in Crowdsourcing: Is the Problem Solved?

Reinforcement Learning by Comparing Immediate Reward

Lahore University of Management Sciences. FINN 321 Econometrics Fall Semester 2017

GCSE Mathematics B (Linear) Mark Scheme for November Component J567/04: Mathematics Paper 4 (Higher) General Certificate of Secondary Education

Name Class Date. Graphing Proportional Relationships

Classroom Connections Examining the Intersection of the Standards for Mathematical Content and the Standards for Mathematical Practice

(Sub)Gradient Descent

Reducing Features to Improve Bug Prediction

A Reinforcement Learning Variant for Control Scheduling

Decision Analysis. Decision-Making Problem. Decision Analysis. Part 1 Decision Analysis and Decision Tables. Decision Analysis, Part 1

Data Structures and Algorithms

Foothill College Summer 2016

A Comparison of the Effects of Two Practice Session Distribution Types on Acquisition and Retention of Discrete and Continuous Skills

Discriminative Learning of Beam-Search Heuristics for Planning

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

Probability estimates in a scenario tree

GACE Computer Science Assessment Test at a Glance

Probabilistic Mission Defense and Assurance

Regret-based Reward Elicitation for Markov Decision Processes

Learning goal-oriented strategies in problem solving

Edexcel GCSE. Statistics 1389 Paper 1H. June Mark Scheme. Statistics Edexcel GCSE

Course Content Concepts

Pretest Integers and Expressions

A Comparison of Annealing Techniques for Academic Course Scheduling

On the Polynomial Degree of Minterm-Cyclic Functions

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

Defragmenting Textual Data by Leveraging the Syntactic Structure of the English Language

An OO Framework for building Intelligence and Learning properties in Software Agents

Exploration. CS : Deep Reinforcement Learning Sergey Levine

Diagnostic Test. Middle School Mathematics

Standards-Based Bulletin Boards. Tuesday, January 17, 2012 Principals Meeting

Given a directed graph G =(N A), where N is a set of m nodes and A. destination node, implying a direction for ow to follow. Arcs have limitations

AUTOMATED TROUBLESHOOTING OF MOBILE NETWORKS USING BAYESIAN NETWORKS

Holy Family Catholic Primary School SPELLING POLICY

AP Calculus AB. Nevada Academic Standards that are assessable at the local level only.

Problem-Solving with Toothpicks, Dots, and Coins Agenda (Target duration: 50 min.)

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

Managerial Decision Making

MAKING YOUR OWN ALEXA SKILL SHRIMAI PRABHUMOYE, ALAN W BLACK

Axiom 2013 Team Description Paper

Five Challenges for the Collaborative Classroom and How to Solve Them

Cal s Dinner Card Deals

BMBF Project ROBUKOM: Robust Communication Networks

End-of-Module Assessment Task K 2

Laboratory Notebook Title: Date: Partner: Objective: Data: Observations:

Measuring physical factors in the environment

Physics 270: Experimental Physics

Page 1 of 8 REQUIRED MATERIALS:

Math Placement at Paci c Lutheran University

Transfer Learning Action Models by Measuring the Similarity of Different Domains

SANTIAGO CANYON COLLEGE Reading & English Placement Testing Information

Intensive English Program Southwest College

AP Statistics Summer Assignment 17-18

San José State University Department of Psychology PSYC , Human Learning, Spring 2017


College Pricing and Income Inequality

ACTL5103 Stochastic Modelling For Actuaries. Course Outline Semester 2, 2014

Functional Skills Mathematics Level 2 assessment

Statewide Framework Document for:

Unit 3: Lesson 1 Decimals as Equal Divisions

A NEW ALGORITHM FOR GENERATION OF DECISION TREES

The Good Judgment Project: A large scale test of different methods of combining expert predictions

Major Milestones, Team Activities, and Individual Deliverables

Experiments with SMS Translation and Stochastic Gradient Descent in Spanish Text Author Profiling

ReinForest: Multi-Domain Dialogue Management Using Hierarchical Policies and Knowledge Ontology

Math 1313 Section 2.1 Example 2: Given the following Linear Program, Determine the vertices of the feasible set. Subject to:

Secret Code for Mazes

Cooperative Game Theoretic Models for Decision-Making in Contexts of Library Cooperation 1

Alignment of Australian Curriculum Year Levels to the Scope and Sequence of Math-U-See Program

Machine Learning and Data Mining. Ensembles of Learners. Prof. Alexander Ihler

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

Planning with External Events

If we want to measure the amount of cereal inside the box, what tool would we use: string, square tiles, or cubes?

5. UPPER INTERMEDIATE

Sample Performance Assessment

Transcription:

CS221 Practice Midterm #1 Summer 2013 The following pages are excerpts from similar classes midterms. The content is similar to our midterm but I have opted to give you a document with more problems rather than one that follows the structure of the midterm precisely. See the midterm handout for more details on what the exam will look like. The midterm is 2 hours. It is open book and open computer but closed Internet.

1. [Short Answers] Truth Test (10 points) For the following questions, a correct answer is worth 2 points, no answer is worth 1 point, and an incorrect answer is worth 0 points. Circle true or false to indicate your answer. a. (true or false) If g(s) and h(s) are two admissible A* heuristics, then their average f(s) = ½ g(s) + ½ h(s) must also be admissible. b. (true or false) For a search problem, the path returned by uniform cost search may change if we add a positive constant C to every step cost. c. (true or false) The running-time of an efficient solver for tree-structured constraint satisfaction problems is linear in the number of variables. d. (true or false) The amount of memory required to run minimax with alpha-beta pruning is O(bd) for branching factor b and depth limit d. e. (true or false) For a discrete bayesian network with n variables, the amount of space required to store the joint distribution table is O(n). f. (true or false) In a markov decision problem, there are no actions and instead everything is controlled by chance. g. (true or false) In a markov decision problem, there are no actions and instead everything is controlled by chance. h. (true or false) Assume the Bayes Net from class is a prefect representation of the world: You know that you do not have a stomach bug. If you were to vomit, would that information change the probability that you had a fever?

. 2. [Deterministic Search] Mr. and Ms. Pacman (20 points) Pacman and Ms. Pacman are lost in an NxN maze and would like to meet; they don t care where. In each time step, both simultaneously move in one of the following directions: {NORTH, SOUTH, EAST, WEST, STOP}. They do not alternate turns. You must devise a plan which positions them together, somewhere, in as few time steps as possible. Passing each other does not count as meeting; they must occupy the same square at the same time. a. Formally state this problem as a single-agent state-space search problem. States: Goal test: Legal actions (given a state): Successor function (given a state and an action): [continued on the next page]

b. Give a non-trivial admissible heuristic for this problem. c. Circle all of the following graph search methods which are guaranteed to output optimal solutions to this problem: (i) DFS (ii) BFS (iii) UCS (iv) A* (with a consistent and admissible heuristic) (v) A* (with heuristic that returns zero for each state) d. If h1 and h2 are admissible, which of the following are also guaranteed to be admissible? Circle all that apply: (i) h1 + h2 (ii) h1 * h2 (iii) max(h1, h2 ) (iv) min(h1, h2 ) (v) (α)h1+(1 α)h2 for any value α between 0 and 1

3. [Adversarial Search] MiniMax (15 points) Consider the following minimax tree: a. What is the minimax value for the root? b. Draw an X through any nodes which will not be visited by alpha-beta pruning, assuming children are visited in left-to-right order. c. Is there another ordering for the children of the root for which more pruning would result? If so, state the order. [continued on the next page]

d. Propose a general, practical method for ordering children of nodes which will tend to increase the opportunities for pruning. You should be concise, but clearly state both what to do about min nodes and max nodes.

4. [Bayes Net] Nuclear Power Station (15 points) In your local nuclear power station, there is an alarm that senses when a temperature gauge exceeds a given threshold. The gauge measures the temperature of the core. Consider the Boolean variables A (alarm sounds), F A (alarm is faulty), and F G (gauge is faulty) and the multivalued, discrete nodes G (gauge reading) and T (actual core temperature). a. Draw a Bayesian network for this domain, given that the gauge is more likely to fail when the core temperature gets too high. b. Suppose there are just two possible actual and measured temperatures, normal and high; the probability that the gauge gives the correct temperature is x when it is working, but y when it is faulty. Give the conditional probability table associated with G [continued on the next page]

c. Suppose the alarm works correctly unless it is faulty, in which case it never sounds. Give the conditional probability table associated with A d. Suppose the alarm and gauge are working and the alarm sounds. Calculate an expression for the probability that the temperature of the core is too high, in terms of the various conditional probabilities in the network.

5. [Temporal Models] Knowledge Tracing (25 points) A new online education website wants to provide individualized education. For simplicity imagine that users log into the website and continually answer randomly generated questions that cover triangle inequality. The only information accessible by the website is the score that the student gets on the problems they solve. Your task is to use these scores to track the extent to which a given student has mastered triangle inequality. (a) Is this problem better suited for a markov model or a hidden markov model? (b) Formalize this real world problem: (i) Draw the temporal Bayesian network. (ii) For each variable in your model give a brief description of its role and specify a discrete domain. (iii) For each node in your model what are the dimensions of the CPT? [continued on the next page]

(c) We have invented a brain-measuring device that can measure exactly how well a student knows triangle inequality (You can call getmastery() at any point and the function will return a string in the domain { low, medium, high }). Your task is to write python code that could use this device to learn the emission conditional probability table of scores given mastery. Your learner class will be given a constant stream of data from students solving problems. After all observations have completed, the savecpt method will be called. Implement all functions. class Learner(): # Function: Constructor # --------------------- # Only if you need it def init (self): [continued on the next page]

# Function: Update # ----------------- # Called once every time the student completes # a problem. The score variable is the percent # correct (0.0 to 1.0) of the student s # solution. The studentid is passed in so that # you can differentiate students. def update(self, studentid, score): [continued on the next page]

# Function: Save Cpt # ------------------ # To save any data structure you can use # util.saveprob( yourvariable, filename). # Save Cpt is Called once after several days of # observing students solve triangle inequality # questions. The variable you save should # be a valid CPT (not a partial representation), though # the format [dictionary, arrays] does not matter. def savecpt(self, filename):