The textbook tells us that we should choose an attribute with the maximum information gain to split a decision tree. My question is what if all information gains are zero? Should we stop splitting or we split the tree with all attributes?
An example of this question is $Y=a~XOR~b$. To determine the value of $Y$, the information gains of $a$ and $b$ are zero. How do we build a decision tree for this question?