Results 1 to 10 of 10
- 02-17-2009, 06:40 PM #1
- 02-18-2009, 07:38 PM #2
Senior Member
- Join Date
- Jul 2008
- Posts
- 125
- Rep Power
- 0
All roads lead to Polish Notation
I don't recall the details of postfix or prefit.
When I think about it, I can't imagine the
data structure changing at all. In both
cases you will have a stack with values,
and a stack with operations.
The key is the algorithm that interprets the
stack data.
(I hope someone corrects me on this if I'm
wrong.)
Look up the algorithm for Polish Notaion
in a data structure text. The postfix and
prefix algorithms are probably at the
beginning of that chapter.
- 02-19-2009, 04:37 AM #3
Thanks for your answer.
I already know what postfix and prefix are.
I need to come up with an algorithm convering postfix to prefix and vice-versa!
how can I do that?
-
There are many posted on the web. I have found such in the past easily with a Google search. Most aren't a Java code conversion but it's not hard to convert from one code to another for this.
- 02-19-2009, 05:40 AM #5
I have searched the web but could not find any!
I must have looked at 100 pages already!
when it comes to converting postfix to infix or vice-vera, they give the algorithm or the code using trees and not stack!
I appreciate it if you give me a website if you already know of it.
thanks
- 02-19-2009, 05:41 AM #6
programmerassist.com/question/93 is one in Java but I do not understand it at all!!! :(
-
It's been a while since I looked, sorry. Best of luck though.
- 02-19-2009, 05:45 AM #8
ahh.. too bad.
-
Wait, here's one I bookmarked:
Postfix Notation Mini-Lecture
- 02-19-2009, 10:37 PM #10
Similar Threads
-
converting image to binary code n vice versa
By nupurashi in forum Advanced JavaReplies: 4Last Post: 04-01-2009, 07:27 PM -
[SOLVED] passing array between main and method,vice-versa
By blueyan in forum New To JavaReplies: 5Last Post: 10-04-2008, 11:13 AM -
Converting to ASCII and vice-versa
By pheonix in forum New To JavaReplies: 2Last Post: 09-09-2008, 04:43 AM -
How do we exchange data between Java and JavaScript and vice-versa
By freddieMaize in forum Advanced JavaReplies: 0Last Post: 04-07-2008, 07:44 AM -
Document conversion PDF to MS doc and vice versa
By abintoms in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:45 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks