How to explain capacity of the queue

Assignment Help Computer Engineering
Reference no: EM133238

Question

A queue has definite characteristics as listed below-

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

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

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

Capacity of the queue-the maximum number of items that 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 homogeneous array and a tail counter. The head of array is always the first element of the array. Every time an item exits the queue, the other items are stimulated up. New items are always added to the end of the array. The capacity of queue is equal to the capacity of the array. The tail counter specifies location of the tail in the array.

Analyze queue implementation previously specified for purposes of effectiveness. Identify the conditions under that implementation tends to deteriorate in efficiency. Recommend an improved implementation.

Reference no: EM133238

Questions Cloud

Advantages and disadvantages of implementing a dfs : Advantages and disadvantages of implementing a DFS
Enterprise application that integrates the erp concept : Presentation Server, Application Server, Database Server, Software application Architecture, SAP approach to a traditional Information system, benefits and drawbacks of SAP, different SAP application modules, automation and process of enterprise appl..
Tcp connections experience data segment loss : TCP connections experience data segment loss
Private base class function declared public in derived class : Private base class function declared public in derived class
How to explain capacity of the queue : How to explain capacity of the queue
Graph a flowchart or pseudocode : Graph a flowchart or pseudocode
Efficient kitchen supervision depends on the organization : Hygiene in food production, Nutrition in food service, Hors d'oeuvres, Aperitifs, Aging of meat, Méthode Champenoise, some cooking methods are only applicable to some types of food
How to exchange the floating point number : How to exchange the floating point number
A system that calculates and returns the mean and a method : A system that calculates and returns the mean and a method

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the trends of data warehousing and data mining

What are the trends of data warehousing and data mining

  How to name the associative entities

How to name the associative entities

  How to develop a problem definition

How to develop a problem definition

  Explain examples of type of knowledge industry

Explain examples of type of knowledge industry

  Explain the method to create a scheme for vb mail order

Explain the method to create a scheme for VB Mail Order

  What is green computing and green communication technology

What is Green Computing and Green Communication technology.

  How to create a database for music

How to create a database for music? Other entities will be Artist/Group - Attributes will be Name, Year Founded, Origin, Tones and Biography, Track - Attributes will be Number and User's Recommendation and finally Song - Attributes will be Name, ..

  The shortest path distances between the pair

The shortest path distances between the pair

  Program that creates basic user interface code

Program that creates basic user interface code

  Implementation of type data structures

How can string and word variable type data structures be implemented?

  Develop a checkout lane simulation

Develop a checkout lane simulation that can be used to determine the optimal number of lanes that Cougar Mart should have open.

  Detail advantages of looping

Detail advantages of looping

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