Draw a graph of all of the distinct state-space nodes

Assignment Help Basic Computer Science
Reference no: EM131323241

In the water-jug puzzle, we are given a 3-liter jug, named Three and a 4-liter jug named Four. Initially, Three and Four are empty. Either jug can be filled with water from a tap, T, and we can discard water from either jug down a drain, D. Water may be poured from one jug into the other. There is no additional measuring device. We want to find a set of operations that will leave precisely two liters of water in Four.

(a) fill Three from the tap,

(b) pour Three into Four

(c) fill Three from the tap,

(d) pour as much from Three into Four as will fill it.

(e) discard Four,

(f) pour Three into Four.]

1. Set up a state-space search formulation of the water-jug puzzle:

(a) Give the initial iconic state description as a data structure.

(b) Give a goal condition on states as some test on data structures.

(c) Name the operators on states and give precise descriptions of what each operator does to a state description.

2. Draw a graph of all of the distinct state-space nodes that are within three moves of the start node, label each node by its state description, and show at least one path to each node in the graph-labeling each arc by the name of the appropriate operator. In addition to these nodes, show also all of the nodes and arcs (properly labeled) on a path to the solution.

Reference no: EM131323241

Questions Cloud

Prepare journal entry to record payment of combination costs : Prepare the journal entry to record the payment of combination costs. Determine consolidated net income for the year ended December 31, 20x2. Determine consolidated additional paid-in capital at December 31, 20x2.
Assuming costs and benefits are incurred at end of year : A city has learned that by buying larger garbage trucks, it could reduce labor costs for garbage removal. Note: All the dollar amounts below are in this year's dollars (constant dollars). Cost of trucks today is $400,000. Assuming the costs and benef..
How might these words be used to describe gp : How might the GP crossover process be changed to allow GP to relax the requirement that the execution of every sub tree return a value?
Compute the total net profit-loss-what is the rate of return : El Paso Widget Inc. bought Euro call option for a strike price of $1.10 for March, 2014 paying 15.25 cents per unit.  When they exercised the option, the spot price was $ 1.36.  There are 62,500 units per Euro option. What is the break-even point for..
Draw a graph of all of the distinct state-space nodes : In addition to these nodes, show also all of the nodes and arcs (properly labeled) on a path to the solution.
Dangers of having a team that is inexperienced : What are the dangers of having a team that is inexperienced in agile methodology, including the PM? How can an organization overcome this potential risk?
The bond first and then find the yield to maturity : A bond has a current yield of 7%, a coupon rate of 8% with semiannual payments, a face value of $1,000 and matures in 10 years. What is its Yield to Maturity? (Hint: You have to find the price of the bond first and then find the Yield to Maturity)?
Advantages of business process outsourcing : Question 1. List three advantages of Business Process Outsourcing. Please use current examples. Question 2. List and describe three general business categories that can be outsourced.
What would likely effect be of reducing property tax rate : In 2015 the property tax rate for the city was 2.0858%, while the median for the state was 1.89%. What is the likely effect on property values in the city? What would the likely effect be of reducing the property tax rate in the city to 1.3%?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find the complexity of the distance vector''s algorithm

To find the complexity of the distance vector's algorithm, find the number of operations a node needs to do when it receives a vector from a neighbor.

  Write a while loop to print 1 through 6 in square brackets

Write a while loop to print 1 through 6 in square brackets

  Questions based on computer science

Which of these statements are true, for propositional logic? (In an exam you would have to justify your answers). A. If a formula is not satisfiable then it is not valid B. X is not satisfiable if and only if ¬X is valid C. If a formula is not valid ..

  Describe all constructors of the savings account class

Can you convert a superclass reference into a subclass reference? A subclass reference into a superclass reference? If so, give examples. If not, explain why not.

  Difference between the = symbol in java and in mathematics

Explain the difference between the = symbol in Java and in mathematics.

  Calculate performance of cache and the average cpi

Assume the instruction cache miss rate is 0.5% and the data cache miss rate is 1%. Calculate the performance of the cache (CPU execution time) and the average CPI.

  Development of critical thinking

There is one individual assignment. As all items, it is graded based on the development of critical thinking, analysis, and support for points. You are to prepare a brief paper, but recommended length is about two - three single-spaced (four to si..

  Disk management snap-in to initialize new disks

What advantage is there to using the Disk Management snap-in to initialize new disks, rather than Server Manager?

  Space agency wants to develop a database of all satellites

Problem 1: A space agency wants to develop a database of all satellites that humans have launched into space. Data includes the satellite identification, date of launch, destruction date, purpose, maximum orbital altitude, launching location, launchi..

  Program that draws a circle with radius 100 and center

Otherwise, color it red. In your exercise, declare a class Circle and a method boolean isInside(Point2D.Double p).

  Task in artifial intellegince technique

Task in Artifial Intellegince technique - Emplyee Ant colony optimization for classifying KDD99 data set into its classes

  Find the volume of the solid that lies

Find the volume of the solid that lies under the paraboloid z=x^2 + 4y^2 and above the region D in xy-plane bounded by the line y=3x and the parabola y=3x^2.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd