December 10, 2022

Mathematical Notation in Data Structure

Mathematical Notation in Data Structure – First of all we will consider various types of notations for writing mathematical expressions. there is the following set of operations. Symbol Used Operation Performed Precedence ^ (Exponention) Power Highest * (Asterisk) Multiplication Next Highest / (Slash) Division Next Highest + (Plus) Addition Lowest – (Hyphen) Subtraction Lowest Note […]

December 10, 2022

Operations on Stack

Operations on stacks: The following operations are performed on stacks. Creating an empty stack PUSH (STACK. ITEM) – to push element ITEM onto stack STACK POP (STACK) to access and remove the top element of the stack STACK PEEK (STACK) to access the top element of the stack STACK without removing the top element from […]

September 21, 2022

What is Data Structure

Data: – The term data simply refers to a value or a set of values These values may represent some observation from an experiment, some figures collected during some survey ( such as census, exit polls, etc. ), or marks obtained by a student in an examination, etc. Data Item: – A data item refers […]

May 12, 2022

Stack in Data Structure

A stack is a linear list where insertion and deletion can perform only at one end. and the end where we perform the operation is called the top of the stack. It uses Last-In-First-Out (LIFO) functionality means the item that inserts last will out first. In the technical form insertion operation in the stack is […]