Water-jug puzzle

Assignment Help Basic Computer Science
Reference no: EM13663974

Water-jug puzzle
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 actions that will leave precisely two liters of water in 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 structure.
(c) Name the actions on states and give precise descriptions of what each action 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 action. In addition to these nodes, show also all of the nodes and arcs (properly labeled)
on a path to the solution.

Reference no: EM13663974

Questions Cloud

Motorcycle with a mass problem : A motorcycle with a mass of 200 kg can accelerate from 0 to 30m/s in 3 seconds. Assuming all of the force generated with the engine goes into acceleration of the motorcycle , how much force is the engine producing? Show your work.
Explain how the web design department : Explain how the web design department will adhere to a code of ethics available for stakeholders.
Wide is illuminated with light of wavelength : A slit 0.9 mm wide is illuminated with light of wavelength 599 nm. We see a diffraction pattern on a screen2.50 m away. What is the distance among the first two diffraction minima on the same side of the central diffraction maximum? (mm)
Develop a secure message and file exchange application : ABC Company is to develop a secure message and file exchange application
Water-jug puzzle : Water-jug puzzle
Compute the value of zeff for this state : The energy of the 2s state of some element is -5.691eV. Compute the value of Zeff for this state. The energy of the 4s state of some element is-4.339 eV. Compute the value of Zeff for this state.
The context of a database system : 1. Discuss what a user view represents in the context of a database system.
Confirm graphically that the solution : Confirm graphically that the solution from part a maximizes the farmer's profit from his land.
Decide corresponding radius r of outermost bohr orbit : A sodium atom (Z = 11) contains 11 protons in its nucleus. Strictly speaking, the Bohr model does not apply, as the neutral atom contains 11 electrons instead of a single electron. but, we can apply the model to the outermost electron as an approxima..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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