Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part d is the most important part. The lecture slide of the Water Jug problem The question is not as big as it seems, it

Part d is the most important part.

image text in transcribed

image text in transcribed

The lecture slide of the Water Jug problem

The question is not as big as it seems, it just explains a lot. No codes are required lem 2: [20] Stimulus Plan The government wants to implement a stimulus program and has allocated N million dollars for this. They placed the money into an account called Stimulus. Due to budgetary and legal constraints, it must spend this money in a rather specific way: The money must be spent in chunks of 1 million dollars. . . In the first and last year, it must spend exactly 1 million dollars. In any given year, the amount of money spent must be within 1 million dollars of the amount spent in the previous year. The spending for any given year may be non-positive (i.e., it can be 0, or even negative, for example, by levying a tax to increase the amount of money). The amount of money in the account (starting at N million dollars) can be non-positive in a given year (i.e., run a deficit) . . The goal is to minimize the number of years to make the balance in the account equal 0. (a) [4] Let's define each state as a tuple of three numbers, (1) the amount n in the account at the beginning of the current year, (2) the amount s that will be spent in the current year, and (3) the amount s' spent in the previous year: (n, s, s'). Define the initial state, the goal state, the step cost function, and the successor function. An example formulation is shown for the Water Jugs problem in the lecture slides. (b) [5] Is "the total amount of money in the account at the beginning of the current year" an admissible heuristic? Is it consistent? If not, provide a counterexample. (c) [5] Assume the amount of money spent in the current year is s million dollars. Is the heuristic function h = |s|-| admissible? Is it consistent? If not, provide a counterexample. (d) [6] Assume the amount of money remaining at the beginning of the current year is n million dollars. One possible admissible heuristic function can be defined as the smallest value of k such that Tk 2 nl. Tk is the k-th triangular number, which can be calculated as -1 l. For example, when n = 5, our heuristic value is 3, since T2

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_2

Step: 3

blur-text-image_3

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

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

State why people resist change and how to overcome resistance.

Answered: 1 week ago