Data Structure
Hello, all!
First, there is an integer array for example 1,2,3,4
Second, there are logical "rules" of following types: 1&2 = rule_1, 1|3 = rule_2, 1^4 = rule_3
(& - AND, | - OR, ^ = NOT)
The task is to search for the rules. So the question is how can I implement this kind of search, are there any source codes or libraries? I'll be very glad if someone helps me to cope with this problem and offers some ideas or examples especially on C#. Beforehand, great thanks!
Hendrew uyPosted Oct 12, 2009, 11:04 AM
Roei BarPosted Oct 11, 2009, 4:19 PM
you can use some open source rule engines like
http://csharp-source.net/open-source/rule-engines
you can either use their Rules type or extend them
or if its a simple rule build it yourself,
which is something like this:
Kirtan PatelPosted Oct 11, 2009, 3:38 PM
What you will Input and What you want as Result tell me a bit more may be I can help you :)