1 / 3

What is STACK?

What is STACK?. Stack is a Data Structure. It follows the Concept of LIFO. LIFO is “Last In First Out”. It means the element that inserted at the end will be taken out at the first. In , Stack elements are added only from the Top. In , Stack elements can be deleted only from the TOP.

brian
Télécharger la présentation

What is STACK?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is STACK? • Stack is a Data Structure. • It follows the Concept of LIFO. • LIFO is “Last In First Out”. • It means the element that inserted at the end will be taken out at the first. • In , Stack elements are added only from the Top. • In , Stack elements can be deleted only from the TOP.

  2. Types of STACK Linear Stack Double Ended Stack Linked Stack Implemented Using Implemented Using Linked List Array

  3. LINEAR STACK Linear Stack is Implemented using “ARRAY”. It means we’ll use an array like a Stack. As we know , we can insert (add) ,delete an element from an array from anywhere. But ,In STACK : Element can be inserted from the Top and Can be deleted only from the Top. Very Important Term “TOP”

More Related