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 – In Some cases, we also use the symbol $, ** or as a power of a number. for simplicity, we will assume that a given expression contains no unary operation. we also assume that the operations on the same level of precedence are performed from left to right except for ^ which works from right to left.

Leave a Reply