Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problems 1. You are given an unlimited number of coins consisting of nickels (5 cents) dimes (10 cents) and quarters (25 cents). Your task is

image text in transcribed

Problems 1. You are given an unlimited number of coins consisting of nickels (5 cents) dimes (10 cents) and quarters (25 cents). Your task is to get 30 cents with as few coins as possible. This problem can be described as search, where the decision in each level of the search tree is what coin to choose next. The first two levels of the search tree are shown below, where a left branch indicates a choice of a nickel (5 cents) a center branch indicates the choice of a dime, and a right branch indicates the choice of a quarter. The number written in each node is the total amount. o (1). Let Vbe the value in oden. Define the heuristic h(n) to be (30 - Viif in 30 If best first search is applied to the entire tree) with this heuristic, the solution found would have nickels (5 cents each), dimes (10 cents each), and quarters (25 cents each). (2). How much memory would be used by best first search?__ (3). Prove that the heuristic h(n) is not admissible. Can you suggest a nontrivial (e.g. not always 0) admissible heuristic for this problem? Problems 1. You are given an unlimited number of coins consisting of nickels (5 cents) dimes (10 cents) and quarters (25 cents). Your task is to get 30 cents with as few coins as possible. This problem can be described as search, where the decision in each level of the search tree is what coin to choose next. The first two levels of the search tree are shown below, where a left branch indicates a choice of a nickel (5 cents) a center branch indicates the choice of a dime, and a right branch indicates the choice of a quarter. The number written in each node is the total amount. o (1). Let Vbe the value in oden. Define the heuristic h(n) to be (30 - Viif in 30 If best first search is applied to the entire tree) with this heuristic, the solution found would have nickels (5 cents each), dimes (10 cents each), and quarters (25 cents each). (2). How much memory would be used by best first search?__ (3). Prove that the heuristic h(n) is not admissible. Can you suggest a nontrivial (e.g. not always 0) admissible heuristic for this

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

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions