stack in data structure in hindi, stack in hindi
- stack in data structure in hindi,
- Applications of Stack in hindi,
- Operations on Stack in Hindi,
- Push operation on stack in hindi,
- POP operation on stack in hindi,
- Peek operation in stack in hindi,
- How the stack grows?,
Contents
show
Stack in Data Structure in Hindi
- Stack एक ordered (क्रम) सूची है, जिसमें insertion और deletion केवल एक छोर पर किया जा सकता है जिसे top कहा जाता है।
- Stack एक पुनरावर्ती (recursive) डेटा संरचना (structure) है, जो इसके top element को point करता है।
- stack को कभी-कभी Last-In-First-Out (LIFO) सूचियों के रूप में कहा जाता है यानी जो तत्व पहले stack में डाला जाता है, उसे stack से stack से सबसे अंत में हटाया जाता है।
Applications of Stack in Hindi
- Recursion
- Expression evaluations and conversions
- Parsing
- Browsers
- Editors
- Tree Traversals
Operations on Stack in Hindi
विभिन्न operations हैं जो stack पर किए जा सकते हैं।
-
Push operation on stack in hindi:
स्टैक में एक element जोड़ना
-
pop operation in stack in hindi:
stack से एक element को निकालना
-
Peek operation in stack in hindi:
उन्हें हटाए बिना stack के सभी elements को देखना।
How the stack grows in Hindi?
Scenario 1 : Stack is empty
यदि इसके अंदर कोई तत्व नहीं है तो stack को empty कहा जाता है। इस स्तर पर, Variable top की value -1 है।
Scenario 2 : Stack is not empty
जब हम stack में कोई तत्व जोड़ते हैं तो हर बार top की value 1 अंक बढ़ जाएगा। निम्नलिखित stack में, पहले तत्व को जोड़ने के बाद, top= 2
Scenario 3 : Deletion of an element
जब भी कोई तत्व stack से हटा दिया जाता है तो शीर्ष की value, 1 अंक कम हो जाएगा।
निम्नलिखित stack में, stack से 10 हटाने के बाद, top= 1
Top and its value :
शीर्ष स्थिति | ढेर की स्थिति |
-1 | Empty |
0 | Only one element in the stack |
N-1 | Stack is full |
N | Overflow |