Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1. Solving CSPs (25 points) In a combined 3rd and 5th grade class, students can be 8, 9, 10, and 11 years old. We are

image text in transcribed

Q1. Solving CSPs (25 points) In a combined 3rd and 5th grade class, students can be 8, 9, 10, and 11 years old. We are trying to solve for the ages of Ann, Bob, Claire, and Doug (abbreviations: A, B, C, D). Consider the following constraints: No students is older in years than Clair (but may be the same age) Bob is two years older than Ann Bob is younger in years than Doug. Complete the following questions: 1. (5 pts) Draw the constraint graph. 2. (3 pts) Suppose we are using the AC-3 algorithm for arc consistency. How many total arcs will be en-queued when the algorithm begins execution? 3. (9 pts) Assuming all ages {8,9,10,11} are possible for each student before running are con- sistency, manually run are consistency on only are from A to B. (a) What values on A remain viable after this operation? (b) What values on B remain viable after this operation? (c) Assuming there are no arcs left in the list of arcs to be processed, which are(s) would be added to the queue for processing after this operation? 4. (8 pts) Suppose we enforce are consistency on all arcs. What ages remain in each person's domain? Q1. Solving CSPs (25 points) In a combined 3rd and 5th grade class, students can be 8, 9, 10, and 11 years old. We are trying to solve for the ages of Ann, Bob, Claire, and Doug (abbreviations: A, B, C, D). Consider the following constraints: No students is older in years than Clair (but may be the same age) Bob is two years older than Ann Bob is younger in years than Doug. Complete the following questions: 1. (5 pts) Draw the constraint graph. 2. (3 pts) Suppose we are using the AC-3 algorithm for arc consistency. How many total arcs will be en-queued when the algorithm begins execution? 3. (9 pts) Assuming all ages {8,9,10,11} are possible for each student before running are con- sistency, manually run are consistency on only are from A to B. (a) What values on A remain viable after this operation? (b) What values on B remain viable after this operation? (c) Assuming there are no arcs left in the list of arcs to be processed, which are(s) would be added to the queue for processing after this operation? 4. (8 pts) Suppose we enforce are consistency on all arcs. What ages remain in each person's domain

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions