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

  Effective-protecting intellectual property in digital media

Which is more likely to be effective in protecting intellectual property in digital media such as CDs and DVDs: tougher copyright laws or new technologies incorporating.

  Main advantage b-trees

Explain the main advantage B-trees have over a multilevel index of the type.

  Evaluate issues and challenges associated with integration

Evaluate the issues and challenges associated with information technology integration and summarize the competitive advantage that information technology affords to organizations.

  Role of it in the contemporary business organization

Understand the central role of IT in the contemporary business organization. Understand the impact of the World Wide Web on the management of business

  Importance in technological innovation in firm

What is technology diffusion and discuss its importance in technological innovation in a given firm?

  The u.s. convert to a zero personal income tax

The U.S. Convert to a Zero Personal Income Tax

  The sum of the first even integers true or false

The sum of the first 17 even integers is 306. True or False Answer

  Compare and contrast roles and responsibilities it positions

Compare and contrast the roles and responsibilities of IT position.

  Describe the structure of the world wide web

Describe the structure of the World Wide Web as interconnected hypertext documents and create and validate HTML documents - create presentations using Cascading Style Sheets and DHTML.

  Gradesaverage, which prompts user

Write a program called GradesAverage, which prompts user for the number of students, reads it from the keyboard, and saves it in an int variable called numStudents. It then prompts user for the grades of each of the students and saves them in an i..

  Develop a two-page brief on email or phishing scams

Develop a two-page brief on email or phishing scams reported within the past six months. Indicate who they were directed to, who might be behind these attacks and why. Also address any similarities/differences between similar previous attacks.

  Explaining stepwise refinement and refactoring

Are stepwise refinement and refactoring the equivalent thing ? If not, describe how do they vary? Term component is sometimes a difficult one to define.

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