Fundamentals of AI(programming Python or C++) and Algorithm

Robert has moved into a new house. He has a number N of boxes from his previous home. Each box bi has a volume vi. He must fit those boxes in 2 rooms of the house and is not allowed to put any box outside of those two rooms yet. The volume of the room1 is V1 and the volume of the room2 is V2. The total volume of the boxes (v1+…+vn) is greater than V1+V2. So, He is not going to be able to fit all the boxes, but he wants to maximize the numbers of boxes in the 2 rooms (or minimize the boxes left outside of the rooms). He is an expert in robotics and got 2 robotic agents that can do the moving for them. The agents can move around the 2 rooms and the house, they can detect the boxes and their size with their sensors and can get them and place them in the rooms.

The successor function embedded in the software that controls the agents has been defined to pick up boxes at random and place them in any of the rooms also at random until there is no more space in the rooms. You need to define a new successor function by using an algorithm we have covered in class and hand the implementation to Robert, so he can insert it in the software that control the robots.

Explain why the robots are not doing a good job when choosing the boxes at random
What kind of agents are in the system? Why?
Formulate the problem in detail. Describe well the possible states. (Draw a generic tree)
Define the kind of environment Robert is dealing with (continuos? , deterministic?…..
Define the PEAS.
According to the problem, the goal formulation and the states define an algorithm that implements the successor function. (Choose one of the algorithms we saw in class).
Implement the pseudocode algorithm in a high-level language. (Python or C++) . Pay attention to the data structure you choose to keep the states the function is going through.
Comment the complexity, the completeness and the results of the algorithm.

Sample Solution

The post Fundamentals of AI(programming Python or C++) and Algorithm appeared first on homework handlers.

LionCloud

You are to extend your device driver that sits between the virtual application and virtualized hardware devices. As before, the application makes use of the abstraction you provide called the LionCloud driver. In this next assignment, you will make modifications to the code to implement the following features:

The new manifest has more than one device.
The new workload has more than one file (in fact it has many). Reads may also span an arbitrary number of blocks, and be performed anywhere in the file.
There is a new operation that you must implement. This op code initializes the device and gets the number of blocks and sectors (which may be different for each device). The op code is called LC_DEVINIT. The frame values for b0, b1, and c0 as the same as in the previous assignment. The other frame values are:
c1 – device to initialize
c2, d1, d0 – 0
c1 – device initialized
c2 – 0
d0 – the number of sectors in this device
d1 – the number of blocks per/sectopr in this device
Implement a LRU cache that caches blocks retrieved and written to the LionCloud devices. The API for the cache is provided in lc_cache.h and the starter code for the implementation is in lc_cache.c. You will need to:
Implement all of the functions defined in the file.
Add code to call the functions from your driver implementation. In particular, any place you get a block from the driver, you should check first if it is in the cache.
You should collect statistics on how many hits and misses you have. Print out the values and your hit ratio when you close the cache.
Operation

Description

Remaining register use

LC_DEVINIT

Initialize interface to a specific device

When sending:

When receiving

You cannot depend on the constant size of the device info:

define LC_DEVICE_NUMBER_SECTORS 10

define LC_DEVICE_NUMBER_BLOCKS 64

These numbers are not even defined any more. The idea is that once you did the LC_PROBE and find that a device exists, you will have to LC_DEVINIT and learn how many sectors and blocks there are for each device. You then have to dynamically allocate memory to hold the information you had for your previous device.

Sample Solution

The post LionCloud appeared first on homework handlers.

Patients safety goals for homecare

As technology in healthcare continues a shift to homecare is inevitable, safety is of utmost importance. Review the most current Patient Safety Goals for homecare found under the NPSG Program Links. Review the 5 NPGS listed for the Home Care option and discuss each one related to how the nurse can ensure they are met. Finally, locate an article that discusses technology and home care and summarize the findings. How will this shift to home care impact your day-to-day nursing practice?

Sample Solution

The post Patients safety goals for homecare appeared first on homework handlers.

Documented Research Essay

Option 1:

We will all use the same topic, a simple one that is focused on explaining Magical Realism, what it is, where it came from, and some of its practitioners. I suggest that you start with simple research about what Magical Realism is, how it came about, the great authors of Magical Realism, and finally how it manifests itself today, that is to say, in what genres.

As you prepare this essay please beware that you must include and quote three to five outside sources, use the MLA format, and in the process of the paper explain what magical realism is, how it developed, some of the great authors and works, and its international scope today.

Option 2:

Second Possible Topic for the Documented Research Essay

If you do not like the first topic, you can do this one:

(this is the title you must use and support):

The Characterization of the Misfit in Flannery O’Connor’s “A Good Man Is Hard to Find”

In this essay, do what you did with the Dee essay: tell how, in this case the Misfit, is characterized by WHAT HE SAYS (and you must include an analysis of a variety of the very revealing things he says, to include his apology for not having on a shirt, his apology for what Bailey says to his mother, his response to the grandmother’s question–“You wouldn’t shoot a lady would you?” and more. Another critical and revealing statement is “Jesus threw everything off balance,” and perhaps the final one you must address: “She would of been a good woman . . .”

WHAT HE DOES, and of course there is less here–killing his father is NOT one since he did not kill his after–but he certainly does some terrible things during the course of the story.

and what others say about him–be careful; you can include what his dad said and what the prison psychiatrist said but you have to figure out what both really said because the Misfit does not get it right.

Now you do this very carefully and thoroughly but you MUST ADD a minimum of three OUTSIDE SOURCES that you quote at least once each in your essay. These would be articles on the Misfit, the story, or something to do with what you are doing in the essay. Quote each one a minimum one time each and include a Works Cited page with the sources you use, in alphabetical order and MLA format.

The most important part of the paper will be the Conclusion–where you give a summary of what the different aspects of his characterization show the reader and then how we should finally take the Misfit based on O’Connor’s careful and subtle characterization.

Sample Solution

The post Documented Research Essay appeared first on homework handlers.