In decision tree there may be different rules' conditions that have same type like

if "content type is page" is one condition.
and
if "content type is article" is second condition.

then any one of them would be TRUE. So we can put second condition in false tree of first condition because if first is FALSE only then second should be evaluated. What can be possible strategy for that?

Comments

Saubhagya’s picture

Status: Active » Needs review

For comparing same type of conditions I implemented a function (which needs review) isEqualType(). And for insertion I changed sortConditionArr() routine and accordingly insert(). Code is at http://github.com/saubhagya/rules_optimization/blob/master/rules_optimiz...