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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

EXAMPLE OF STACK<br />

This is used to show the position of element in the stack<br />

This is an example of Stack <strong>using</strong> Arrays.<br />

Example I:<br />

• Push(5)<br />

In the stack<br />

Array position=1<br />

Element=5<br />

Pointer=TOP<br />

• push(6)<br />

In stack<br />

Array position=2<br />

Pointer=TOP<br />

Element= 6<br />

Prepared By :­<br />

Er. Harvinder Singh<br />

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

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

Saved successfully!

Ooh no, something went wrong!