Explore, and undo — build every valid combination by pruning as you go.
Explore a decision one choice at a time, undo it if it doesn't lead anywhere, and try the next option. It's a systematic way to generate every valid combination, permutation, or arrangement.
Blind 75 (2):
More from Blind 150 (7):