Asked about How the main algorithms actually work

How does a decision tree choose where to split?

An answer that works

It evaluates every feature and threshold and picks the split that most reduces impurity in the child nodes, measured by Gini impurity or entropy for classification and variance reduction for regression.

Reading an answer is not being able to give one. The section that teaches this is How the main algorithms actually work, 5 hours of Supervised learning.

Learn this properly