RE: [PHP] Reducing Brackets is a Logical expression

From: Date: Mon, 02 Jul 2001 15:24:30 +0000
Subject: RE: [PHP] Reducing Brackets is a Logical expression
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55847@lists.php.net to get a copy of this message
i dont know the function you're looking for, but read up on the rules of formal logic, and maybe you can roll your own. i know that simplification of logical statements (and therefore, easing the burden of analyzing those statements) is a foundation of formal logic... > -----Original Message----- > From: rm [mailto:richand2002@yahoo.com] > Sent: Thursday, June 28, 2001 1:25 PM > To: List PHP > Subject: [PHP] Reducing Brackets is a Logical expression > > > Somewhere, some time ago, i saw a rountine, C, C++, > php, some language that provided a rountine to reduce > brackets in a logical expression to the fewest number > of brackets possible (much like mysql does), for ex: > > ((a and b) or (a and c)) would be reduced to: > > (a or c) and b > > not a very good example, anyone one ever run across > this code, or have an idea what this operation is > called, I know there was a name....for the life of me > I can't remember the name. > > any help appreciated > > kb > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#55847) next »