Questions
True False The enqueue and dequeue operations in a priority queue take O(lg n) time, while...

True False

The enqueue and dequeue operations in a priority queue take O(lg n) time, while linked list and array implementations take O(1) time.

A binary heap is a (nearly) complete binary tree.

Heaps usually use a linked node structure for implementation.

When implementing heaps as arrays, you can leave a blank space at the front. If you do, the parent of a node at index i can be found at index floor(i/2).

When implementing heaps as arrays, if you don't leave a space at the front, you can find the children of the node at index i at 2i and 2i+1.

The heap order property states that each node must contain a value greater than its left child and less than its right child.

Insertion in a heap is done by adding at the end of the array and "percolating up".

The average case for insertion in a heap is O(lg n). The worst case is O(n).

Deletion in a heap requires removing the root item and shifting all other items over one space.

Building a heap by adding values one at a time is an O(n) operation. Building a heap "all at once" with the heapify() method (called buildHeap() in the textbook) is O(n lg n).

In: Computer Science

Suppose that you have just borrowed $250,000 in the form of a 30 year mortgage. The...

Suppose that you have just borrowed $250,000 in the form of a 30 year mortgage. The loan has an annual interest rate of 9% with monthly payments and monthly compounding.

*** I NEED TO KNOW HOW TO SOLVE THIS ON A CALCULATOR. i AM USING A HP-10B2+

a. What will your monthly payment be for this loan?

b. What will the balance on this loan be at the end of the 12th year?

c. How much interest will you pay in the 7th year of this loan?

d. How much of the 248th payment will consist of principal?

In: Finance

Part A 1 a) List and explain three different major characteristics of companies for which it...

Part A

1 a) List and explain three different major characteristics of companies for which it is not appropriate to use the Discounted Free Cash Flows methods of Stock Valuation.
b) List and explain three different major strengths of the Discounted Free Cash Flows methods of Stock Valuation compared to the Comparables methods of stock Valuation.
c) List and explain three different major strengths of the Comparables methods of Stock Valuation compared to the Discounted Free Cash Flows methods of Stock Valuation.

In: Finance

I need to implement a code in python to guess a random number. The number must...

I need to implement a code in python to guess a random number. The number
must be an integer between 1 and 50 inclusive, using the module random function randint. The user will have four options to guess the number. For each one of the failed attempts, the program
it should let the user know whether is with a lower or higher number and how many tries they have left. If the user guess the number, the program must congratulate the user and tell him how much he won. If you are a user, hit on the 1st attempt
He wins first $ 100, on the second $ 75, on the third $ 50, on the fourth $ 25. If the user misses all four opportunities, the program must inform the user that he owes money  $ 60 and what was the number that the computer generates randomly.

In: Computer Science

Outline the “true cost” of this food product. From the resources involved (energy, water, etc), production...

Outline the “true cost” of this food product. From the resources involved (energy, water, etc), production of the product, social implications of the production and use of product, what are the ingredients in bread and what are they derived from or where are they grown (in general). Also think about the distance the food and/or its components have to travel to get to your plate.   We pay a small portion of the true cost when we buy the food. This is in part because of subsidies in our agriculture system. How much you think the bread would cost if we had to pay the “true cost”.

In: Economics

Explain the diagram of Computer System which includes (Hardware, OS, application program and users).

Explain the diagram of Computer System which includes (Hardware, OS, application program and users).

In: Computer Science

create an array with a bunch of animal

create an array with a bunch of animal

In: Computer Science

Broad Overall Problems in the hospital: Unnecessary Costs: Unnecessary costs is an issue within the hospital...

Broad Overall Problems in the hospital:

Unnecessary Costs:

Unnecessary costs is an issue within the hospital for a couple different reasons. First, since the MAR was not kept where it should have been when the patients got medication, this could cause issues of not knowing whether a patient received medication already. Which could result in another dose, meaning more costs for the hospital. The hospital needs to strive to keep the costs of care as low as possible as well as cut out medically unnecessary things such as sending placentas to the pathology lab for testing. By making changes to “the way they’ve always done things,” it will be easier to make the hospital more revenue and more efficient.

Communication Errors:

Often times, nurses wouldn’t have the time to chart in the MAR when the medication was administered. This is an issue because it can cause disconnect when there may be a shift change, that could result in an additional dose of medication, causing the quality of care for the patient to decrease. While the nurses are not the only people within the hospital to have charting errors, ancillary services also had issues with charting. They would lose reports or not get the charts on time, which caused issues for the hospital as well as the physicians. The physicians wouldn’t be able to discharge the patients in a timely manner, which would result in less revenue for the hospital itself.

OB Department Against Change:

There was a lot of competition within Pensacola for new families. After the hospital understood what these patients wanted, a family centered birth experience, the hospital worked to change the way that they delivered their care to these patients. There were many positions in support of these new changes, however, nursing staff and nursing management, especially the OB supervisor were set against this. Instead, they wanted to keep practicing how they’ve been doing it within the OB department. There were many nurses that no longer work in the OB department because of this change.

Specific problems in the hospital:

The shift from prescribing antibiotics:

The shift from prescribing antibiotics in the recommended ways to use the local prescribing patterns. The shift in prescribing antibiotics was caused to cut the costs which resulted in saving $200.000 annually. Management should have considered their cost-cutting plans without ignoring patients’ safety, and outcomes. This problem caused in delaying patients from receiving their prescribed antibiotics for days. It is concerning because of the lack of quality was shown from the hospital in delivering their services focusing on cutting the costs and not considering about the patients’ conditions.

Not involving fathers in the birth process:

This problem showed a weak part of the hospital’s system in not making their system to be designed as patient-center care. Instead, the system was built based on rules that they had to follow. The system should have been built to be based on the customers’ needs and should have targeted their satisfaction. It is concerning because the healthcare delivery system should be delivered as patient centered.

Labor Delivery Recovery Postpartum implementation:

The hospital’s management implemented the LDRP concept too fast. The nursing management did not like the idea of the implementation. However, the hospital kept the process going which resulted in retainment and resignation over the staff. The LDRP caused unclear charging structure, and duplicated and missing charges. It is concerning because the hospital’s management did not take the necessary steps by evaluating the structure before implementing the concept.

  1. Based on the broad overall problems and specific problems in this hospital, discuss your recommendations for continued improvement and success.

In: Operations Management

Write information about one occurrence that happened at a counseling agency that works with the addiction...

Write information about one occurrence that happened at a counseling agency that works with the addiction population, through group and individual counseling. Answer with a paragraph for each writing prompt. Point out core competencies and learning objectives.

1. What was the one occurrence that happened?

2. Examine the occurrence and explain why it occurred.

3. Describe the human instincts that were felt and the actions that followed.

4. Define what core competencies were addressed in the occurrence and what behavior models might apply.

In: Psychology

The five major activities of an operating system in regard to process management are?

The five major activities of an operating system in regard to process management are?

In: Computer Science

Assignment: Evaluating a Capital Expense Using the Payback Method The Happy Healing Hospital CFO has just...

Assignment:

Evaluating a Capital Expense Using the Payback Method

The Happy Healing Hospital CFO has just sent a memo to all departments requesting a list of any capital expenses along with the justification for each item requested. The decision bring the Release of Information copy service back to in house rather than outsourcing it. You have already completed the research for leasing verses purchasing the equipment to be used for the project. At this point, it is a matter of deciding which option would be best financially and writing the justification for your recommendations to present at the weekly department meeting. To Purchase

You estimate that to purchase there will be an initial investment of $34,000 for a printer/fax/copy machine and dedicated computer. The estimated income will be $55,000 over the next 5 years. Current staff will be used.

Complete the table below.

(Hint: Your “remaining balance will be carried over as the investment for the following year.)

Year Average Net Income Initial Investment Remaining   
0 0 $34,000
1 $3,000 $34,000 - $3,000 =    $31,000
2 $7,000
3 $10,000
4 $15,000
5 $20,000
Total    $55,000

To Lease

Your research shows that the same equipment will cost $3,000 per month to lease with no initial investment. However, there is a maintenance contract that will cost an additional $150 per month. Create a table to show these expenses.

Evaluation and Recommendation

Evaluate the two tables. Which do you feel would be the better option?

Write a brief justification for your recommendation using this information with a specific comparison between the two options.

In: Finance

hink about a hospitality or tourism company that you consider to have the very best customer...

hink about a hospitality or tourism company that you consider to have the very best customer service. It can be a large well known company or a smaller local company. Tell me about this company and why you have chosen it. What is it about the service that keeps you returning?

In: Operations Management

The board of directors at a large corporation wants to base their division managers' pay raises...

The board of directors at a large corporation wants to base their division managers' pay raises on the profit performance of their respective divisions. They have asked you to evaluate the performance and raises at other companies and propose a formula for calculating the percentage increase in base pay based on the percentage change in the division's profit. You collected information from 50 divisions at similar companies and performed a linear regression on the percentage change in the division profits vs. the percentage change in the manager’s salary.


Use what you have learned about linear regression to answer the following questions. Click here to download the output from the Excel ToolPak, Regression Tool.


Response Parameters


What is the regression equation from the Summary Output? Is this a useful model? How do you know?


Are the assumptions of regression satisfied? How did you verify them?


Does change in division profit appear to be a good predictor for the manager’s pay raise? Why do you think that?


One of your company’s divisions had a –0.51 percent change in profits last year, while another had a 20 percent increase. What is the predicted percentage change in salary for these two division managers?


In: Math

How do you think the spread of social media is likely to shift patterns of culture?...

How do you think the spread of social media is likely to shift patterns of culture? Do you think culture around the world will become more similar or more different as a result? Why?

In: Psychology

You have decided to enter a South African Innovative App Competition. The competition requires you (and...

You have decided to enter a South African Innovative App Competition. The competition requires you (and your team) to think of an innovative idea that could lead to the development of an App aimed at assisting and benefiting South African citizens in government services

Some fundamental assumptions and project requirements:
• Preferably, the system approach/project information system approach is to be followed;
• Budget is limited to R500 000;
• A minimum of five team members must be involved in the running of the project from start
to finish. You are expected to conduct your own research regarding the product, project
team selection and developing a project schedule and management;
• Project duration must not exceed 10 months;
• Additional assumptions and requirements must be adequately added.

This question may be completed using any suitable application software, including Microsoft Word.

Create a Project Activity List for your chosen project using the following format. The Activity List should include but is not limited to the following information:

Task | Task Name | Duration | Start Time | Finish Time | Predecessors | Budget Number

The solution should include the following tasks:
 An activity list of no less than 40 activities for the chosen project;
 Identify all activities:
o Number each task;
o Name each task;
o Provide the duration of each task;
o Schedule, and sequence project accordingly;
 Use phases, summary tasks, deliverables, and work packages;
 Use at least (minimum) of four team members as resources;
 Use at least (minimum) of six milestones;
 Estimate the cost of each task;
 Project summary;
 Show the total cost (budget) of the project.

PROJECT ACTIVITY LIST
Activity list +/‐ 40 activities for the chosen project; Duration of each of the identified activities;
Scheduling (including resources) of each of the identified activities;
Sequencing (including numbering, predecessors, etc.) of each of the identified activities;
Use phases, summary tasks and deliverables;
Use at least (minimum) of four (4) team members;
Use at least (minimum) of six (6) milestones;
Budget of the project

In: Computer Science