Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

DATA STRUCTURE

Rating
-
Sold
-
Pages
1
Uploaded on
22-02-2023
Written in
2022/2023

Stack in data structure is one of the most important Algorithms and data Structures topics. Stack is a linear data type and will have a certain set of methods. NOTES ON THE ABOVE FOR A COLLAGE AND UNIVERSITY LEVEL

Institution
Course

Content preview

Stack in Data Structure |

Introduction to Stack |

Data Structures Tutorials


The introduction to stack is the introduction introductory part of stack
some basic operations on stack what what are the meaning of those
operations. The next video will show how logically you are going to
represent a stack. The rule on which this stack data structure works is
what leave for last in first out or you can say first in last out this CD
was first in. If you want to remove a plate then first plate you will
take out first. Then you will put on this plate then third and fourth and
fifth like this you are going to place. Push second operation is pop
operation. Pop means always the topmost element would be popped out from
the step right so no need to pass anything in this function. Fourth
operation may be is empty means it will true if the stack is empty there
is known data in the list just in the stack. Another may be full so this
function will return true if this stack is full otherwise it will return
false.

Using by static memory location or dynamic memory allocation right that
thing in detail we will discuss in next video see suppose the capacity is
here 5 so you can insert here 5 elements only fine at starting at
starting top is what top is equal to minus 1 fine 5 means you can say you
can. insert 5 elements the index would be 0 first of all then 1 then 2
then 3 then 4 from 0 to 4 right. stack is used to reverse a string or in
reverse a word then we will use stack that is very simple. The most basic
application is for undo mechanism in text editor. Recursion means it is a
chain or function call a function is calling itself again and again right
so whenever that function would return something then that values would
be stored in stack. This is just an introductory video of this tag to get
you familiar with stack the logical representation of star. stack data
structure is used you can say in topological sorting in DFS we are using
staff in Tower of Hanoi problem also we are going to use staff in tray
traverser also we will use step right.

Written for

Institution
Course

Document information

Uploaded on
February 22, 2023
Number of pages
1
Written in
2022/2023
Type
Class notes
Professor(s)
Unknown
Contains
All classes

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
harshpreetsingh

Also available in package deal

Get to know the seller

Seller avatar
harshpreetsingh TRIDENT ACADEMY OF TECHNOLOGY
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions