On Tue, Dec 04, 2001 at 06:17:44PM +0800, fooler wrote: > > On Tue, Dec 04, 2001 at 03:16:12PM +0800, fooler wrote: > > > > Yeah right! It's not the same. Do you even know how postfix works? > > > > > > you need a stack and a queue... postfix eliminates the parenthesis but > > > doesnt eliminate how you apply the associative, distribuatative, etc > > > properties of a given expression.... its depends how you integrate that > on > > > your postfix algorithm... am i satisfy you? > > > > I don't think you understand postfix notation. The order of operations > > is determined solely by their order in the list. There is no need to > > worry about associative, distributive, etc. Those only apply to infix > > notation. Also, operator precedence is an artifact of infix notation, > > it is irrelevant in postfix (and prefix). > > hi mike, > > yes thats correct by their order in the list. but isnt that already a > fix expresssion? i mean given a postfix expresssion , it is already a fix > expression where the proper association is in place.. but when you convert > it to infix expression and you analyze it, it will come up huge possible of > combinations of parenthesis as what have you said..
Why would I convert it to infix? There's no need to. If I did, however, part of that conversion would be to add the proper parentheses. I don't have the time or patience to prove it, but to generate all possible combinations in postfix notation, then convert each one to infix notation, would probably be the easiest way to come up with all possible and relevant sets of parentheses for the infix problem. But there's simply no need to. > yes postfix will > simplify things but it will miss you something along the way. on the safe > side, its better to see all possible things... sacha gave its answer and > jessie prove that it is still be express. Postfix shows you all possible ways. Please, before you continue arguing with everybody here, learn about postfix. It is blatantly obvious that you don't understand it. Michael -- Michael Darrin Chaney [EMAIL PROTECTED] http://www.michaelchaney.com/ _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
