yea actually i was bit confused regarding my language(c++ or vb.net) thats why i posted on bth sry and expert system i mean like when user ask somethign it should reply and its reply should be relevant i dont want the full code from u or the whole design i jst want rough idea on how should i work on it ....rest i will do
cheers
bye
Every expert system needs to have it's knowledge base so it can build a knowledge tree out of it. For e.g,if you would describe him a animal(tiger perhaps) with sufficient data it would traverse the tree and find that animal if there is such a animal in tree.If there isn't it would need to ask you for the name of that animal and then store it in it's knowledge base.
But the problem is not every user will ask the question in same manner.Solution?
Solution is keyword search.
E.g:
User might ask this question and expect to get tiger as answer:
"It's one of four
big cats,has nice
black vertical stripes,big
fangs and
claws....
Knowledge base will be made from if statements
- IF mammal
-
THEN IF big cat
-
IF big claws AND big fangs
-
THEN IF vertical stripes
-
ANSWER Animal is a tiger.
-
ELSE IF ASK Does it have mane?
-
THEN ANSWER Animal is a lion.
-
ELSE ...
-
-
ELSE ...
So you basically need to make your simple scripting language and then build a tree from it. Traversing the tree you will hopefully find the answer.Of course it's a good idea to make your keyword searching algorithm case-insensitive.
I hope this gave you some ideas.