Explain briefly Infix expression, Polish Notation and Reverse Polish Notation ?


==> Infix expression---

  • The expression in which operator is placed in between operands
  • Ex. a+b

==> Polish Notation---

  •  - names after the Polish Mathematician Jan Lukasiewiez, refers to the expression in which the operator is placed before the operands also called prefix expression.
  • Ex. +ab

==> Reverse Polish Notation---

  • refers to the expression in which the operator is placed after the operands also called postfix expression or suffix Expression.
  • Ex. ab+ 


Share to whatsapp

More Questions from Data Structures and Algorithms Module 2

Explain Fibonacci Sequence ? 


View

Define Tower of Hanoi . Explain algorithm for Tower of Hanoi ? 


View

Explain Multiple stacks ?


View

Define stacks. Explain various operation of stacks ? 


View

Define Tower of Hanoi. Explain Problem statement for Tower of Hanoi ? 


View

Explain Dequeues- Double Ended Queues ? 


View

Define Circular Queue. Describe implementation of Circular Queue ? 


View