What qualifies as forward chaining? Does encoding all the rules in a database without using IF ELSE still qualify as forward chaining?

  • by

I have also asked this question on ai.stackexchange.com I have made an app which, in my opinion, uses forward chaining, but my advisor disagrees.

In my advisor’s opinion, this is what forward chaining should be, note the presence of IF ELSE:

IF (NAUSEA == TRUE) { IF (BLOATING == TRUE) { IF (DIARRHEA == TRUE) { IF (FEVER == TRUE) { IF (SORE == 2) { output = "Possibly enterocholitis and pankreatitis"; } IF (SORE == 3) { output = "Possibly hepatitis and enterocholitis"; } } ELSE IF (FEVER == FALSE) { IF (SORE == 4) { output = "Possibly pankreatitis"; } ELSE IF (SORE == 5) { output = "Possibly enterocholitis"; } } } } } 

But my app would just store all of these rules in database like below, and since retrieving these rules would just use a simple database query and not using IF ELSE, my advisor thought that would not qualify as forward chaining.

+--------+----------+----------+-------+------+------------------------------------------+ | NAUSEA | BLOATING | DIARHHEA | FEVER | SORE | OUTPUT | +--------+----------+----------+-------+------+------------------------------------------+ | TRUE | TRUE | TRUE | TRUE | 2 | Possibly enterocholitis and pankreatitis | +--------+----------+----------+-------+------+------------------------------------------+ | TRUE | TRUE | TRUE | TRUE | 3 | Possibly hepatitis and enterocholitis | +--------+----------+----------+-------+------+------------------------------------------+ | TRUE | TRUE | TRUE | FALSE | 4 | Possibly pankreatitis | +--------+----------+----------+-------+------+------------------------------------------+ | TRUE | TRUE | TRUE | FALSE | 5 | Possibly enterocholitis | +--------+----------+----------+-------+------+------------------------------------------+ 

Would you like to provide citation on your answer please? Thanks in advance.

submitted by /u/whereistimbo
[link] [comments]

Leave a Reply

Your email address will not be published. Required fields are marked *