What would be the Prefix notation for the given equation?
A^B^C^D
a) ^^^ABCD
b) ^A^B^CD
c) ABCD^^^
d) AB^C^D
Answer: a
Explanation: Reverse the equation or scan the equation from right to left. Apply the infix-prefix algorithm. Here we have to remember that the exponentiation has order of associativity from right to left. Therefore the stack goes on pushing ^. Therefore resulting in ^^^ABCD.
Related Posts
An agent is composed of ________
Satellite Image Analysis System is (Choose the one that is not applicable).
Categorize Crossword puzzle in Fully Observable / Partially Observable.
What could possibly be the environment of a Satellite Image Analysis System?
The Task Environment of an agent consists of ____________
What is rational at any given time depends on?
Agents behavior can be best described by ____________
Join The Discussion