10.09.2013 Views

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

1. Advanced Data Structure using C++

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

LECTURE NOTES OF ADVANCED DATA STRUCTURE (MT-CSE 110)<br />

DEFINATION OF STACKS<br />

STACKS<br />

A Stack is a non‐primitive linear data structure. It is an ordered list in which<br />

addition of new data items and deleting of already existing data items is done<br />

from only one end which is known as “TOP OF STACK” (top) as all the deletion<br />

and insertion operation is done from the top of stack. The last element will be<br />

first to be removed from the stack. That’s why stack is known as “LAST IN FIRST<br />

OUT” (LIFO) data structure.<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

Assist Prof., CSE, H.C.T.M (Kaithal) Page ‐ 159 ‐

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!