Just another Perl shrine | |
PerlMonks |
Re: Walking a boolean tree to produce matching inputsby LanX (Saint) |
on Mar 20, 2014 at 18:56 UTC ( [id://1079132]=note: print w/replies, xml ) | Need Help?? |
I would go top down. The minimal solutions of:
It gets complicated if ATOMs are repeated, so you'll have to compute all possible solutions to find the minimas. e.g. min ( ( a or b ) and ( a or c ) ) = { {a} } cause {a} x {a} = {a} and the other solutions like {b,a}, etc are bigger HTH! :)
Cheers Rolf ( addicted to the Perl Programming Language)
updates
In Section
Seekers of Perl Wisdom
|
|