What are the benefits of Reverse Polish Notation and what is it?

Reverse Polish Notation is a way of writing mathematical expressions where the operands (such as numbers) are written before operations (such as addition or multiplication). So 1 2 + would be the addition of 1 and 2. An example of this would be the expression:(5+3)*2which, in Reverse Polish Notation would be:5 3 + 2 *This demonstrates one of the benefits of Reverse Polish Notation, being that you don't ever need to use brackets to define which order operations are performed in. This notation is often used in Computing as it allows certain machines to process expressions easier, by using a "stack" - in which numbers are added to a stack of values and then operations remove the top numbers from the stack.

Answered by George S. Computing tutor

3988 Views

See similar Computing A Level tutors

Related Computing A Level answers

All answers ▸

Outline the differences between how a compiler and an interpreter works, and explain the advantages and usage of of each [12 marks]


Why indentation is important in Python and what is the scope of a global variable?


A binary, 8-bit floating point number 0111 0010 is said to have a 4-bit mantissa and a 4-bit exponent. What is meant by the terms 'mantissa' and 'exponent'? What is the value of this 8-bit binary floating point number?


In a computer program, a parameter may be passed to a procedure by value. Explain how this method works.


We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo
Cookie Preferences