Hi
Anyone know how to convert a bracketed boolean expression into reverse
polish?
Cheers 11 2285
Steve Lambert <st***********@ ntlworld.com> scribbled the following: Hi
Anyone know how to convert a bracketed boolean expression into reverse polish?
That's an algorithm question and better suited to comp.theory. I'd go
about it by parsing the expression into a tree and then appending its
nodes together in a depth-wise order.
--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"Ice cream sales somehow cause drownings: both happen in summer."
- Antti Voipio & Arto Wikla
> That's an algorithm question and better suited to comp.theory.
Ditto.
You'll find what you need to get started in "Algorithms in C",
by Robert Sedgewick.
Joona I Palaste <pa*****@cc.hel sinki.fi> writes: Steve Lambert <st***********@ ntlworld.com> scribbled the following: Hi Anyone know how to convert a bracketed boolean expression into reverse polish?
That's an algorithm question and better suited to comp.theory.
Or comp.programmin g.
I'd go about it by parsing the expression into a tree and then appending its nodes together in a depth-wise order.
Agreed.
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Thanks for the reply. Could you possibly expand on this slightly
"Joona I Palaste" <pa*****@cc.hel sinki.fi> wrote in message
news:cq******** **@oravannahka. helsinki.fi... Steve Lambert <st***********@ ntlworld.com> scribbled the following: Hi
Anyone know how to convert a bracketed boolean expression into reverse polish?
That's an algorithm question and better suited to comp.theory. I'd go about it by parsing the expression into a tree and then appending its nodes together in a depth-wise order.
-- /-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\ \-------------------------------------------------------- rules! --------/ "Ice cream sales somehow cause drownings: both happen in summer." - Antti Voipio & Arto Wikla
On Sun, 19 Dec 2004 21:53:25 GMT, in comp.lang.c , "Steve Lambert"
<st***********@ ntlworld.com> wrote: Thanks for the reply. Could you possibly expand on this slightly
If I might expand on it slightly, Joona rightly said you should ask this
over in comp.theory. I'd add comp.programmin g as a possible alternative.
Nobody is going to expand on the algo here. Its offtopic.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt >
*** rude topposting fixed ***
Steve Lambert wrote: "Joona I Palaste" <pa*****@cc.hel sinki.fi> wrote in message Steve Lambert <st***********@ ntlworld.com> scribbled the following:
Anyone know how to convert a bracketed boolean expression into reverse polish? That's an algorithm question and better suited to comp.theory.
.... snip ... Thanks for the reply. Could you possibly expand on this slightly
Yes. You could also try comp.programmin g. c.l.c is for C language
questions and not for foolish toppposting.
--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
"Steve Lambert" <st***********@ ntlworld.com> wrote in message
news:pL******** *******@newsfe3-win.ntli.net... Thanks for the reply. Could you possibly expand on this slightly
Your problem is implementing an infix to reverse Polish algorithm. Once you
understand that, writing the code in C, Basic, or indeed any programming
language ought to be relatively striaghtforward . So it's not a comp.lang.c
question.
I realise this but comp.programmin g and comp.theory seem to be dead
newsgroups so I wasn't sure where else to post
"Malcolm" <ma*****@55bank .freeserve.co.u k> wrote in message
news:cq******** **@news8.svr.po l.co.uk... "Steve Lambert" <st***********@ ntlworld.com> wrote in message news:pL******** *******@newsfe3-win.ntli.net... Thanks for the reply. Could you possibly expand on this slightly Your problem is implementing an infix to reverse Polish algorithm. Once you understand that, writing the code in C, Basic, or indeed any programming language ought to be relatively striaghtforward . So it's not a comp.lang.c question.
Steve Lambert <st***********@ ntlworld.com> scribbled the following: I realise this but comp.programmin g and comp.theory seem to be dead newsgroups so I wasn't sure where else to post
Just because people won't answer your question there doesn't mean they
should answer it here. We're not responsible for people on other
newsgroups.
--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"To err is human. To really louse things up takes a computer."
- Anon This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: ron |
last post by:
have been stuck on this for several days now.
I am trying to create a reverse polish calculator and I'm stuck at an
intermediate stage.
This is what I know I have to do (just not sure how to do it to much of a
newbie :( )
I'm trying to call method, isOp, in the int method, evaluate. While in INT
evaluate method and in a while(hasNextToken) loop. Calling isOp on each
token, nextToken.
If it returns False, convert to (Integer) and push...
|
by: Philip Kofoed |
last post by:
Greetings,
I have a SQL server 2000 running on an english win2000 workstation. In a
database I have a table where one varchar column is set to polish
collation.
Regional settings for the system is polish.
Data entered in a client application looks fine until they are posted.
When reading the data with the client application, the special polish
characters are incorrect, they appears as e.g. '1' and '3'.
The strange thing is that when I...
|
by: Marcin Floryan |
last post by:
Hello!
How can I create an Installer entirely in Polish language using Deployment
Project in VB.NET (I have already translated the available texts into
Polish).
I have .NET 2003 EN and I read I have to download some addins/components but
have got no clue where from?
regards
|
by: news.onet.pl |
last post by:
How can I generate pdf with polish letters on linux ??
Now it generates double question marks instead of polish letters...
Regards, Wojtas
|
by: Larry Neylon |
last post by:
Hi there,
I'm currently trying to implement a website that will store and retrieve
Polish, so I need to be able to handle Polish characters using classic ASP
with MySql5.
Does anybody have an experience of doing this as I'm banging my head against
a brick wall getting this to work using either utf8 or latin2. I can't
believe I'm the first person in the world to want to do this! I've input
Polish characters directly into the database...
| |
by: AmigoFd |
last post by:
Hello,
This problem is really driving me crazy ...
* I have a mySql database which is latin1_swedish_ci
* In my web.config I have:
<globalization requestEncoding="ISO-8859-2"
responseEncoding="ISO-8859-2" fileEncoding="iso-8859-2" culture="pl-PL"
uiCulture="pl-PL" />
|
by: robert.szczepanski |
last post by:
Hi everybody;
I can't change polish sign to small letter.
This is my php script:
<?php
setlocale(LC_ALL, "pl_PL.UTF-8") ; //this function return
"pl_PL.UTF-8"
|
by: Werner Partner |
last post by:
I would like to write correct poloish letters, e.g. in the following page:
http://www.kairos-team.de/?lang=pl
There are such letters as Å‚, Å„, Ä™, and so on.
I found these letter sin polish wikipedia, I looked at the source code,
but there is nothing to be seen, what I can do to make these letters.
thanks for help
|
by: Piotrekk |
last post by:
Hi
I have a problem connected with DirectoryInfo class. My paths contain
polish characters not present in english alphabet. Problem is that
DirectoryInfo class displays them in a very bad way. I have tried to
change project properties/ assembly information / neutral language to
Polish but it didn't help.
I would be grateful for any help.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |