aspose file tools*
The moose likes Beginning Java and the fly likes converting a postfix to an infix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "converting a postfix to an infix" Watch "converting a postfix to an infix" New topic
Author

converting a postfix to an infix

Momo Sawada
Greenhorn

Joined: Dec 10, 2010
Posts: 24
Hi everyone!!! i stumbled upon another problem... i was searching online for information about converting postfix to infix notation... i think i got the infix to postfix now... but i just can't get enough information on how to convert postfix notation to infix notation... i don't even know the algorithm or pseudocode.... can't find online... all i could find was infix to postfix...
can anyone please help me???
like a good reading material about the topic, or a sample code, or a good source... i tried yahoo... but couldn't find any... and even on google... i've been online for a few hours now... *sigh!*
Thank you very much!!!
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

First hit on google: link. Looks clear to me.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Anupam Jain
Ranch Hand

Joined: Mar 16, 2010
Posts: 61

Wouter Oet wrote:First hit on google: link. Looks clear to me.



The link that you've posted here gives algo for infix to postfix only.
What Momo has asked for is the reverse process... I guess the following link contains the answer:
here


SCJP-6.0 OCPJWCD-5.0
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

True but I figured that if you know the algorithm one way then it's doable to reverse it.
Momo Sawada
Greenhorn

Joined: Dec 10, 2010
Posts: 24
i don't know what to do with my code.... lol..
i think i read the algorithm... i tried..(and i think failed) in making what i would like to do...

here goes...

Venkata Harikishan
Greenhorn

Joined: Jun 10, 2008
Posts: 1
You can refer the "data structures by lipschutz and seymour" for algorithm.

A very good book for data structures. Once you understand the algorithm, it should be easy to implement.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38340
    
  23
Welcome to the Ranch Only 2½ years for your first post.
Momo Sawada
Greenhorn

Joined: Dec 10, 2010
Posts: 24
hahaha... yeah..
and thanks... i've finally done with it a few days ago...(sorry for my late reply...)
and thank you to all who replied here!!! i really appreciate it!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: converting a postfix to an infix