Explain the situation where your example is utilized

Assignment Help Data Structure & Algorithms
Reference no: EM131433793

Algorithm Development Discussion

Part 1: Priority Queue

There are many reasons to use a priority queue. For this discussion question, find an example of a priority queue.

Note: either use one from your work experience or research one.

Share & Explain the situation where your example is utilized.
Discuss why a priority queue benefits the users in this situation.

Part 2: Respond to two peer discussion posts

Peer 1 David

In the programming world priority queues are used when using the Dijkstra's Algorithm. But if we talk about real world applications a hospital is a great example. Think about the ER. People coming in are not taken in to see the doctor in the order they came in at. They are taken based on the severity of what brought them there. That means it is not a typical queue which is FIFO, each person has their own priority. If someone comes to the hospital for something minor like a migraine that won't go away and then someone comes in that can't breathe, the first person is given a lesser priority and is bumped down the priority queue so to speak. This helps the people that really need it and the people that don't, wait. Now this can be frustrating for the people that have to wait but the people that need it the most get it the fastest.

Peer 2 Toni

A Priority Queue is like a first come first serve until something comes more urgent then this is pushed ahead. for example in a emergency room they take the worst first. In this case if the worst was someone that fell and broke a arm then they would become more of a priority then a person that had a splinter. Although if someone with a heart attack came in they would come in before the broken arm person. because I have not done much programming I have never used this so giving a real life example could be all I can give.

Reference no: EM131433793

Questions Cloud

Design class diagram of the system required : Design Class Diagram- Using Visio, construct a design class diagram of the system required for the course project described.
Order raw material to make a special polymer : Goop Inc. needs to order a raw material to make a special polymer. The demand for the polymer is forecasted to be Normally distributed with a mean of 250 gallons and a standard deviation of 80 gallons. Goop sells the polymer for $25 per gallon.
What is probability that they will run out of raw material : Goop Inc. needs to order a raw material to make a special polymer. The demand for the polymer is forecasted to be Normally distributed with a mean of 250 gallons and a standard deviation of 80 gallons. Goop sells the polymer for $25 per gallon. Suppo..
Explore the legal rights and responsibilities of the tenant : Arry Landlord has recently renovated an apartment and has put it on the market to be rented for $800.00 a month. Larry Landlord has been in business for approximately five (5) years and has had both positive and negative experiences with tenants. ..
Explain the situation where your example is utilized : Share & Explain the situation where your example is utilized. Discuss why a priority queue benefits the users in this situation.
What is indirect utility function : What is indirect utility function - How will you derive on indirect utility function from a direct utility function?
Volume of output cars : A retired auto mechanic hopes to open a rustproofing shop. Customers would be local new car dealers. Two locations are being considered, one in the center of the city and one on the outskirts. Which location will yield the greatest profit if monthly ..
Vendor-managed inventory and consignment inventory : Many of the retailers and in some cases wholesalers are driving their suppliers to provide vendor-managed inventory and consignment inventory at no additional cost to the customer.In effect, the customer is looking to shift inventory risk and respons..
Negative number means less profits : A valley hospital has just increased its lab fee from $49 to $59. As a result, the volume for the lab tests has decreased from 1,921 to 857. If the average cost of the test is $13, how much more or less profits will the hospital make after the pri..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Write a report to the key decision-makers

Write a report to the key decision-makers within the business on whether Cloud Accounting will become commonplace in the future and is, therefore, appropriate for their business.

  Write the implementation of a data structure

Write an implementation of a data structure S that supports the following operations: Insert(S, x): insert the key x into S only if it is not already there.

  Illustrate how b-tree will expand

Illustrate how tree will expand (after inserting each Part#), and what the final tree would like. (b) Repeat item (a), but use a B-tree of order p = 4 instead of a B+-tree.

  Find a popular childrens story and write it into an array

Prompt a user to search for a string within the array, returning the position of the search item within the array - Can you give the answer ASAP?

  Compares the number of comparisons used by various data

compares the number of comparisons used by various data structures for a single algorithm. the algorithm is the one

  What is the efficiency of searching for a particular word

Do the same for dictionary whose words are sorted alphabetically. Compare results.

  Versatile cryptographic algorithm

Stallings states, "...perhaps the most versatile cryptographic algorithm is the cryptographic hash function." Give your opinion as to whether or not you agree or disagree with him. Provide a rationale for your response

  1 n vehicles occupy squares 1 1 through n 1 ie the bottom

1. n vehicles occupy squares 1 1 through n 1 i.e. the bottom row of an n times n grid. the vehicles must be moved to

  Create b-tree function is replaced by an open file function

In this version of the ADT, the create B-tree function is replaced by an open file function. The compare function must be defined when the file is opened.

  Create a crow''s foot erd using a specialization hierarchy

the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate. Tiny Hospital keeps information on patients and hospital rooms.

  What is the worst case space complexity for the algorithm

What is the worst case space complexity for this algorithm (consider the array(s) B only)? Explain your reasoning. Give the O, ? and, if possible, T time complexities for this algorithm. Explain your reasoning.

  Determine expected number of collisions use hash function

Assume we use hash function h to hash n distinct keys into the array T of length m. Suppose simple uniform hashing, determine the expected number of collisions?

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