Your concept feed

25 ideas

A few small steps. No rush.

Follow the connections in this topic

Let’s picture it

Try a snack combination.

Apple
Banana
Pear

Pick apple first. See what can go with it. We’re exploring, not committing forever.

Swipe when you’re ready
One little change

Put it back and try again.

Apple
Banana
Pear

After exploring the apple choices, undo that pick. Now start with banana.

Same idea. One more small step.
Now it has a name

That’s backtracking.

choose
explore
undo

Choose, explore, undo. Undoing keeps the next attempt from accidentally inheriting the last attempt’s choices.

Want to try a tiny question?
No pressure. Just try it.

Before a sibling attempt, what happens to path-only choices?

You can also keep scrolling
1 / 4
Backtracking

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

A question can make two more.

ways(4)
ways(3)
ways(2)

Climb one or two stairs at a time. Four stairs can lead to a smaller question with three or two left.

1 / 3
Let’s picture it

This bag is already too heavy.

limit: 5
packed: 6

The limit is 5 kg. We’ve packed 6 kg, and every remaining item has positive weight.

Swipe when you’re ready
One little change

More items cannot fix that.

6 kg
add more
still too heavy

We can stop exploring this branch. There’s no need to try every heavier version.

Same idea. One more small step.
Now it has a name

That early stop is pruning.

cannot work
safe to stop

Skip a branch when you can explain why it cannot work. “It looks unpromising” is not enough.

Want to try a tiny question?
No pressure. Just try it.

If later choices can subtract weight, is “already too heavy” enough to stop?

You can also keep scrolling
1 / 4
Backtracking

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

Try a snack combination.

Apple
Banana
Pear

Pick apple first. See what can go with it. We’re exploring, not committing forever.

1 / 3
Let’s picture it

One queen choice constrains later rows.

column
down-left diagonal
down-right diagonal

After placing a queen in row 0, later queens cannot share its column or either diagonal.

Swipe when you’re ready
One little change

Sets summarize attacked lines.

column c
r−c
r+c

At row r and column c, diagonals are labeled r−c and r+c. Three sets answer whether placement is legal.

Same idea. One more small step.
Now it has a name

Undo all three marks.

choose
explore
undo

After exploring a placement, remove its column and diagonal labels before trying the next column.

Want to try a tiny question?
No pressure. Just try it.

Why is row absent from the attacked sets?

You can also keep scrolling
1 / 4
Backtracking

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

Try a snack combination.

Apple
Banana
Pear

Pick apple first. See what can go with it. We’re exploring, not committing forever.

1 / 3
Let’s picture it

Every blank has legal candidates.

row allowed
column allowed
box allowed

A digit is legal only if absent from its row, column, and box. These three constraints intersect.

Swipe when you’re ready
One little change

Choose the most constrained blank.

1 choice first
5 choices later

A blank with one candidate branches less than one with five. This changes search order, not which solutions are legal.

Same idea. One more small step.
Now it has a name

Backtrack on contradiction.

place
propagate
undo

Place a candidate, update three sets, recurse, then undo if the remaining board cannot finish.

Want to try a tiny question?
No pressure. Just try it.

Does choosing the tightest blank change the solution set?

You can also keep scrolling
1 / 4
Backtracking

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

This bag is already too heavy.

limit: 5
packed: 6

The limit is 5 kg. We’ve packed 6 kg, and every remaining item has positive weight.

1 / 3
Let’s picture it

Equal choices can create the same branch.

1a,1b,2
1b,1a,2

Permuting [1,1,2] by item position generates duplicate value sequences when the two 1s swap identities.

Swipe when you’re ready
One little change

Sort equal values together.

equal neighbors
one branch per value

At one recursion depth, after trying the first unused 1, skip the next equal 1 unless its previous twin is already used.

Same idea. One more small step.
Now it has a name

Positions still need used marks.

same depth skip
later depth use

A later depth may use the second 1. The skip applies only to equivalent choices at the same depth.

Want to try a tiny question?
No pressure. Just try it.

Should every repeated value be skipped globally?

You can also keep scrolling
1 / 4
Backtracking

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

Try a snack combination.

Apple
Banana
Pear

Pick apple first. See what can go with it. We’re exploring, not committing forever.

1 / 3
Let’s picture it

A candidate may be reused.

2
2
3
sum 7

With candidates 2,3 and target 7, the sequence 2,2,3 works. Choosing 2 does not remove it from future choices.

Swipe when you’re ready
One little change

An index prevents reordered duplicates.

same index reuse
later indices

After choosing candidate i, recurse using i or later. This produces 2,2,3 but not separate 2,3,2.

Same idea. One more small step.
Now it has a name

Positive values enable pruning.

candidate > remaining
stop loop

After sorting, if a candidate exceeds the remaining target, every later candidate is also too large.

Want to try a tiny question?
No pressure. Just try it.

Why recurse with the same index after choosing a value?

You can also keep scrolling
1 / 4
Backtracking

One small step at a time.

This idea builds on these smaller ones. Pick any to revisit it here.

Try a snack combination.

Apple
Banana
Pear

Pick apple first. See what can go with it. We’re exploring, not committing forever.

1 / 3
You've reached the end of these ideas.Try them without the labels