Data Structures and Algorithm (20IS6OEDSA) UNIT 2

Data Structures and Algorithm (20IS6OEDSA) UNIT 2
1 / 1
Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 1 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 2 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 3 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 4 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 5 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 6 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 7 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 8 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 9 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 10 of 11 Data Structures and Algorithm (20IS6OEDSA) UNIT 2 - slide 11 of 11
Data Structures and Algorithm (20IS6OEDSA) UNIT 2 It is an ordered group of homogeneous items of elements. Elements are added to and removed from the top of the stack (the most recently added items are at the top of the stack). The last

Related Topics

Download this presentation From Below

"Data Structures and Algorithm (20IS6OEDSA) UNIT 2" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Data Structures and Algorithm (20IS6OEDSA)


UNIT 2<br>
02
It is an ordered group of homogeneous items of elements.
Elements are added to and removed from the top of the stack (the most recently added items are at the top of the stack).
The last element to be added is the first to be removed (LIFO: Last In, First Out). STACKS<br>
03
Stack Specification Definitions: (provided by the user)
MAX_ITEMS: Max number of items that might be on the stack
ItemType: Data type of the items on the stack
Operations
MakeEmpty
Boolean IsEmpty
Boolean IsFull
Push (ItemType newItem)
Pop (ItemType& item)<br>