Although the language is agnostic, this tutorial is good and presents several examples that can provide the necessary intuition.
However, the idea of โโlagging is by no means difficult to understand. The backtracking algorithm essentially explores the entire solution space except in the case of brute force execution, except (and this makes it more efficient), it departs from the partial solution as soon as it understands that this is impossible.
Example
Consider this partial solution to the well-known eight queen problem.
Farmers in the first four columns are already positioned, but the latter has an invalid square. A brute force decision would continue to place the queens for the remaining columns, not paying attention to the fact that no matter how this partial decision is supplemented, the result will be invalid.
The backtracking algorithm will be โsmarterโ: he will understand that the fourth queen is incorrectly placed and will โreturnโ to the consideration of other squares for her.
abeln source share