TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DARIN MCBRIDE
from: GEORGE WHITE
date: 1997-11-18 20:37:00
subject: Postfix/Infix

Hi Darin,
DM> R> Ok, in computer science, we have to know about converting from postfix
DM> R> to prefix, etc, but there's no manual around which explains this to 
e.
DM> R> Only a few examples.  Anyhow, can someone show me the answeres to the
DM> R> following?
DM>I dunno - never took anything about this.  :-)
Looks like someones homework to me.
 correct conversions postfix to infix.
DM> R> Convert these infix to postfix:
DM> R> A*(S+Y/W)/(U-V)
DM>ASY+W/*UV-/
Surely: ASYW/+*UV-/
Your version in infix is: A*((S+Y)/W)/(U-V)
 correct conversions.
DM>That's all just a guess, though... ;-)
Pretty good guess. If you've ever owned or routinely used an HP
calculator the "Reverse Polish" notation they use is postfix notation.
The sequence is usually limited by the depth of the stack available and
postfix notation usually aims to minimise value stack use.
George
 * SLMR 2.1a * KEYBOARD - Used to enter errors int a computer.
--- Maximus/2 3.01
---------------
* Origin: DoNoR/2,Woking UK (44-1483-717905) (2:440/4)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.