Implementation for the purposes of efficiency

Assignment Help Basic Computer Science
Reference no: EM13996596

Data StructuresAssignment: [Individual Hand-In] Queue analysis

Organising data so that it can be efficiently retrieved is one of the cornerstones of software engineering. Cumbersome data structures lead to sluggish software performance, potential errors, and ultimately, end-user dissatisfaction. In order to become adept at data structuring, it is prudent to continually work with data structure components. The most common of these are queues.

Unlike the Scratch Assignments of recent Weeks, this Hand-In Assignment will challenge your ability to analyse a queue based on limited information. Use the following information to complete this Assignment:

A queue has certain characteristics as listed below:

Head - The next item to exit the queue is always the head.

Tail - The next item to enter the queue will always enter at the tail.

Length of the queue - The number of items in the queue (between the head and tail).

Capacity of the queue - The maximum number of items that the queue can hold.
Position of each item - A queue can have any number of items between the head and tail, but each item has a position within the overall order.

A queue can be implemented using a homogenous array and a tail counter. The head of the array is always the first element of the array. Every time an item exits the queue, the other items are moved up. New items are always added to the end of the array. The capacity of the queue is equal to the capacity of the array. The tail counter specifies the location of the tail in the array.

To prepare for this Assignment:

Review your Weekly Learning Resources with a focus on data structures and queues.

Critically analyse the given queue information for efficiency issues.

Reflect on common conditions that tend to deteriorate efficiency.

You may use Scratch, or any other programming tool you prefer, to help you solve the problem.

To complete this Assignment:

Submit an answer to the posed problem and address the following:

Analyse the given queue implementation for the purposes of efficiency.

Identify the conditions under which the implementation tends to deteriorate in efficiency.

Recommend improvements to the given queue and/or its implementation.

Reference no: EM13996596

Questions Cloud

What is the amplitude of oscillation of the mass : A student is studying a 100.0g mass oscillating on a horizontal spring of spring constant k=18N/m. At t=0, the object was at rest and its position was x= 2.55cm from its equilibrium position. What is the amplitude of oscillation of the mass?
What are the magnitudes of the momenta of the photons : Explain why the electron and positron cannot annihilate to become a single photon. What are the magnitudes of the momenta of the photons?
Determine the magnitude of the balloon initial velocity : The target is located a horizontal distance d = 7.5 m from the student's feet. Assume that the balloon moves without air resistance. Use a Cartesian coordinate system with the origin at the balloon's initial position. What is the position vector,..
Is commodities liable to e-products under the sales : Is Commodities liable to E-Products under the sales contract for the computers, printers and scanners? Why or why not? Is Brenda personally liable to E-Products to pay for the computers, printers and scanners? Why or why not
Implementation for the purposes of efficiency : A queue can be implemented using a homogenous array and a tail counter. The head of the array is always the first element of the array. Every time an item exits the queue, the other items are moved up. New items are always added to the end of the ..
Find an equation for the magnitude of the net magnetic force : Find an equation for the magnitude of the net magnetic force on the loop in terms of the constants Bo, I, and L. Find an equation for the direction of the net magnetic force on the loop in terms of the constants Bo, I, and L.
Beneficiaries of american democracies : In this book the history of the United States is seen from the viewpoint of people who were not necessarily beneficiaries of American democracies
What do you know about slavery in the antebellum us : What do you know about slavery in the antebellum United States, and how does it compare to slavery as discussed in "Oroonoko?" Use examples from the text to support your comparisons
What ethical responsibilities do you have : Are your actions due to your free will or are they predetermined? Lay out your arguments for your position. Give your conclusion to the first question. What ethical responsibilities do you have

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Demonstrate a critical awareness of previous research

Demonstrate a critical awareness of previous research in an IT context within a chosen topic area through a basic understanding of research theory and techniques.

  Review the literature and examine the strengths and

cloud computing and virtualization are two relatively new technologies which have re-emerged and which are both making

  Payroll for employees and human resources

What is the difference between a Disaster Recovery Plan and a Business Continuity plan

  What is an advantage of virtualization

What is an advantage of virtualization? List and explain one type of virtualization. What are three of the major data functions performed by a DBMS? Briefly explain the functions. Why are internal threats a major challenge for organizations? How can ..

  Find the total power

Decompose s(t) into a linear combination of sinusoidal functions and find the amplitude, frequency, and phase of each component.

  Which command displays network activity statistics for tcp

Which command displays network activity statistics for TCP, UDP, and IP? a. telnet b. nbtstat-s c. ping -s d. netstat -s e. nslookup

  Assignment on predictive policing

In 1994, the New York City Police Department adopted a law enforcement crime fighting strategy known as COMPSTAT (COMPuterSTATistics). COMPSTAT uses Geographic Information Systems (GIS) to map the locations of where crimes occur, identify "hotspot..

  How often are network standards reviewed

1. How often are network standards reviewed? The standards are reviewed and updated approximately every 5 years. 2. What category of UTP cabling is the minimum for a telephone cable? Cat 5 is used for telephone cable, before Cat 5, Cat 3 was used.

  Resistance to change in it projects

Resistance to Change in IT Projects

  Compute average probability of symbol error of signalling

Consists of additive noise w(t) as the sample function of a gaussian process with zero mean and power spectral density No/2. Calculate the average probability of symbol error for this method of signalling

  Implement a simple menu-driven text adventure

For this assignment you will be provided with incomplete sample starter code that you can modify and build upon. Your task will be to carry out the design, analysis, coding and testing to add several additional features to this sample code. You ar..

  Determine the next flavor of beer

Dell's Ideastorm, Best Buy's IdeaX, New York city's Simplicity, and Samuel Adams' Facebook application to determine the next flavor of beer are a few of the examples that use crowdsourcing. From the e-Activity, assess whether ideasourcing generates t..

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