https://github.com/t-sibiraj/stack Light Mode Dark Mode Download More

TABLE OF CONTENTS:

New topics will be added from time to time.

 

DATA STRUCTURES

 

DATA TYPE VS DATA STRUCTURE(COMING SOON)

 

STACKS

stack-of-boxes

source: t-sibiraj.github.io/stack

 

PUSH METHOD

empty stack

source: t-sibiraj.github.io/stack

b-push-1

source: t-sibiraj.github.io/stack

=======================================================================================

push-1

source: t-sibiraj.github.io/stack

 

b-push-2

source: t-sibiraj.github.io/stack

=======================================================================================

push-2

source: t-sibiraj.github.io/stack

 

b-push-3

source: t-sibiraj.github.io/stack

 

push-3

source: t-sibiraj.github.io/stack

push-3-correct

source: t-sibiraj.github.io/stack

 

 

POP METHOD

source: t-sibiraj.github.io/sql

source: t-sibiraj.github.io/sql

source: t-sibiraj.github.io/sql

source: t-sibiraj.github.io/stack

source: t-sibiraj.github.io/stack

 

PEEK

 

Overflow

 

Underflow

 

IsEmpty

 

IsFull

 

Bounded Stack

 

Item -node aka elements present in a stack

 

IMPLEMENTING STACK IN PYTHON (IMPORTANT)

 

marking scheme:

https://docs.google.com/viewer?url=https://raw.githubusercontent.com/t-sibiraj/stack/main/COMPUTER-SCIENCE-PYQ-CLASS-12.pdf

download: https://raw.githubusercontent.com/t-sibiraj/stack/main/COMPUTER-SCIENCE-PYQ-CLASS-12.pdf

CREATING A STACK

 

Implementing peek() method

 

Implementing isEmpty() method

 

Implementing push() method

 

Implementing pop() method

 

marking scheme(pop and push)

 

stack(in python)

 

======================================

bounded stack (in python) (self-explanatory)

=======================================

 

Applications of Stack(COMING SOON)

  1. Can be used to reverse a line or word:

     

  2. In compilers:

 

  1. Backtracking:

     

  2. Polish Strings: (IMPORTANT)

Polish strings:

INFIX EXPRESSION:

1.EVALUATING INFIX EXPRESSION:

 

POSTFIX EXPRESSION:

CONVERSION TO INFIX TO POSTFIX:

MANUAL METHOD:

 

 

 

 


Creative Commons License

This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.

https://creativecommons.org/licenses/by-sa/4.0/legalcode


Copyright © 2022 T.Sibiraj. Some rights reserved.