Decision Trees - Gnorion/BizVR GitHub Wiki
Decision Trees
QUESTION: Do we want to provide a mechanism for defining and processing decision trees?
This is equivalent to this decision table:
But drawn that way there are a lot of missing rules such as
But since males don't get pregnant we might consider dividing the single table into one for males and one for females to avoid irrelevant conditions in each.
We could split the decision into two tables as follows:
Once the rules are split there are no missing rules (assuming the only values for gender are 'male' and 'female' and for skydiver and smoker are 'yes' or 'no') If other values are possible then we may need to add rules to handle those cases.