New Member FAQ
|
Forums
|
Earn Revenue
|
Posting Guidelines
|
Help Topics
|
Admissions 2013
Awards & Gifts
Login
Register
Articles
Practice Tests
Ask Experts
Question Papers
Jobs
Universities
Colleges
Courses
Schools
Training
Gift Shop
|
Bookmarks
|
Reviews
|
Learn English
|
Social Hub
|
New Posts
|
My India
|
Members
|
Polls
|
Active Members
Today
Jp
(91)
K Mohan
(81)
yash
(78)
Last 7 Days
R Pramod
(1063)
K Mohan
(769)
yash
(764)
more...
Join our online
Google+ community
for Bloggers, Content Writers and Webmasters
Resources
»
Articles/Knowledge Sharing
»
Computer & Technology
Queue Vs Stack
Posted Date:
18-May-2008
Category:
Computer & Technology
Author:
RAFI
Member Level:
Silver
Points
: 1
Difference between Queue and Stack.
A Stack is a (ordered) collection of items, where all insertions are made to the end of the sequence and all deletions always are made from the end of the sequence. In principle a stack is a container of data items, from which we get data items out in reverse order compared to the order they have been put into the container. We can also said that the item that has been put last in is coming first out. That’s why a stack is also called LIFO ((Last In First Out list). We can as well say that the item, which is put first in the container is get last out (First In Last Out: FILO).
A Queue is a (ordered) collection of items , where all insertions are made to the end of the sequence and all deletions always are made from the beginning of the sequence. In principle a queue is container from which data items are retrieved out in the same order they are put in. This means that the queue is a container that preserves the order of items put there. We can also say that the item that is put last into the queue is taken last out from the queue. That’s why a queue is sometimes called LILO (Last In Last Out list). We can also say that the item which is put first into the queue is taken first out. (First In First Out: FIFO).
Did you like this resource? Share it with your friends and show your love!
Tweet
Responses to "Queue Vs Stack"
No responses found. Be the first to respond...
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
my academic project documentation
Previous Resource:
Autosys - A Job Scheduling tool
Return to Resources
Post New Resource
Category:
Computer & Technology
Post resources and
earn money
!
More Resources
my academic project documentation
Meaning of TRIGGERS In PL/SQL
TYPES OF CURSORS IN PL/SQL
Program of Circular linked list in Data Structures
Mobile Ad Hoc Networks
TRANSACTION MANAGEMENT in DBMS
Popular Tags
Tag posting guidelines
Search Tags
(No tags found.)
Subscribe to Email
Get Jobs by Email
Forum posts by Email
Articles by Email
Online Members
Hafeez
Harsh Rawat
hemant verma
mbastudent56
Nidhi
siddharaj jadav
EKTA RAIKWAR
Amit Patel
pramod dikshit
Nithya
nishant
More...
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
AdSense Revenue Sharing sites
Advertise
Talk to
Tony John
ISC Technologies, Kochi - India. Copyright © All Rights Reserved.