Foundations of Decision Trees and Rule-Based Systems