- Array
- Linked List
- Binary Search Tree
- Heap Data Structure
Scanned Symbol Stack Postfix
Expression
(
(
(
( (
A ( ( A
+
( ( +
A
B
( ( + AB
)
(
AB+
-
( - AB+
C
( -
AB+C
*
( - *
AB+C
( ( - * ( AB+C
D
( - * ( AB+CD
/
( - * ( / AB+CD
E
( - * ( / AB+CDE
)
( - *
AB+CDE/
) AB+CDE/*-
+
+
AB+CDE/*-
F + AB+CDE/*-F
Postfix is -: AB+CDE/*-F+
- Big-O Notation - it gives the worst-case complexity of an algorithm.
- Omega Notation - it provides the best case complexity of an algorithm.
- Theta Notation - it represents the upper and the lower bound of the running time of an algorithm, it is used for analyzing the Average case complexity of an algorithm.
- SET PTR = HEAD.
- IF PTR = = NULL
- THEN, PRINT("LIST IS UNDERFLOW"); OTHERWISE,
- REPEAT STEPS 5 AND 6 WHILE PTR != NULL.
- PRINT PTR->DATA.
- PTR = PTR->NEXT.
- EXIT;
There are the following benefits of using the sparse matrix -
Storage - We know that a sparse matrix contains lesser non-zero elements than zero, so less memory can be used to store elements. It evaluates only the non-zero elements.
- SET PTR = HEAD.
- IF PTR = = NULL
- THEN, PRINT("LIST IS UNDERFLOW"); OTHERWISE,
- REPEAT STEPS 5 AND 6 WHILE PTR != NULL.
- PRINT PTR->DATA.
- PTR = PTR->NEXT.
- EXIT;
- Overflow condition is associated with the basic operations in the linked list like inserting an element into the list.
- We Check this condition before adding a node to the linked list.
- In the system, this condition happens when there is no vacant memory cell.
Underflow condition:
- Underflow condition is associated with the basic operations in the liked list like deleting an element from the list.
- We check this condition before deleting a node to the linked list.
- If the linked list is empty, then we can't delete anything.
- All nodes of a left subtree are less than root node.
- All roots of a right subtree are greater than the root node.
- All the nodes must lean towards left
- The last leaf might not have a right sibling.
- Visit the all nodes in the left sub tree.
- Visit the root node.
- Visit the all nodes in the right sub tree.
- Visit the root node.
- Visit the all nodes in the left sub tree.
- Visit the all nodes in the right sub tree.
- Visit the all nodes in the left sub tree.
- Visit the all nodes in the right sub tree.
- Visit the root node.
For which university? Can I follow this for Mumbai University? Please Reply ASAP!
ReplyDelete