Tap the map to trace a point down the tree
A decision tree asks yes/no questions about the features. Each split is chosen to make the groups as pure as possible.
A pure group (all one colour) has Gini = 0 and entropy = 0. A 50–50 mix has Gini = 0.5 and entropy = 1.
Play “20 questions” first: each good question halves the possibilities. A tree learns the best questions from data.
Point out that every split is a straight line parallel to an axis, so diagonal borders need many small steps.
A free coding & ai simulation for Class 9–12.