Jump to content

Decision tree programming


kmaid

Recommended Posts

Hello, I could use some help. I am currently trying to code a decision tree into PHP where by the user answers a question and the next set of questions is given to them based on their previous answer(s).

 

Currently I am storing all the user’s answers in a database and running it all through case statements each time however in all honesty I would like to do it another way as  I think it is a pretty poor approach.

 

So far I have read about “Expert Systems” which are border line AI and very complicated for this situation. The other thing I was thinking *could* work is using parent child method to build the menus and store all the answers and upon running out of questions simply if through every possible outcome which is only marginally better.

 

Thanks for reading  :D

Kmaid

Link to comment
https://forums.phpfreaks.com/topic/124949-decision-tree-programming/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.