answersLogoWhite

0


Best Answer

Stack has the following operations:

1) push - insert an element into the stack

2) pop - remove an element out of the stack

3) top - display the topmost element in the stack


Queue has the following operations:


1) enqueue - insert an element into the queue

2) dequeue - remove an element from the queue

3) front - display the element at the front of the queue(next element to be dequeued)

4) rear - display the element at the rear of the queue(last element enqueued)


The following operations can be performed in both stack and queue:


1) size - returns the size of the container

2) isempty - returns whether the container is empty or not

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

explain queues and their operations?

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is a queue Explain various operations perfomed using stack with examples?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Operations management has assumed great significance in modern industries explain. What are the various function of operations manager?

Explain the significations of Operations management?


Explain various E-commerce models in details with practical examples?

explain detail of the E-Commerce and importance of factors


Explain the various aspects of forest conservation act 1980?

It protected forested lands from clearing or farming operations. It provided a penalty for anyone that cleared forested lands or used them for farming operations. It applied to of India except the State of Jammu and Kashmir.


How can explain the various performance measures of disks?

Explain various performance measures of disks.


4 Explain various storage devices and their characteristics?

Explain various storage devices and their characteristics?


What are the examples of description paragraph?

Description paragraphs can include summaries on the back of novels or various other blurbs about articles. Descriptions are also found on sites to explain what a company does.


What is meant by business operations?

Business operations are how a business works. A business usually has various operations that you can do in order to find how they are making money and profits.


Explain the various types of conflict?

various types of audit


Explain various anticipatory information services offered in libraries?

Explain various anticipatory information services offered in libraries


How do you explain various types of reptiles and its features?

explain the features of reptiles


Briefly explain various types of insurance?

various types of insurance


What are the different types of computing and explain them?

explain various categories of computing environment