DATA STRUCTURES LECTURES
Algorithm
1. Scan the infix expression from left to right.
2. If the scanned character is an operand, output it.
3. Else,
…..3.1 If the precedence of the scanned operator is greater than the precedence of the operator in the stack(or the stack is empty or the stack contains a ‘(‘ ), push it.
…..3.2 Else, Pop all the operators from the stack which are greater than or equal to in precedence than that of the scanned operator. After doing that Push the scanned operator to the stack. (If you encounter parenthesis while popping then stop there and push the scanned operator in the stack.)
4. If the scanned character is an ‘(‘, push it to the stack.
5. If the scanned character is an ‘)’, pop the stack and output it until a ‘(‘ is encountered, and discard both the parenthesis.
6. Repeat steps 2-6 until infix expression is scanned.
7. Print the output
8. Pop and output from the stack until it is not empty. Our Social Media:
► Subscribe to us on YouTube- / @c4knowledgeseekers
► Like Our Page on Facebook: / c4knowledgeseekers
► Follow us on Instagram: / c4knowledgeseekers
► Website: http://www.c4knowledgeseekers.in
►BCA PU papers: https://play.google.com/store/apps/de...
---------------------------------------------------------------------------------------------------------------------------------------
#C4KNOWLEDGESEEKERS #COMPLETEDIGITALSERIES #UGCNET #GATE #NTANET
--------------------------------------------------------------------------------------------------------------------------------------
Other subject playlist Link:
--------------------------------------------------------------------------------------------------------------------------------------
►C LANGUAGE:
• Learn C Language with Examples
►DATA STRUCTURES:
• DATA STRUCTURES USING C
►DATABASE MANAGEMENT SYSTEM:
• DATABASE MANAGEMENT SYSTEM
►PL/SQL using oracle:
• PL/SQL using Oracle
►MySQL:
• MySQL
►FUNDAMENTALS OF WEB PROGRAMMING: HTML, CSS, JAVASCRIPT
• HTML Website Development Tutorials | Learn...
►CSS:
• CASCADING STYLE SHEETS 3: COMPLETE TUTORIA...
►BOOTSTRAP 4: COMPLETE TUTORIALS:
• BOOTSTRAP 4: COMPLETE TUTORIALS
►PHP: Hypertext Preprocessor COMPLETE TUTORIALS
• PHP: Hypertext Preprocessor COMPLETE TUTOR...
►CORE JAVA LANGUAGE:
• CORE JAVA LANGUAGE LIVE LECTURES
►Multithreading in Java:
• MULTITHREADING in JAVA
►J2EE: ADVANCED JAVA COMPLETE TUTORIALS
• J2EE: ADVANCED JAVA COMPLETE TUTORIALS
►COMPUTER ALGORITHMS:
• COMPUTER ALGORITHMS (DESIGN AND ANALYSIS)
►THEORY OF COMPUTATION:
• THEORY OF COMPUTATION
►OPERATION RESEARCH: COMPLETE TUTORIALS
• OPERATION RESEARCH: COMPLETE TUTORIALS
►COMPUTER ARCHITECTURE: COMPLETE TUTORIALS
• COMPUTER ARCHITECTURE: COMPLETE TUTORIALS
►DISCRETE MATHEMATICS: COMPLETE TUTORIALS
• DISCRETE MATHEMATICS: COMPLETE TUTORIALS
►OPERATING SYSTEM: COMPLETE TUTORIALS
• OPERATING SYSTEM: COMPLETE TUTORIALS
►GOOGLE JAMBOARD: COMPLETE TUTORIAL:
• GOOGLE JAMBOARD: COMPLETE TUTORIAL
►GOOGLE CLASSROOM: COMPLETE TUTORIAL:
• GOOGLE CLASSROOM: COMPLETE TUTORIAL
►GOOGLE FORM: COMPLETE TUTORIALS:
• GOOGLE FORM: COMPLETE TUTORIALS